KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PANEL_3D_DISPLAY_OPTIONS Class Reference

#include <panel_3D_display_options.h>

Inheritance diagram for PANEL_3D_DISPLAY_OPTIONS:
PANEL_3D_DISPLAY_OPTIONS_BASE RESETTABLE_PANEL

Public Member Functions

 PANEL_3D_DISPLAY_OPTIONS (wxWindow *aParent)
 
void OnCheckEnableAnimation (wxCommandEvent &WXUNUSED(event)) override
 
bool TransferDataFromWindow () override
 
bool TransferDataToWindow () override
 
void ResetPanel () override
 Reset the contents of this panel. More...
 
virtual wxString GetResetTooltip () const
 Get the tooltip the reset button should display when showing this panel. More...
 
wxString GetHelpTextAtPoint (const wxPoint &aPt, wxHelpEvent::Origin aOrigin) const override
 Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }. More...
 

Protected Member Functions

virtual void OnCheckRealisticMode (wxCommandEvent &event)
 
virtual void OnCheckEnableAnimation (wxCommandEvent &event)
 

Protected Attributes

wxStaticText * m_boardLayersLabel
 
wxStaticLine * m_staticline2
 
wxCheckBox * m_checkBoxSilkscreen
 
wxCheckBox * m_checkBoxSubtractMaskFromSilk
 
wxCheckBox * m_checkBoxClipSilkOnViaAnnulus
 
wxCheckBox * m_checkBoxSolderMask
 
wxCheckBox * m_checkBoxSolderpaste
 
wxCheckBox * m_checkBoxAdhesive
 
wxStaticText * m_userLayersLabel
 
wxStaticLine * m_staticline31
 
wxCheckBox * m_checkBoxComments
 
wxCheckBox * m_checkBoxECO
 
wxStaticText * m_renderOptionsLabel
 
wxStaticLine * m_staticline4
 
wxCheckBox * m_checkBoxBoardBody
 
wxCheckBox * m_checkBoxRealisticMode
 
wxCheckBox * m_checkBoxAreas
 
wxCheckBox * m_checkBoxRenderPlatedPadsAsPlated
 
wxStaticText * m_materialPropertiesLabel
 
wxChoice * m_materialProperties
 
wxStaticText * m_cameraOptionsLabel
 
wxStaticLine * m_staticline5
 
wxStaticText * m_staticTextRotAngle
 
wxSpinCtrlDouble * m_spinCtrlRotationAngle
 
wxStaticText * m_staticTextRotAngleUnits
 
wxCheckBox * m_checkBoxEnableAnimation
 
wxStaticText * m_staticAnimationSpeed
 
wxSlider * m_sliderAnimationSpeed
 

Private Member Functions

void loadViewSettings (EDA_3D_VIEWER_SETTINGS *aCfg)
 

Detailed Description

Definition at line 32 of file panel_3D_display_options.h.

Constructor & Destructor Documentation

◆ PANEL_3D_DISPLAY_OPTIONS()

PANEL_3D_DISPLAY_OPTIONS::PANEL_3D_DISPLAY_OPTIONS ( wxWindow *  aParent)
explicit

Definition at line 32 of file panel_3D_display_options.cpp.

Member Function Documentation

◆ GetHelpTextAtPoint()

wxString RESETTABLE_PANEL::GetHelpTextAtPoint ( const wxPoint &  aPt,
wxHelpEvent::Origin  aOrigin 
) const
inlineoverrideinherited

Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }.

Definition at line 72 of file resettable_panel.h.

References RESETTABLE_PANEL::GetResetTooltip().

◆ GetResetTooltip()

virtual wxString RESETTABLE_PANEL::GetResetTooltip ( ) const
inlinevirtualinherited

Get the tooltip the reset button should display when showing this panel.

Returns
the tooltip

Reimplemented in PANEL_COLOR_SETTINGS, and PANEL_HOTKEYS_EDITOR.

Definition at line 64 of file resettable_panel.h.

References _.

Referenced by RESETTABLE_PANEL::GetHelpTextAtPoint().

◆ loadViewSettings()

void PANEL_3D_DISPLAY_OPTIONS::loadViewSettings ( EDA_3D_VIEWER_SETTINGS aCfg)
private

