ToolMap
Loading...
Searching...
No Matches
tmRenderer Class Reference
Inheritance diagram for tmRenderer:

Public Member Functions

 tmRenderer (wxWindow *parent, wxWindowID id)
 
 ~tmRenderer ()
 Destructor.
 
void OnSizeChange (wxSizeEvent &event)
 Respond to a Size message.
 
void InitSize ()
 
void OnPaint (wxPaintEvent &event)
 
void SetBitmapStatus (wxBitmap *bmp=nullptr)
 
void SetTool (tmGIS_TOOL selected_tool)
 
tmGIS_TOOL GetTool ()
 
wxBitmap * GetBitmap ()
 
void DrawCircleVideoInverse (wxPoint pt, int radius)
 Draw a circle using inverse video.
 
void DrawCircleVideoInverseClean ()
 
void StopModifyEvent ()
 
void SetEditManagerRef (tmEditManager *manager)
 
void SetToolManagerRef (tmToolManager *manager)
 

Protected Member Functions

void ZoomStart (const wxPoint &mousepos)
 
void ZoomUpdate (wxMouseEvent &event)
 
void ZoomStop (const wxPoint &mousepos)
 
void SelectStart (const wxPoint &mousepos)
 Called when selection start (mouse down)
 
void SelectUpdate (wxMouseEvent &event)
 Called when selection is updated (mouse move)
 
void SelectStop (const wxPoint &mousepos)
 Called when selection finished (mouse up)
 
void PanStart (const wxPoint &mousepos)
 Start the pan.
 
void PanUpdate (const wxPoint &mousepos)
 Update the pan image during mouse move.
 
void PanStop (const wxPoint &mousepos)
 Refresh screen after pan.
 
void PanDClick (wxMouseEvent &event)
 
void OrientedPtsStart (const wxPoint &mousepos)
 
void OrientedPtsMove (const wxPoint &mousepos)
 
void OrientedPtsStop (const wxPoint &mousepos)
 
void ModifySharedStart (const wxPoint &mousepos)
 
void ModifySharedStop (const wxPoint &mousepos)
 
void ModifySharedUpdate (const wxPoint &mousepos)
 
void CutLineClick (const wxPoint &mousepos)
 Click up with cut line tool.
 

Constructor & Destructor Documentation

◆ ~tmRenderer()

tmRenderer::~tmRenderer ( )

Destructor.

Author
Lucien Schreiber (c) CREALP 2009
Date
26 January 2009

Member Function Documentation

◆ CutLineClick()

void tmRenderer::CutLineClick ( const wxPoint &  mousepos)
protected

Click up with cut line tool.

Author
Lucien Schreiber (c) CREALP 2009
Date
05 February 2009

◆ DrawCircleVideoInverse()

void tmRenderer::DrawCircleVideoInverse ( wxPoint  pt,
int  radius 
)

Draw a circle using inverse video.

Parameters
ptCoordinate of center
radiusCircle radius in px.
Author
Lucien Schreiber (c) CREALP 2009
Date
24 February 2009

◆ OnSizeChange()

void tmRenderer::OnSizeChange ( wxSizeEvent &  event)

Respond to a Size message.

This function is called each time the size of the tmRenderer windows change. This function does nothing but send the informations to the tmLayerManager

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

◆ PanStart()

void tmRenderer::PanStart ( const wxPoint &  mousepos)
protected

Start the pan.

Call this function when the mouse is down for initiating the pan process. This function grab the screen into a bitmap used later (in PanUpdate()) when user moves the mouse.

Parameters
mouseposwxPoint position of the mouse when user click
Author
Lucien Schreiber (c) CREALP 2008
Date
31 July 2008

◆ PanStop()

void tmRenderer::PanStop ( const wxPoint &  mousepos)
protected

Refresh screen after pan.

Call this function when the pan is over to make cleanup and refresh screen.

Parameters
mouseposactual mouse position
Author
Lucien Schreiber (c) CREALP 2008
Date
31 July 2008

◆ PanUpdate()

void tmRenderer::PanUpdate ( const wxPoint &  mousepos)
protected

Update the pan image during mouse move.

Call this function when the mouse move for moving the pan image.

Parameters
mouseposactual mouse position
Author
Lucien Schreiber (c) CREALP 2008
Date
31 July 2008

◆ SelectStart()

void tmRenderer::SelectStart ( const wxPoint &  mousepos)
protected

Called when selection start (mouse down)

Parameters
mouseposactual coordinate of the mouse in screen pixels
Author
Lucien Schreiber (c) CREALP 2008
Date
29 October 2008

◆ SelectStop()

void tmRenderer::SelectStop ( const wxPoint &  mousepos)
protected

Called when selection finished (mouse up)

Parameters
mouseposactual coordinate of the mouse in screen pixels
Author
Lucien Schreiber (c) CREALP 2008
Date
29 October 2008

◆ SelectUpdate()

void tmRenderer::SelectUpdate ( wxMouseEvent &  event)
protected

Called when selection is updated (mouse move)

Parameters
mouseposactual coordinate of the mouse in screen pixels
Author
Lucien Schreiber (c) CREALP 2008
Date
29 October 2008

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