39 return static_cast<EDA_3D_VIEWER*>( DIALOG_SHIM::GetParent() );
63 if( dlg.ShowModal() == wxID_OK )
72 m_settings( aParent->GetAdapter() ),
73 m_canvas( aParent->GetCanvas() )
95 const std::vector<int> default_elevation =
97 67, 67, 67, 67, -67, -67, -67, -67,
100 const std::vector<int> default_azimuth =
102 45, 135, 225, 315, 45, 135, 225, 315,
110 ( (float) default_elevation[i] + 90.0f ) / 180.0f;
121 auto Transfer_color = [] (
const SFVEC3F& aSource, wxColourPickerCtrl *aTarget )
123 aTarget->SetColour( wxColour( aSource.r * 255, aSource.g * 255, aSource.b * 255, 255 ) );
324 auto Transfer_color = [] (
SFVEC3F& aTarget, wxColourPickerCtrl *aSource )
326 const wxColour
color = aSource->GetColour();
void AnimationEnabledSet(bool aAnimationEnabled)
Enable or disable camera animation when switching to a pre-defined view.
wxSpinCtrl * m_spinCtrl_NrSamples_Reflections
bool GetFlag(DISPLAY3D_FLG aFlag) const
Get a configuration status of a flag.
wxCheckBox * m_checkBoxComments
int m_RtShadowSampleCount
wxSpinCtrl * m_spinCtrlLightAzimuth7
wxCheckBox * m_checkBox3DshapesVirtual
void Install3DViewOptionDialog(wxCommandEvent &event)
BOARD_ADAPTER & m_settings
wxSpinCtrl * m_spinCtrlRecursiveLevel_Refractions
void OnLightsResetToDefaults(wxCommandEvent &event) override
void SetAntiAliasingMode(ANTIALIASING_MODE aAAmode)
Set the current antialiasing mode value.
wxCheckBox * m_checkBoxRaytracing_addFloor
wxCheckBox * m_checkBoxRaytracing_showReflections
DIALOG_3D_VIEW_OPTIONS(EDA_3D_VIEWER *aParent)
void SetFlag(DISPLAY3D_FLG aFlag, bool aState)
Set the status of a flag.
wxCheckBox * m_checkBoxRenderPlatedPadsAsPlated
void SetRotationIncrement(double aRotIncrement)
Set the increment used by the RotateView actions.
wxSpinCtrl * m_spinCtrlLightElevation8
wxColourPickerCtrl * m_colourPickerLight1
wxSpinCtrlDouble * m_spinCtrlDouble_SpreadFactor_Refractions
Class DIALOG_3D_VIEW_OPTIONS_BASE.
wxCheckBox * m_checkBoxECO
wxCheckBox * m_checkBoxSubtractMaskFromSilk
wxColourPickerCtrl * m_colourPickerSelection
std::vector< SFVEC2F > m_RtLightSphericalCoords
Implement a canvas based on a wxGLCanvas.
void TransferColorDataToWindow()
wxSpinCtrl * m_spinCtrlLightAzimuth2
wxColourPickerCtrl * m_colourPickerLight5
wxColourPickerCtrl * m_colourPickerCameraLight
wxSpinCtrl * m_spinCtrlLightElevation3
wxSlider * m_sliderAnimationSpeed
float m_RtSpreadRefractions
SFVEC3F m_RtCameraLightColor
wxColourPickerCtrl * m_colourPickerLight7
wxCheckBox * m_checkBoxAdhesive
wxCheckBox * m_checkBoxAreas
void MovingSpeedMultiplierSet(int aMovingSpeedMultiplier)
Set the camera animation moving speed multiplier option.
wxCheckBox * m_checkBoxDisableMoveHoles
wxCheckBox * m_checkBoxBoardBody
EDA_3D_VIEWER * GetParent()
bool TransferDataToWindow() override
Automatically called after creating the dialog.
wxSpinCtrl * m_spinCtrlLightElevation2
int m_RtRecursiveReflectionCount
float m_RtSpreadReflections
wxCheckBox * m_checkBoxRaytracing_postProcessing
wxCheckBox * m_checkBoxRealisticMode
wxCheckBox * m_checkBoxBoundingBoxes
wxSpinCtrl * m_spinCtrl_NrSamples_Shadows
wxCheckBox * m_checkBoxEnableAnimation
wxSpinCtrl * m_spinCtrl_NrSamples_Refractions
SFVEC3F m_RtLightColorTop
bool AnimationEnabledGet() const
Return whether camera animation is enabled when switching to a pre-defined view.
wxSpinCtrl * m_spinCtrlLightElevation4
double GetRotationIncrement()
Get the increment used by the RotateView actions.
wxSpinCtrl * m_spinCtrlLightAzimuth4
wxCheckBox * m_checkBoxSolderMask
wxSpinCtrl * m_spinCtrlLightAzimuth1
wxCheckBox * m_checkBoxDisableMoveThickness
int m_RtRecursiveRefractionCount
std::vector< SFVEC3F > m_RtLightColor
int m_RtRefractionSampleCount
wxSpinCtrl * m_spinCtrlLightElevation5
wxSpinCtrl * m_spinCtrlLightElevation1
wxSpinCtrl * m_spinCtrlLightAzimuth6
wxColourPickerCtrl * m_colourPickerLight4
wxCheckBox * m_checkBoxDisableMoveVias
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
wxCheckBox * m_checkBox3DshapesSMD
int MovingSpeedMultiplierGet() const
Return the current camera animation moving speed multiplier option.
wxCheckBox * m_checkBoxDisableAAMove
wxSpinCtrl * m_spinCtrlLightAzimuth8
Declaration of the eda_3d_viewer class.
ANTIALIASING_MODE GetAntiAliasingMode() const
Get the current antialiasing mode value.
wxSpinCtrl * m_spinCtrlRecursiveLevel_Reflections
wxChoice * m_choiceAntiAliasing
wxColourPickerCtrl * m_colourPickerLight2
wxCheckBox * m_checkBoxRaytracing_showRefractions
wxSpinCtrl * m_spinCtrlLightAzimuth5
wxColourPickerCtrl * m_colourPickerLight3
wxSpinCtrl * m_spinCtrlLightElevation7
SFVEC3F m_OpenGlSelectionColor
wxSpinCtrlDouble * m_spinCtrlRotationAngle
wxCheckBox * m_checkBoxRaytracing_renderShadows
wxCheckBox * m_checkBox3DshapesTH
wxSpinCtrl * m_spinCtrlLightElevation6
wxCheckBox * m_checkBoxCuThickness
Create and handle a window for the 3d viewer connected to a Kiway and a pcbboard.
wxCheckBox * m_checkBoxRaytracing_proceduralTextures
wxColourPickerCtrl * m_colourPickerTopLight
wxColourPickerCtrl * m_colourPickerLight6
SFVEC3F m_RtLightColorBottom
wxCheckBox * m_checkBoxSilkscreen
wxColourPickerCtrl * m_colourPickerLight8
void NewDisplay(bool aForceImmediateRedraw=false)
Reload and refresh (rebuild) the 3D scene.
wxStaticText * m_staticAnimationSpeed
wxSpinCtrlDouble * m_spinCtrlDouble_SpreadFactor_Reflections
wxCheckBox * m_checkBoxSolderpaste
Helper class to handle information needed to display 3D board.
wxColourPickerCtrl * m_colourPickerBottomLight
int m_RtReflectionSampleCount
bool TransferDataFromWindow() override
Automatically called when clicking on the OK button.
wxCheckBox * m_checkBoxRaytracing_antiAliasing
void OnCheckEnableAnimation(wxCommandEvent &WXUNUSED(event)) override
wxSpinCtrlDouble * m_spinCtrlDouble_SpreadFactor_Shadows
wxCheckBox * m_checkBoxClipSilkOnViaAnnulus
wxSpinCtrl * m_spinCtrlLightAzimuth3