Definition at line 45 of file panel_3D_display_options.cpp.

References EDA_3D_VIEWER_SETTINGS::CAMERA_SETTINGS::animation_enabled, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::clip_silk_on_via_annulus, EDA_3D_VIEWER_SETTINGS::m_Camera, PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxAdhesive, PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxAreas, PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxBoardBody, PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxClipSilkOnViaAnnulus, PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxComments, PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxECO, PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxEnableAnimation, PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxRealisticMode, PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxRenderPlatedPadsAsPlated, PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxSilkscreen, PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxSolderMask, PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxSolderpaste, PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxSubtractMaskFromSilk, PANEL_3D_DISPLAY_OPTIONS_BASE::m_materialProperties, EDA_3D_VIEWER_SETTINGS::m_Render, PANEL_3D_DISPLAY_OPTIONS_BASE::m_sliderAnimationSpeed, PANEL_3D_DISPLAY_OPTIONS_BASE::m_spinCtrlRotationAngle, PANEL_3D_DISPLAY_OPTIONS_BASE::m_staticAnimationSpeed, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::material_mode, EDA_3D_VIEWER_SETTINGS::CAMERA_SETTINGS::moving_speed_multiplier, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::realistic, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::renderPlatedPadsAsPlated, EDA_3D_VIEWER_SETTINGS::CAMERA_SETTINGS::rotation_increment, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_adhesive, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_board_body, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_comments, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_eco, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_silkscreen, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_soldermask, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_solderpaste, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_zones, and EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::subtract_mask_from_silk.

Referenced by ResetPanel(), and TransferDataToWindow().

◆ OnCheckEnableAnimation() [1/2]

virtual void PANEL_3D_DISPLAY_OPTIONS_BASE::OnCheckEnableAnimation ( wxCommandEvent &  event)
inlineprotectedvirtualinherited

◆ OnCheckEnableAnimation() [2/2]

void PANEL_3D_DISPLAY_OPTIONS::OnCheckEnableAnimation ( wxCommandEvent &  WXUNUSEDevent)
override

◆ OnCheckRealisticMode()

virtual void PANEL_3D_DISPLAY_OPTIONS_BASE::OnCheckRealisticMode ( wxCommandEvent &  event)
inlineprotectedvirtualinherited

◆ ResetPanel()

void PANEL_3D_DISPLAY_OPTIONS::ResetPanel ( )
overridevirtual

Reset the contents of this panel.

Implements RESETTABLE_PANEL.

Definition at line 115 of file panel_3D_display_options.cpp.

References JSON_SETTINGS::Load(), and loadViewSettings().

◆ TransferDataFromWindow()

bool PANEL_3D_DISPLAY_OPTIONS::TransferDataFromWindow ( )
override

Definition at line 82 of file panel_3D_display_options.cpp.

References EDA_3D_VIEWER_SETTINGS::CAMERA_SETTINGS::animation_enabled, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::clip_silk_on_via_annulus, EDA_3D_VIEWER_SETTINGS::m_Camera, PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxAdhesive, PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxAreas, PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxBoardBody, PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxClipSilkOnViaAnnulus, PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxComments, PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxECO, PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxEnableAnimation, PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxRealisticMode, PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxRenderPlatedPadsAsPlated, PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxSilkscreen, PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxSolderMask, PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxSolderpaste, PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxSubtractMaskFromSilk, PANEL_3D_DISPLAY_OPTIONS_BASE::m_materialProperties, EDA_3D_VIEWER_SETTINGS::m_Render, PANEL_3D_DISPLAY_OPTIONS_BASE::m_sliderAnimationSpeed, PANEL_3D_DISPLAY_OPTIONS_BASE::m_spinCtrlRotationAngle, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::material_mode, EDA_3D_VIEWER_SETTINGS::CAMERA_SETTINGS::moving_speed_multiplier, Pgm(), EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::realistic, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::renderPlatedPadsAsPlated, EDA_3D_VIEWER_SETTINGS::CAMERA_SETTINGS::rotation_increment, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_adhesive, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_board_body, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_comments, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_eco, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_silkscreen, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_soldermask, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_solderpaste, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_zones, and EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::subtract_mask_from_silk.

