KiCad PCB EDA Suite
mathplot.cpp File Reference
#include <wx/window.h>
#include "wx/object.h"
#include "wx/font.h"
#include "wx/colour.h"
#include "wx/settings.h"
#include "wx/sizer.h"
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/dcclient.h"
#include "wx/cursor.h"
#include <widgets/mathplot.h>
#include <wx/bmpbuttn.h>
#include <wx/module.h>
#include <wx/msgdlg.h>
#include <wx/image.h>
#include <wx/tipwin.h>
#include <cmath>
#include <cstdio>
#include <ctime>
#include <set>

Go to the source code of this file.

Macros

#define mpLEGEND_MARGIN   5
 
#define mpLEGEND_LINEWIDTH   10
 
#define mpMIN_X_AXIS_LABEL_SEPARATION   64
 
#define mpMIN_Y_AXIS_LABEL_SEPARATION   32
 
#define mpSCROLL_NUM_PIXELS_PER_LINE   10
 
#define mpLN10   2.3025850929940456840179914546844
 

Functions

 EVT_MIDDLE_DOWN (mpWindow::OnMouseMiddleDown) EVT_MOUSEWHEEL(mpWindow
 

Macro Definition Documentation

◆ mpLEGEND_LINEWIDTH

#define mpLEGEND_LINEWIDTH   10

Definition at line 54 of file mathplot.cpp.

◆ mpLEGEND_MARGIN

#define mpLEGEND_MARGIN   5

Definition at line 53 of file mathplot.cpp.

◆ mpLN10

#define mpLN10   2.3025850929940456840179914546844

Definition at line 885 of file mathplot.cpp.

◆ mpMIN_X_AXIS_LABEL_SEPARATION

#define mpMIN_X_AXIS_LABEL_SEPARATION   64

Definition at line 57 of file mathplot.cpp.

◆ mpMIN_Y_AXIS_LABEL_SEPARATION

#define mpMIN_Y_AXIS_LABEL_SEPARATION   32

Definition at line 58 of file mathplot.cpp.

◆ mpSCROLL_NUM_PIXELS_PER_LINE

#define mpSCROLL_NUM_PIXELS_PER_LINE   10

Definition at line 61 of file mathplot.cpp.

Function Documentation

◆ EVT_MIDDLE_DOWN()

EVT_MIDDLE_DOWN ( mpWindow::OnMouseMiddleDown  )

Definition at line 1681 of file mathplot.cpp.

1698  : wxWindow(),
1699  m_lockaspect( false ),
1700  m_minX( 0.0 ),
1701  m_maxX( 0.0 ),
1702  m_minY( 0.0 ),
1703  m_maxY( 0.0 ),
1704  m_scaleX( 1.0 ),
1705  m_scaleY( 1.0 ),
1706  m_posX( 0.0 ),
1707  m_posY( 0.0 ),
1708  m_scrX( 64 ),
1709  m_scrY( 64 ),
1710  m_clickedX( 0 ),
1711  m_clickedY( 0 ),
1712  m_desiredXmin( 0.0 ),
1713  m_desiredXmax( 1.0 ),
1714  m_desiredYmin( 0.0 ),
1715  m_desiredYmax( 1.0 ),
1716  m_marginTop( 0 ),
1717  m_marginRight( 0 ),
1718  m_marginBottom( 0 ),
1719  m_marginLeft( 0 ),
1720  m_last_lx( 0 ),
1721  m_last_ly( 0 ),
1722  m_buff_bmp( nullptr ),
1723  m_enableDoubleBuffer( false ),
1724  m_enableMouseNavigation( true ),
1725  m_enableMouseWheelPan( false ),
1726  m_enableLimitedView( false ),
1727  m_enableScrollBars( false ),
1728  m_movingInfoLayer( nullptr ),
1729  m_zooming( false )
1730 {
1731 }