24#ifndef PCBNEW_SPACENAV_2D_PLUGIN_H 
   25#define PCBNEW_SPACENAV_2D_PLUGIN_H 
   56    void OnPan( 
double x, 
double y, 
double z ) 
override;
 
   57    void OnRotate( 
double rx, 
double ry, 
double rz ) 
override;
 
   58    void OnButton( 
int button, 
bool pressed ) 
override;
 
   61    void onPollTimer( wxTimerEvent& evt );
 
 
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
 
virtual void OnPan(double x, double y, double z)=0
Handle translation (pan) events.
 
virtual void OnRotate(double rx, double ry, double rz)=0
Handle rotational events.
 
virtual void OnButton(int button, bool pressed)=0
Handle button press/release events.
 
void SetFocus(bool aFocus=true)
 
void SetCanvas(EDA_DRAW_PANEL_GAL *aCanvas)
 
std::unique_ptr< SPACENAV_DRIVER > m_driver
 
EDA_DRAW_PANEL_GAL * m_canvas
 
void SetScale(double aScale)
 
SPNAV_2D_PLUGIN(EDA_DRAW_PANEL_GAL *aCanvas)
 
The Cairo implementation of the graphics abstraction layer.