MathPlot
Public Member Functions | List of all members
mpMagnet Class Reference

Class for drawing mouse magnetization Draw an horizontal and a vertical line at the mouse position. More...

#include <mathplot.h>

Public Member Functions

void UpdateBox (wxCoord left, wxCoord top, wxCoord width, wxCoord height)
 Update the drawable magnet area from raw rectangle coordinates.
 
void UpdateBox (const wxRect &size)
 Update the drawable magnet area from a wxRect.
 
void Plot (wxClientDC &dc, const wxPoint &mousePos)
 Draw the magnet cross at the given mouse position.
 
void ClearPlot (wxClientDC &dc)
 Erase the currently drawn magnet cross from the device context.
 
void UpdatePlot (wxClientDC &dc, const wxPoint &mousePos)
 Update the magnet cross to a new mouse position.
 
void SaveDrawState (void)
 Save whether the magnet was drawn before a full repaint.
 
void SetRightClick (void)
 Mark that the magnet update originated from a right-click.
 

Detailed Description

Class for drawing mouse magnetization Draw an horizontal and a vertical line at the mouse position.