32 #ifndef EDA_3D_VIEWER_H 33 #define EDA_3D_VIEWER_H 39 #include <wx/colourdata.h> 45 #define KICAD6_3DMODEL_DIR wxT( "KICAD6_3DMODEL_DIR" ) 48 #define KICAD_DEFAULT_3D_DRAWFRAME_STYLE (wxDEFAULT_FRAME_STYLE | wxWANTS_CHARS) 50 #define VIEWER3D_FRAMENAME wxT( "Viewer3DFrameName" ) 51 #define QUALIFIED_VIEWER3D_FRAMENAME( parent ) \ 52 ( wxString( VIEWER3D_FRAMENAME ) + wxT( ":" ) + parent->GetName() ) 102 void NewDisplay(
bool aForceImmediateRedraw =
false );
121 bool aAllowOpacityControl =
false,
210 DECLARE_EVENT_TABLE()
237 #endif // EDA_3D_VIEWER_H CAMERA & GetCurrentCamera() override
bool Set3DCopperColorFromUser()
Set the copper color from a set of colors.
A wxFrame capable of the OpenProjectFiles function, meaning it can load a portion of a KiCad project.
void Install3DViewOptionDialog(wxCommandEvent &event)
bool Set3DSolderMaskColorFromUser()
Set the solder mask color from a set of colors.
EDA_3D_VIEWER(KIWAY *aKiway, PCB_BASE_FRAME *aParent, const wxString &aTitle, long style=KICAD_DEFAULT_3D_DRAWFRAME_STYLE)
BOARD_ADAPTER & GetAdapter() override
void SaveSettings(APP_SETTINGS_BASE *aCfg) override
Save common frame parameters to a configuration data file.
Implement a canvas based on a wxGLCanvas.
void SynchroniseColoursWithBoard()
wxWindow * GetToolCanvas() const override
Canvas access.
std::vector< CUSTOM_COLOR_ITEM > CUSTOM_COLORS_LIST
void Exit3DFrame(wxCommandEvent &event)
Called when user press the File->Exit.
void loadCommonSettings()
Load configuration from common settings.
A class used to derive camera objects from.
void OnActivate(wxActivateEvent &event)
BOARD_ADAPTER m_boardAdapter
void OnDisableRayTracing(wxCommandEvent &aEvent)
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
EDA_3D_CANVAS * GetCanvas()
bool Set3DSilkScreenColorFromUser()
Set the silkscreen color from a set of colors.
void LoadSettings(APP_SETTINGS_BASE *aCfg) override
Load common frame parameters from a configuration file.
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
void OnCloseWindow(wxCloseEvent &event)
bool Set3DColorFromUser(SFVEC4F &aColor, const wxString &aTitle, CUSTOM_COLORS_LIST *aPredefinedColors, bool aAllowOpacityControl=false, KIGFX::COLOR4D aDefaultColor=KIGFX::COLOR4D(1.0, 1.0, 1.0, 1.0))
Get a SFVEC3D from a color dialog.
void ReCreateMainToolbar()
bool Set3DSolderPasteColorFromUser()
Set the solder mask color from a set of colors.
void RenderEngineChanged()
RenderEngineChanged - Update toolbar icon and call canvas RenderEngineChanged.
static const wxChar * m_logTrace
Trace mask used to enable or disable the trace output of this class.
wxFileName m_defaultSaveScreenshotFileName
Information pertinent to a Pcbnew printed circuit board.
void setupUIConditions() override
Setup the UI conditions for the various actions and their controls in this frame.
void OnRenderEngineSelection(wxCommandEvent &event)
PCB_BASE_FRAME * Parent() const
void OnSetFocus(wxFocusEvent &event)
Create and handle a window for the 3d viewer connected to a Kiway and a pcbboard.
ACTION_TOOLBAR * m_mainToolBar
#define KICAD_DEFAULT_3D_DRAWFRAME_STYLE
void CommonSettingsChanged(bool aEnvVarsChanged, bool aTextVarsChanged) override
Notification that common settings are updated.
void NewDisplay(bool aForceImmediateRedraw=false)
Reload and refresh (rebuild) the 3D scene.
TRACK_BALL m_trackBallCamera
Helper class to handle information needed to display 3D board.
Declaration for a track ball camera.
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
bool m_disable_ray_tracing
bool Set3DBoardBodyColorFromUser()
Set the copper color from a set of colors.
void ReloadRequest()
Request reloading the 3D view.
void Process_Special_Functions(wxCommandEvent &event)
A color representation with 4 components: red, green, blue, alpha.
void takeScreenshot(wxCommandEvent &event)
Create a Screenshot of the current 3D view.