creaMaracasVisu_lib
mathplot.h File Reference
#include "marTypes.h"
#include "wx/defs.h"
#include <wx/wx.h>
Include dependency graph for mathplot.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  mpLayer
 
class  mpFX
 
class  mpFY
 
class  mpFXY
 
class  mpScaleX
 
class  mpScaleY
 
class  mpWindow
 

Macros

#define ZOOM_FACTOR   1.5
 
Label alignment constants
#define mpALIGNMASK   0x03
 
#define mpALIGN_RIGHT   0x00
 
#define mpALIGN_CENTER   0x01
 
#define mpALIGN_LEFT   0x02
 
#define mpALIGN_TOP   mpALIGN_RIGHT
 
#define mpALIGN_BOTTOM   mpALIGN_LEFT
 
#define mpALIGN_NE   0x00
 
#define mpALIGN_NW   0x01
 
#define mpALIGN_SW   0x02
 
#define mpALIGN_SE   0x03
 
Constants defining mouse modes for mpWindow
#define mpMOUSEMODE_DRAG   0
 
#define mpMOUSEMODE_ZOOMBOX   1
 

Enumerations

enum  {
  mpID_FIT = 2000, mpID_ZOOM_IN, mpID_ZOOM_OUT, mpID_CENTER,
  mpID_LOCKASPECT, mpID_LINE_GUIDES
}
 

Macro Definition Documentation

#define mpALIGN_BOTTOM   mpALIGN_LEFT

Aligns label to the bottom. For use with mpFY.

Definition at line 256 of file mathplot.h.

#define mpALIGN_CENTER   0x01

Aligns label to the center. For use with mpFX and mpFY.

Definition at line 250 of file mathplot.h.

Referenced by mpFX::Plot(), and mpFY::Plot().

#define mpALIGN_LEFT   0x02

Aligns label to the left. For use with mpFX.

Definition at line 252 of file mathplot.h.

#define mpALIGN_NE   0x00

Aligns label to north-east. For use with mpFXY.

Definition at line 258 of file mathplot.h.

Referenced by pPlotterWindow::onLoad(), pPlotterWindow::onStartDrawing(), and mpFXY::Plot().

#define mpALIGN_NW   0x01

Aligns label to north-west. For use with mpFXY.

Definition at line 260 of file mathplot.h.

Referenced by mpFXY::Plot().

#define mpALIGN_RIGHT   0x00

Aligns label to the right. For use with mpFX.

Definition at line 248 of file mathplot.h.

Referenced by mpFX::Plot().

#define mpALIGN_SE   0x03

Aligns label to south-east. For use with mpFXY.

Definition at line 264 of file mathplot.h.

#define mpALIGN_SW   0x02

Aligns label to south-west. For use with mpFXY.

Definition at line 262 of file mathplot.h.

Referenced by mpFXY::Plot().

#define mpALIGN_TOP   mpALIGN_RIGHT

Aligns label to the top. For use with mpFY.

Definition at line 254 of file mathplot.h.

Referenced by mpFY::Plot().

#define mpALIGNMASK   0x03

Definition at line 246 of file mathplot.h.

Referenced by mpFX::Plot(), mpFY::Plot(), and mpFXY::Plot().

#define mpMOUSEMODE_DRAG   0

Mouse panning drags the view. Mouse mode for mpWindow.

Definition at line 442 of file mathplot.h.

#define mpMOUSEMODE_ZOOMBOX   1

Mouse panning creates a zoom box. Mouse mode for mpWindow.

Definition at line 444 of file mathplot.h.

#define ZOOM_FACTOR   1.5

Definition at line 38 of file mathplot.h.

Referenced by pPlotterWindow::onMyZoomIn(), and pPlotterWindow::onMyZoomOut().

Enumeration Type Documentation

anonymous enum

Command IDs used by mpWindow

Enumerator
mpID_FIT 

Fit view to match bounding box of all layers.

mpID_ZOOM_IN 

Zoom into view at clickposition / window center.

mpID_ZOOM_OUT 

Zoom out.

mpID_CENTER 

Center view on click position.

mpID_LOCKASPECT 

Lock x/y scaling aspect.

mpID_LINE_GUIDES 

Enables or disables the line guides drawing condition.

Definition at line 102 of file mathplot.h.

103 {
104  mpID_FIT = 2000,
105  mpID_ZOOM_IN,
106  mpID_ZOOM_OUT,
107  mpID_CENTER,
110 };