3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
MathGLPane Class Reference

#include <mathglPane.h>

Inheritance diagram for MathGLPane:
Inheritance graph
[legend]
Collaboration diagram for MathGLPane:
Collaboration graph
[legend]

Public Member Functions

 MathGLPane (wxWindow *parent, int id)
 
virtual ~MathGLPane ()
 
void setVisibleItems (std::vector< bool > &newVisible)
 
void setPlotWrapper (PlotWrapper *plots, bool takeOwnPtr=true)
 
std::string getErrString (unsigned int code)
 
void enableRegionSelfUpdate (bool enable)
 
unsigned int saveSVG (const std::string &filename)
 
unsigned int savePNG (const std::string &filename, unsigned int width, unsigned int height)
 
unsigned int getNumVisible () const
 
bool getRegionUnderCursor (const wxPoint &mousePos, unsigned int &plotId, unsigned int &regionId) const
 Get the region under the cursor. Returns region num [0->...) or. More...
 
void getLastEdited (size_t &lastPlot, size_t &lastRegion) const
 
void registerUpdateHandler (wxWindow *w, UpdateHandler handler)
 
void resized (wxSizeEvent &evt)
 
void render (wxPaintEvent &evt)
 
void mouseMoved (wxMouseEvent &event)
 wx Event that triggers on mouse movement on grah More...
 
void middleMouseDown (wxMouseEvent &event)
 
void leftMouseDown (wxMouseEvent &event)
 
void mouseDoubleLeftClick (wxMouseEvent &event)
 
void mouseDoubleMiddleClick (wxMouseEvent &event)
 
void mouseWheelMoved (wxMouseEvent &event)
 
void leftMouseReleased (wxMouseEvent &event)
 
void middleMouseReleased (wxMouseEvent &event)
 Middle mouse button has been let go. More...
 
void rightClick (wxMouseEvent &event)
 
void mouseLeftWindow (wxMouseEvent &event)
 
void keyPressed (wxKeyEvent &event)
 
void keyReleased (wxKeyEvent &event)
 
void setPlotVisible (unsigned int plotID, bool visible)
 
void setLegendVisible (bool visible)
 
void limitInteraction (bool doLimit=true)
 

Constructor & Destructor Documentation

◆ MathGLPane()

MathGLPane::MathGLPane ( wxWindow *  parent,
int  id 
)

◆ ~MathGLPane()

MathGLPane::~MathGLPane ( )
virtual

Member Function Documentation

◆ enableRegionSelfUpdate()

void MathGLPane::enableRegionSelfUpdate ( bool  enable)
inline

References savePNG(), and saveSVG().

Referenced by RangeEditorDialog::RangeEditorDialog().

Here is the caller graph for this function:

◆ getErrString()

std::string MathGLPane::getErrString ( unsigned int  code)

◆ getLastEdited()

void MathGLPane::getLastEdited ( size_t &  lastPlot,
size_t &  lastRegion 
) const
inline

Referenced by RangeEditorDialog::onPlotUpdate().

Here is the caller graph for this function:

◆ getNumVisible()

unsigned int MathGLPane::getNumVisible ( ) const
inline

References PlotWrapper::getNumVisible(), and getRegionUnderCursor().

Referenced by RangeEditorDialog::setPlotWrapper().

Here is the caller graph for this function:

◆ getRegionUnderCursor()

bool MathGLPane::getRegionUnderCursor ( const wxPoint &  mousePos,
unsigned int &  plotId,
unsigned int &  regionId 
) const

Get the region under the cursor. Returns region num [0->...) or.

References ASSERT, and PlotWrapper::getRegionIdAtPosition().

Referenced by getErrString(), getNumVisible(), and mouseDoubleMiddleClick().

Here is the caller graph for this function:

◆ keyPressed()

void MathGLPane::keyPressed ( wxKeyEvent &  event)

Referenced by registerUpdateHandler().

Here is the caller graph for this function:

◆ keyReleased()

void MathGLPane::keyReleased ( wxKeyEvent &  event)

Referenced by registerUpdateHandler().

Here is the caller graph for this function:

◆ leftMouseDown()

