3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Macros | Enumerations | Functions | Variables
mathglPane.cpp File Reference
#include <wx/wx.h>
#include <wx/dcbuffer.h>
#include "wx/wxcomponents.h"
#include "mathglPane.h"
#include "wx/wxcommon.h"
#include "common/translation.h"
#include "backend/plot.h"
#include <mgl2/canvas_wnd.h>
Include dependency graph for mathglPane.cpp:

Macros

#define pow10(x)   pow(10,x)
 

Enumerations

enum  { MOUSE_MODE_DRAG, MOUSE_MODE_DRAG_PAN, MOUSE_MODE_DRAG_REGION, MOUSE_MODE_ENUM_END }
 
enum  {
  PLOT_TEXTURE_ZOOM_X, PLOT_TEXTURE_ZOOM_Y, PLOT_TEXTURE_ZOOM_RESET, PLOT_TEXTURE_SLIDE_X,
  PLOT_TEXTURE_ENUM_END
}
 
enum  { AXIS_POSITION_INTERIOR =1, AXIS_POSITION_LOW_X =2, AXIS_POSITION_LOW_Y =4 }
 

Functions

 END_EVENT_TABLE ()
 
void zoomBounds (float minV, float maxV, float centre, float zoomFactor, float &newMin, float &newMax)
 

Variables

const float MGL_PAN_SPEED =2.0f
 
const float MGL_ZOOM_LIMIT =10.0f*sqrt(std::numeric_limits<float>::epsilon())
 
const float HORIZ_MARGIN_FACTOR = 0.25
 
const bool MOUSE_ACTION_NEEDS_REDRAW [] = { false,true,true,false}
 
const char * mglTextureFile []
 

Macro Definition Documentation

◆ pow10

#define pow10 (   x)    pow(10,x)

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MOUSE_MODE_DRAG 
MOUSE_MODE_DRAG_PAN 
MOUSE_MODE_DRAG_REGION 
MOUSE_MODE_ENUM_END 

◆ anonymous enum

anonymous enum
Enumerator
PLOT_TEXTURE_ZOOM_X 
PLOT_TEXTURE_ZOOM_Y 
PLOT_TEXTURE_ZOOM_RESET 
PLOT_TEXTURE_SLIDE_X 
PLOT_TEXTURE_ENUM_END 

◆ anonymous enum

anonymous enum
Enumerator
AXIS_POSITION_INTERIOR 
AXIS_POSITION_LOW_X 
AXIS_POSITION_LOW_Y 

Function Documentation

◆ END_EVENT_TABLE()

END_EVENT_TABLE ( )

◆ zoomBounds()

void zoomBounds ( float  minV,
float  maxV,
float  centre,
float  zoomFactor,
float &  newMin,
float &  newMax 
)

References ASSERT.

Referenced by MathGLPane::mouseWheelMoved().

Here is the caller graph for this function:

Variable Documentation

◆ HORIZ_MARGIN_FACTOR

const float HORIZ_MARGIN_FACTOR = 0.25

◆ MGL_PAN_SPEED

const float MGL_PAN_SPEED =2.0f

Referenced by MathGLPane::~MathGLPane().

◆ MGL_ZOOM_LIMIT

const float MGL_ZOOM_LIMIT =10.0f*sqrt(std::numeric_limits<float>::epsilon())

◆ mglTextureFile

const char* mglTextureFile[]
Initial value:
= { "textures/plot_zoom_x.png",
"textures/plot_zoom_y.png",
"textures/plot_zoom_reset.png",
"textures/plot_slide_x.png"
}

◆ MOUSE_ACTION_NEEDS_REDRAW

const bool MOUSE_ACTION_NEEDS_REDRAW[] = { false,true,true,false}