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 (const wxRect &plotArea)
 Update the drawable magnet area from a wxRect.
 
void Enable (bool enable)
 Enables the magnet.
 
bool IsEnabled () const
 Check if magnet is enabled.
 
void DrawCross (wxDC &dc, mpWindow &w)
 Update the magnet cross to a new mouse position.
 
bool ShouldBeShown (wxPoint mousePos)
 Check conditions if magnet shall be shown.
 
void Show (bool show)
 Set if magnet shall be shown or hidden.
 
bool IsShown ()
 Get shown status.
 

Detailed Description

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