void MathGLPane::leftMouseDown ( wxMouseEvent &  event)

References ASSERT, PlotWrapper::getVisibleMode(), PLOT_MODE_1D, PLOT_MODE_2D, and PLOT_MODE_ENUM_END.

Referenced by registerUpdateHandler().

Here is the caller graph for this function:

◆ leftMouseReleased()

void MathGLPane::leftMouseReleased ( wxMouseEvent &  event)

Do we have region updates?

References MOUSE_MODE_DRAG, MOUSE_MODE_DRAG_REGION, MOUSE_MODE_ENUM_END, and PlotWrapper::moveRegion().

Referenced by registerUpdateHandler().

Here is the caller graph for this function:

◆ limitInteraction()

void MathGLPane::limitInteraction ( bool  doLimit = true)
inline

◆ middleMouseDown()

void MathGLPane::middleMouseDown ( wxMouseEvent &  event)

References ASSERT, PlotWrapper::getVisibleMode(), PLOT_MODE_1D, and PLOT_MODE_ENUM_END.

Referenced by registerUpdateHandler().

Here is the caller graph for this function:

◆ middleMouseReleased()

void MathGLPane::middleMouseReleased ( wxMouseEvent &  event)

Middle mouse button has been let go.

References ASSERT, MGL_ZOOM_LIMIT, MOUSE_MODE_DRAG, MOUSE_MODE_DRAG_PAN, MOUSE_MODE_ENUM_END, and PlotWrapper::setBounds().

Referenced by registerUpdateHandler().

Here is the caller graph for this function:

◆ mouseDoubleLeftClick()

void MathGLPane::mouseDoubleLeftClick ( wxMouseEvent &  event)

◆ mouseDoubleMiddleClick()

void MathGLPane::mouseDoubleMiddleClick ( wxMouseEvent &  event)

◆ mouseLeftWindow()

void MathGLPane::mouseLeftWindow ( wxMouseEvent &  event)

Referenced by registerUpdateHandler().

Here is the caller graph for this function:

◆ mouseMoved()

void MathGLPane::mouseMoved ( wxMouseEvent &  event)

wx Event that triggers on mouse movement on grah

References MOUSE_MODE_DRAG, MOUSE_MODE_DRAG_PAN, and MOUSE_MODE_ENUM_END.

Referenced by registerUpdateHandler().

Here is the caller graph for this function:

◆ mouseWheelMoved()

void MathGLPane::mouseWheelMoved ( wxMouseEvent &  event)

◆ registerUpdateHandler()

void MathGLPane::registerUpdateHandler ( wxWindow *  w,
UpdateHandler  handler 
)
inline

◆ render()

void MathGLPane::render ( wxPaintEvent &  evt)

◆ resized()

void MathGLPane::resized ( wxSizeEvent &  evt)

References AXIS_POSITION_INTERIOR, AXIS_POSITION_LOW_X, AXIS_POSITION_LOW_Y, and PlotWrapper::getBounds().

Referenced by registerUpdateHandler().

Here is the caller graph for this function:

◆ rightClick()

void MathGLPane::rightClick ( wxMouseEvent &  event)

Referenced by registerUpdateHandler().

Here is the caller graph for this function:

◆ savePNG()

unsigned int MathGLPane::savePNG ( const std::string &  filename,
unsigned int  width,
unsigned int  height 
)

◆ saveSVG()

unsigned int MathGLPane::saveSVG ( const std::string &  filename)

◆ setLegendVisible()

void MathGLPane::setLegendVisible ( bool  visible)
inline

◆ setPlotVisible()

void MathGLPane::setPlotVisible ( unsigned int  plotID,
bool  visible 
)

References PlotWrapper::setVisible().

Referenced by registerUpdateHandler().

Here is the caller graph for this function:

◆ setPlotWrapper()

void MathGLPane::setPlotWrapper ( PlotWrapper plots,
bool  takeOwnPtr = true 
)

Referenced by RangeEditorDialog::setPlotWrapper().

Here is the caller graph for this function:

◆ setVisibleItems()

void MathGLPane::setVisibleItems ( std::vector< bool > &  newVisible)

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