ToolMap
Loading...
Searching...
No Matches
tmDrawer Class Reference

In charge of all the drawing into bitmaps. More...

#include <tmdrawer.h>

Inheritance diagram for tmDrawer:

Public Member Functions

void SetSelectedData (tmSelectedDataMemory *selectedmemory)
 
void InitDrawer (wxBitmap *bitmap, tmGISScale *scale, const tmRealRect &filter)
 
bool DrawExtentIntoBitmap (int width=1, const wxColour &col=wxColour(*wxBLACK))
 Draw the max extent.
 
bool Draw (tmLayerProperties *itemProp, tmGISData *pdata)
 
void DrawEditVertex (const wxRealPoint &pt, int size, wxColour colour)
 Draw a vertex (used during editing)
 
void DrawEditSegment (const wxRealPoint &pt1, const wxRealPoint &pt2, int size)
 Draw the segment between two points.
 
void DrawEditLine (const wxArrayRealPoints &pts, int size, wxColour colour= *wxRED)
 Draw all edited lines.
 

Static Public Member Functions

static void EnableLogging (bool enable)
 
static bool IsLoggingEnabled ()
 

Detailed Description

In charge of all the drawing into bitmaps.

Author
Lucien Schreiber (c) CREALP 2008
Date
24 July 2008

Member Function Documentation

◆ DrawEditLine()

void tmDrawer::DrawEditLine ( const wxArrayRealPoints &  pts,
int  size,
wxColour  colour = *wxRED 
)

Draw all edited lines.

Parameters
ptsAdress of a wxArrayRealPoints
sizeSize of the line
colourthe Colour of the line to draw, default is RED
Author
Lucien Schreiber (c) CREALP 2009
Date
04 February 2009

◆ DrawEditSegment()

void tmDrawer::DrawEditSegment ( const wxRealPoint &  pt1,
const wxRealPoint &  pt2,
int  size 
)

Draw the segment between two points.

Parameters
pt1first point (Real)
pt2second point (Real)
sizesize of the segment
Author
Lucien Schreiber (c) CREALP 2009
Date
03 February 2009

◆ DrawEditVertex()

void tmDrawer::DrawEditVertex ( const wxRealPoint &  pt,
int  size,
wxColour  colour 
)

Draw a vertex (used during editing)

Parameters
pta point (real coordinates)
sizethe size of the vertex to draw
colourthe wxColour to use for drawing vertex
Author
Lucien Schreiber (c) CREALP 2009
Date
03 February 2009

◆ DrawExtentIntoBitmap()

bool tmDrawer::DrawExtentIntoBitmap ( int  width = 1,
const wxColour &  col = wxColour(*wxBLACK) 
)

Draw the max extent.

Draw a rectangle of specified colour and width corresponding to the maximum extent of all visible layers

Parameters
widthWidth of the pen (in pixels)
colColour of the pen
Returns
always true
Author
Lucien Schreiber (c) CREALP 2008
Date
24 July 2008

The documentation for this class was generated from the following files: