102 if( conditionalMenu )
103 conditionalMenu->Evaluate( dummySel );
117 if( evt->IsCancelInteractive() )
120 wxWindow* topLevelParent = canvas->GetParent();
122 while( topLevelParent && !topLevelParent->IsTopLevel() )
123 topLevelParent = topLevelParent->GetParent();
125 if( topLevelParent &&
dynamic_cast<DIALOG_SHIM*
>( topLevelParent ) )
132 dialog->EndModal( wxID_CANCEL );
169 default: wxFAIL;
break;
189 default: wxFAIL;
break;
206 viewer->NewDisplay(
true );
230#define FLIP( x ) x = !x
318 viewer->NewDisplay(
true );
ROTATION_DIR
Rotation direction for the 3d canvas.
MATERIAL_MODE
Render 3d model shape materials mode.
static TOOL_ACTION zoomRedraw
static TOOL_ACTION zoomOutCenter
static TOOL_ACTION zoomIn
static TOOL_ACTION zoomOut
static TOOL_ACTION panDown
static TOOL_ACTION panLeft
static TOOL_ACTION updateMenu
static TOOL_ACTION zoomFitScreen
static TOOL_ACTION zoomInCenter
static TOOL_ACTION panRight
EDA_3D_VIEWER_SETTINGS * m_Cfg
void RotateY(float aAngleInRadians)
void RotateX(float aAngleInRadians)
void RotateZ(float aAngleInRadians)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
bool IsQuasiModal() const
void EndQuasiModal(int retCode)
static TOOL_ACTION resetView
static TOOL_ACTION toggleSolderMask
static TOOL_ACTION toggleBoardBody
static TOOL_ACTION rotateXCCW
static TOOL_ACTION showNotInPosFile
static TOOL_ACTION showTHT
static TOOL_ACTION noGrid
static TOOL_ACTION toggleComments
static TOOL_ACTION show2_5mmGrid
static TOOL_ACTION rotateZCCW
static TOOL_ACTION rotateZCW
static TOOL_ACTION toggleSilk
static TOOL_ACTION rotateYCCW
static TOOL_ACTION rotateXCW
static TOOL_ACTION viewTop
static TOOL_ACTION show1mmGrid
static TOOL_ACTION showDNP
static TOOL_ACTION toggleZones
static TOOL_ACTION toggleOrtho
static TOOL_ACTION moveLeft
static TOOL_ACTION viewLeft
static TOOL_ACTION show10mmGrid
static TOOL_ACTION viewBack
static TOOL_ACTION show5mmGrid
static TOOL_ACTION viewRight
static TOOL_ACTION showSMD
static TOOL_ACTION homeView
static TOOL_ACTION moveUp
static TOOL_ACTION flipView
static TOOL_ACTION moveDown
static TOOL_ACTION viewBottom
static TOOL_ACTION moveRight
static TOOL_ACTION materialDiffuse
static TOOL_ACTION toggleAdhesive
static TOOL_ACTION pivotCenter
static TOOL_ACTION controlActivate
static TOOL_ACTION showVirtual
static TOOL_ACTION rotateYCW
static TOOL_ACTION materialCAD
static TOOL_ACTION viewFront
static TOOL_ACTION toggleRealisticMode
static TOOL_ACTION showBBoxes
static TOOL_ACTION toggleECO
static TOOL_ACTION materialNormal
static TOOL_ACTION showAxis
static TOOL_ACTION toggleSolderPaste
virtual BOARD_ADAPTER & GetAdapter()=0
virtual CAMERA & GetCurrentCamera()=0
Implement a canvas based on a wxGLCanvas.
RENDER_3D_BASE * GetCurrentRender() const
bool SetView3D(int aKeycode)
Helper function to call view commands.
void DisplayStatus()
Update the status bar with the position information.
void RenderRaytracingRequest()
Request to render the current view in Raytracing mode.
void Request_refresh(bool aRedrawImmediately=true)
Schedule a refresh update of the canvas.
int On3DGridSelection(const TOOL_EVENT &aEvent)
double m_rotationIncrement
Rotation increment for the rotate actions (degrees)
int ZoomFitScreen(const TOOL_EVENT &aEvent)
int doZoomInOut(bool aDirection, bool aCenterOnCursor)
int Main(const TOOL_EVENT &aEvent)
BOARD_ADAPTER * m_boardAdapter
int ZoomRedraw(const TOOL_EVENT &aEvent)
int ToggleOrtho(const TOOL_EVENT &aEvent)
int PanControl(const TOOL_EVENT &aEvent)
bool Init() override
Init() is called once upon a registration of the tool.
int ToggleVisibility(const TOOL_EVENT &aEvent)
void Reset(RESET_REASON aReason) override
Bring the tool to a known, initial state.
void setTransitions() override
< Sets up handlers for various events.
int RotateView(const TOOL_EVENT &aEvent)
int SetMaterial(const TOOL_EVENT &aEvent)
int UpdateMenu(const TOOL_EVENT &aEvent)
int ViewControl(const TOOL_EVENT &aEvent)
int ZoomInOutCenter(const TOOL_EVENT &aEvent)
int ZoomInOut(const TOOL_EVENT &aEvent)
Create and handle a window for the 3d viewer connected to a Kiway and a pcbboard.
Object to render the board using openGL.
void Load3dModelsIfNeeded()
Load footprint models if they are not already loaded, i.e.
static bool ShowAlways(const SELECTION &aSelection)
The default condition function (always returns true).
Declaration of the eda_3d_viewer class.
bool show_footprints_normal
MATERIAL_MODE material_mode
bool show_footprints_virtual
bool opengl_show_model_bbox
bool show_footprints_not_in_posfile
bool show_footprints_insert