◆ TransferDataToWindow()

bool PANEL_3D_DISPLAY_OPTIONS::TransferDataToWindow ( )
override

Definition at line 72 of file panel_3D_display_options.cpp.

References loadViewSettings(), and Pgm().

Member Data Documentation

◆ m_boardLayersLabel

wxStaticText* PANEL_3D_DISPLAY_OPTIONS_BASE::m_boardLayersLabel
protectedinherited

◆ m_cameraOptionsLabel

wxStaticText* PANEL_3D_DISPLAY_OPTIONS_BASE::m_cameraOptionsLabel
protectedinherited

◆ m_checkBoxAdhesive

wxCheckBox* PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxAdhesive
protectedinherited

◆ m_checkBoxAreas

wxCheckBox* PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxAreas
protectedinherited

◆ m_checkBoxBoardBody

wxCheckBox* PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxBoardBody
protectedinherited

◆ m_checkBoxClipSilkOnViaAnnulus

wxCheckBox* PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxClipSilkOnViaAnnulus
protectedinherited

◆ m_checkBoxComments

wxCheckBox* PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxComments
protectedinherited

◆ m_checkBoxECO

wxCheckBox* PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxECO
protectedinherited

◆ m_checkBoxEnableAnimation

◆ m_checkBoxRealisticMode

wxCheckBox* PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxRealisticMode
protectedinherited

◆ m_checkBoxRenderPlatedPadsAsPlated

wxCheckBox* PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxRenderPlatedPadsAsPlated
protectedinherited

◆ m_checkBoxSilkscreen

wxCheckBox* PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxSilkscreen
protectedinherited

◆ m_checkBoxSolderMask

wxCheckBox* PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxSolderMask
protectedinherited

◆ m_checkBoxSolderpaste

wxCheckBox* PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxSolderpaste
protectedinherited

◆ m_checkBoxSubtractMaskFromSilk

wxCheckBox* PANEL_3D_DISPLAY_OPTIONS_BASE::m_checkBoxSubtractMaskFromSilk
protectedinherited

◆ m_materialProperties

wxChoice* PANEL_3D_DISPLAY_OPTIONS_BASE::m_materialProperties
protectedinherited

◆ m_materialPropertiesLabel

wxStaticText* PANEL_3D_DISPLAY_OPTIONS_BASE::m_materialPropertiesLabel
protectedinherited

◆ m_renderOptionsLabel

wxStaticText* PANEL_3D_DISPLAY_OPTIONS_BASE::m_renderOptionsLabel
protectedinherited

◆ m_sliderAnimationSpeed

wxSlider* PANEL_3D_DISPLAY_OPTIONS_BASE::m_sliderAnimationSpeed
protectedinherited

◆ m_spinCtrlRotationAngle

wxSpinCtrlDouble* PANEL_3D_DISPLAY_OPTIONS_BASE::m_spinCtrlRotationAngle
protectedinherited

◆ m_staticAnimationSpeed

wxStaticText* PANEL_3D_DISPLAY_OPTIONS_BASE::m_staticAnimationSpeed
protectedinherited

◆ m_staticline2

wxStaticLine* PANEL_3D_DISPLAY_OPTIONS_BASE::m_staticline2
protectedinherited

◆ m_staticline31

wxStaticLine* PANEL_3D_DISPLAY_OPTIONS_BASE::m_staticline31
protectedinherited

◆ m_staticline4

wxStaticLine* PANEL_3D_DISPLAY_OPTIONS_BASE::m_staticline4
protectedinherited

◆ m_staticline5

wxStaticLine* PANEL_3D_DISPLAY_OPTIONS_BASE::m_staticline5
protectedinherited

◆ m_staticTextRotAngle

wxStaticText* PANEL_3D_DISPLAY_OPTIONS_BASE::m_staticTextRotAngle
protectedinherited

◆ m_staticTextRotAngleUnits

wxStaticText* PANEL_3D_DISPLAY_OPTIONS_BASE::m_staticTextRotAngleUnits
protectedinherited

◆ m_userLayersLabel

wxStaticText* PANEL_3D_DISPLAY_OPTIONS_BASE::m_userLayersLabel
protectedinherited

The documentation for this class was generated from the following files: