|
libosmscout 1.1.1
|
#include <libosmscout-map-gdi/include/osmscoutmapgdi/MapPainterGDIWindow.h>

Public Member Functions | |
| MapPainterGDIWindow () | |
| Default constructor. | |
| MapPainterGDIWindow (const StyleConfigRef &styleConfig, RECT position, HWND hWndParent, HINSTANCE hInstance=nullptr) | |
| Default constructor. | |
| ~MapPainterGDIWindow () | |
| Default destructor. | |
| bool | CreateCanvas (const StyleConfigRef &styleConfig, RECT position, HWND hWndParent=nullptr, HINSTANCE hInstance=nullptr) |
| Creates the drawing window. | |
| virtual LRESULT | OnWinMsg (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) |
| Function for Windows message handling. | |
| virtual void | OnTileUpdate () |
| Function to update tile data. | |
| void | Set (osmscout::Projection *pProjection, osmscout::MapParameter *pParameter, osmscout::MapData *pData) |
| Sets data and settings for rendering. | |
| void | MoveWindow (RECT position, bool bRepaint=true) |
| Move current window. | |
| void | InvalidateWindow () |
| Declares the window invalid and initiates a redraw. | |
| LRESULT CALLBACK | WinMsgHandler (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) |
| Windows message handler function. | |
Protected Attributes | |
| HINSTANCE | m_hInstance |
| HWND | m_hWnd |
| HWND | m_hWndParent |
| osmscout::MapPainterGDI * | m_pPainter |
| osmscout::Projection * | m_pProjection |
| osmscout::MapParameter * | m_pParameter |
| osmscout::MapData * | m_pData |
| osmscout::MapPainterGDIWindow::MapPainterGDIWindow | ( | ) |
Default constructor.
Standard constructor.
| osmscout::MapPainterGDIWindow::MapPainterGDIWindow | ( | const StyleConfigRef & | styleConfig, |
| RECT | position, | ||
| HWND | hWndParent, | ||
| HINSTANCE | hInstance = nullptr ) |
Default constructor.
Standard constructor with parameters for map display.
| [in] | styleConfig | Configuration of the drawing styles |
| [in] | position | Position and size of the drawing window. |
| [in] | hWndParent | Handle of parent Windows or NULL for non-child window. |
| [in] | hInstance | hInstance of the program or NULL for default. |
| osmscout::MapPainterGDIWindow::~MapPainterGDIWindow | ( | ) |
Default destructor.
Standard destructor to release reserved memory.
| bool osmscout::MapPainterGDIWindow::CreateCanvas | ( | const StyleConfigRef & | styleConfig, |
| RECT | position, | ||
| HWND | hWndParent = nullptr, | ||
| HINSTANCE | hInstance = nullptr ) |
Creates the drawing window.
Creates the drawing window if it does not yet exist.
| [in] | styleConfig | Configuration of the drawing styles |
| [in] | position | Position and size of the drawing window. |
| [in] | hWndParent | Handle of parent Windows or NULL for non-child window. |
| [in] | hInstance | hInstance of the program or NULL for default. |
| void osmscout::MapPainterGDIWindow::InvalidateWindow | ( | ) |
Declares the window invalid and initiates a redraw.
The entire area of the window is declared invalid and thus a redraw is forced.
| void osmscout::MapPainterGDIWindow::MoveWindow | ( | RECT | position, |
| bool | bRepaint = true ) |
Move current window.
Sets a new position and/or size of the window.
| [in] | position | Rectangle (position and size) into which the window is fitted. |
| [in] | bRepaint | With True the window is redrawn after the change. |
|
virtual |
Function to update tile data.
The function is called as a sub-function if the data must be updated before rendering. For example, when zoom, position or window size has been changed.
|
virtual |
Function for Windows message handling.
An application-defined function that processes messages sent to the window. The function can be overwritten in own classes to process the window messages. Some messages such as WM_PAINT are already processed by the class for the basic function.
| [in] | hwnd | Window handle. |
| [in] | uMsg | The message ID. |
| [in] | wParam | Additional message information. The contents of this parameter depend on the value of the uMsg parameter. |
| [in] | lParam | Additional message information. The contents of this parameter depend on the value of the uMsg parameter. |
| void osmscout::MapPainterGDIWindow::Set | ( | osmscout::Projection * | pProjection, |
| osmscout::MapParameter * | pParameter, | ||
| osmscout::MapData * | pData ) |
Sets data and settings for rendering.
Sets references to the projection, map parameters and map data used for rendering.
| [in] | pProjection | Pointer on map projection |
| [in] | pParameter | Pointer on map parameter |
| [in] | pData | Pointer on map data |
| LRESULT CALLBACK osmscout::MapPainterGDIWindow::WinMsgHandler | ( | HWND | hwnd, |
| UINT | uMsg, | ||
| WPARAM | wParam, | ||
| LPARAM | lParam ) |
Windows message handler function.
Non-static callback function to receive Windows messages of the used window in current class instance.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |