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/sizer.h"
#include "wx/intl.h"
#include "wx/dcclient.h"
#include "wx/cursor.h"
#include <widgets/mathplot.h>
#include <wx/module.h>
#include <wx/image.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 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 49 of file mathplot.cpp.

◆ mpLEGEND_MARGIN

#define mpLEGEND_MARGIN   5

Definition at line 48 of file mathplot.cpp.

◆ mpLN10

#define mpLN10   2.3025850929940456840179914546844

Definition at line 838 of file mathplot.cpp.

◆ mpSCROLL_NUM_PIXELS_PER_LINE

#define mpSCROLL_NUM_PIXELS_PER_LINE   10

Definition at line 52 of file mathplot.cpp.

Function Documentation

◆ EVT_MIDDLE_DOWN()

EVT_MIDDLE_DOWN ( mpWindow::OnMouseMiddleDown  )

Definition at line 1586 of file mathplot.cpp.

1603  : wxWindow(),
1604  m_lockaspect( false ),
1605  m_minX( 0.0 ),
1606  m_maxX( 0.0 ),
1607  m_minY( 0.0 ),
1608  m_maxY( 0.0 ),
1609  m_scaleX( 1.0 ),
1610  m_scaleY( 1.0 ),
1611  m_posX( 0.0 ),
1612  m_posY( 0.0 ),
1613  m_scrX( 64 ),
1614  m_scrY( 64 ),
1615  m_clickedX( 0 ),
1616  m_clickedY( 0 ),
1617  m_desiredXmin( 0.0 ),
1618  m_desiredXmax( 1.0 ),
1619  m_desiredYmin( 0.0 ),
1620  m_desiredYmax( 1.0 ),
1621  m_marginTop( 0 ),
1622  m_marginRight( 0 ),
1623  m_marginBottom( 0 ),
1624  m_marginLeft( 0 ),
1625  m_last_lx( 0 ),
1626  m_last_ly( 0 ),
1627  m_buff_bmp( nullptr ),
1628  m_enableDoubleBuffer( false ),
1629  m_enableMouseNavigation( true ),
1630  m_enableMouseWheelPan( false ),
1631  m_enableLimitedView( false ),
1632  m_enableScrollBars( false ),
1633  m_movingInfoLayer( nullptr ),
1634  m_zooming( false )
1635 {
1636 }