KiCad PCB EDA Suite
PANEL_3D_RAYTRACING_OPTIONS Class Reference

#include <panel_3D_raytracing_options.h>

Inheritance diagram for PANEL_3D_RAYTRACING_OPTIONS:
PANEL_3D_RAYTRACING_OPTIONS_BASE RESETTABLE_PANEL

Public Member Functions

 PANEL_3D_RAYTRACING_OPTIONS (EDA_3D_VIEWER_FRAME *aFrame, wxWindow *aParent)
 
void ResetPanel () override
 Reset the contents of this panel. More...
 
bool TransferDataFromWindow () override
 Automatically called when clicking on the OK button. More...
 
bool TransferDataToWindow () override
 Automatically called after creating the dialog. More...
 
void TransferColorDataToWindow ()
 
virtual wxString GetResetTooltip ()
 Get the tooltip the reset button should display when showing this panel. More...
 

Protected Attributes

wxCheckBox * m_checkBoxRaytracing_proceduralTextures
 
wxCheckBox * m_checkBoxRaytracing_addFloor
 
wxCheckBox * m_checkBoxRaytracing_antiAliasing
 
wxCheckBox * m_checkBoxRaytracing_postProcessing
 
wxStaticText * m_staticText19
 
wxStaticText * m_staticText201
 
wxStaticText * m_staticText211
 
wxCheckBox * m_checkBoxRaytracing_renderShadows
 
wxSpinCtrl * m_spinCtrl_NrSamples_Shadows
 
wxSpinCtrlDouble * m_spinCtrlDouble_SpreadFactor_Shadows
 
wxCheckBox * m_checkBoxRaytracing_showReflections
 
wxSpinCtrl * m_spinCtrl_NrSamples_Reflections
 
wxSpinCtrlDouble * m_spinCtrlDouble_SpreadFactor_Reflections
 
wxSpinCtrl * m_spinCtrlRecursiveLevel_Reflections
 
wxCheckBox * m_checkBoxRaytracing_showRefractions
 
wxSpinCtrl * m_spinCtrl_NrSamples_Refractions
 
wxSpinCtrlDouble * m_spinCtrlDouble_SpreadFactor_Refractions
 
wxSpinCtrl * m_spinCtrlRecursiveLevel_Refractions
 
wxStaticText * m_staticText17
 
COLOR_SWATCHm_colourPickerCameraLight
 
wxStaticText * m_staticText5
 
COLOR_SWATCHm_colourPickerTopLight
 
wxStaticText * m_staticText6
 
COLOR_SWATCHm_colourPickerBottomLight
 
wxStaticText * m_staticText20
 
wxStaticText * m_staticText18
 
wxStaticText * m_staticText27
 
wxStaticText * m_staticText28
 
wxStaticText * m_staticText21
 
COLOR_SWATCHm_colourPickerLight1
 
wxSpinCtrl * m_spinCtrlLightElevation1
 
wxSpinCtrl * m_spinCtrlLightAzimuth1
 
wxStaticText * m_staticText22
 
COLOR_SWATCHm_colourPickerLight5
 
wxSpinCtrl * m_spinCtrlLightElevation5
 
wxSpinCtrl * m_spinCtrlLightAzimuth5
 
wxStaticText * m_staticText23
 
COLOR_SWATCHm_colourPickerLight2
 
wxSpinCtrl * m_spinCtrlLightElevation2
 
wxSpinCtrl * m_spinCtrlLightAzimuth2
 
wxStaticText * m_staticText24
 
COLOR_SWATCHm_colourPickerLight6
 
wxSpinCtrl * m_spinCtrlLightElevation6
 
wxSpinCtrl * m_spinCtrlLightAzimuth6
 
wxStaticText * m_staticText25
 
COLOR_SWATCHm_colourPickerLight3
 
wxSpinCtrl * m_spinCtrlLightElevation3
 
wxSpinCtrl * m_spinCtrlLightAzimuth3
 
wxStaticText * m_staticText26
 
COLOR_SWATCHm_colourPickerLight7
 
wxSpinCtrl * m_spinCtrlLightElevation7
 
wxSpinCtrl * m_spinCtrlLightAzimuth7
 
wxStaticText * m_staticText171
 
COLOR_SWATCHm_colourPickerLight4
 
wxSpinCtrl * m_spinCtrlLightElevation4
 
wxSpinCtrl * m_spinCtrlLightAzimuth4
 
wxStaticText * m_staticText181
 
COLOR_SWATCHm_colourPickerLight8
 
wxSpinCtrl * m_spinCtrlLightElevation8
 
wxSpinCtrl * m_spinCtrlLightAzimuth8
 

Private Attributes

BOARD_ADAPTERm_settings
 
EDA_3D_CANVASm_canvas
 

Detailed Description

Definition at line 31 of file panel_3D_raytracing_options.h.

Constructor & Destructor Documentation

◆ PANEL_3D_RAYTRACING_OPTIONS()

PANEL_3D_RAYTRACING_OPTIONS::PANEL_3D_RAYTRACING_OPTIONS ( EDA_3D_VIEWER_FRAME aFrame,
wxWindow *  aParent 
)
explicit

Definition at line 33 of file panel_3D_raytracing_options.cpp.

34  :
36  m_settings( aFrame->GetAdapter() ),
37  m_canvas( aFrame->GetCanvas() )
38 {
39 }
EDA_3D_CANVAS * GetCanvas()
BOARD_ADAPTER & GetAdapter() override
PANEL_3D_RAYTRACING_OPTIONS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)

Member Function Documentation

◆ GetResetTooltip()

virtual wxString RESETTABLE_PANEL::GetResetTooltip ( )
inlinevirtualinherited

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

Returns
the tooltip

Reimplemented in PANEL_HOTKEYS_EDITOR, and PANEL_COLOR_SETTINGS.

Definition at line 52 of file resettable_panel.h.

53  {
54  return _( "Reset all settings on this page to their default" );
55  }
#define _(s)

References _.

◆ ResetPanel()

void PANEL_3D_RAYTRACING_OPTIONS::ResetPanel ( )
overridevirtual

Reset the contents of this panel.

Implements RESETTABLE_PANEL.

Definition at line 42 of file panel_3D_raytracing_options.cpp.

43 {
47 
48  const std::vector<int> default_elevation =
49  {
50  67, 67, 67, 67, -67, -67, -67, -67,
51  };
52 
53  const std::vector<int> default_azimuth =
54  {
55  45, 135, 225, 315, 45, 135, 225, 315,
56  };
57 
58  for( size_t i = 0; i < m_settings.m_RtLightSphericalCoords.size(); ++i )
59  {
60  m_settings.m_RtLightColor[i] = SFVEC3F( 0.168f );
61 
63  ( (float) default_elevation[i] + 90.0f ) / 180.0f;
64 
65  m_settings.m_RtLightSphericalCoords[i].y = (float) default_azimuth[i] / 180.0f;
66  }
67 
69 }
std::vector< SFVEC2F > m_RtLightSphericalCoords
SFVEC3F m_RtCameraLightColor
SFVEC3F m_RtLightColorTop
std::vector< SFVEC3F > m_RtLightColor
glm::vec3 SFVEC3F
Definition: xv3d_types.h:44
SFVEC3F m_RtLightColorBottom

References BOARD_ADAPTER::m_RtCameraLightColor, BOARD_ADAPTER::m_RtLightColor, BOARD_ADAPTER::m_RtLightColorBottom, BOARD_ADAPTER::m_RtLightColorTop, BOARD_ADAPTER::m_RtLightSphericalCoords, m_settings, and TransferColorDataToWindow().

◆ TransferColorDataToWindow()

void PANEL_3D_RAYTRACING_OPTIONS::TransferColorDataToWindow ( )

Definition at line 72 of file panel_3D_raytracing_options.cpp.

73 {
74  auto transfer_color = [] ( const SFVEC3F& aSource, COLOR_SWATCH *aTarget )
75  {
76  aTarget->SetSupportsOpacity( false );
77  aTarget->SetDefaultColor( KIGFX::COLOR4D( 0.5, 0.5, 0.5, 1.0 ) );
78  aTarget->SetSwatchColor( COLOR4D( aSource.r, aSource.g, aSource.b, 1.0 ), false );
79  };
80 
84 
85  transfer_color( m_settings.m_RtLightColor[0], m_colourPickerLight1 );
86  transfer_color( m_settings.m_RtLightColor[1], m_colourPickerLight2 );
87  transfer_color( m_settings.m_RtLightColor[2], m_colourPickerLight3 );
88  transfer_color( m_settings.m_RtLightColor[3], m_colourPickerLight4 );
89 
90  transfer_color( m_settings.m_RtLightColor[4], m_colourPickerLight5 );
91  transfer_color( m_settings.m_RtLightColor[5], m_colourPickerLight6 );
92  transfer_color( m_settings.m_RtLightColor[6], m_colourPickerLight7 );
93  transfer_color( m_settings.m_RtLightColor[7], m_colourPickerLight8 );
94 
95  m_spinCtrlLightElevation1->SetValue(
96  (int)( m_settings.m_RtLightSphericalCoords[0].x * 180.0f - 90.0f ) );
97  m_spinCtrlLightElevation2->SetValue(
98  (int)( m_settings.m_RtLightSphericalCoords[1].x * 180.0f - 90.0f ) );
99  m_spinCtrlLightElevation3->SetValue(
100  (int)( m_settings.m_RtLightSphericalCoords[2].x * 180.0f - 90.0f ) );
101  m_spinCtrlLightElevation4->SetValue(
102  (int)( m_settings.m_RtLightSphericalCoords[3].x * 180.0f - 90.0f ) );
103  m_spinCtrlLightElevation5->SetValue(
104  (int)( m_settings.m_RtLightSphericalCoords[4].x * 180.0f - 90.0f ) );
105  m_spinCtrlLightElevation6->SetValue(
106  (int)( m_settings.m_RtLightSphericalCoords[5].x * 180.0f - 90.0f ) );
107  m_spinCtrlLightElevation7->SetValue(
108  (int)( m_settings.m_RtLightSphericalCoords[6].x * 180.0f - 90.0f ) );
109  m_spinCtrlLightElevation8->SetValue(
110  (int)( m_settings.m_RtLightSphericalCoords[7].x * 180.0f - 90.0f ) );
111 
112  m_spinCtrlLightAzimuth1->SetValue(
113  (int)( m_settings.m_RtLightSphericalCoords[0].y * 180.0f ) );
114  m_spinCtrlLightAzimuth2->SetValue(
115  (int)( m_settings.m_RtLightSphericalCoords[1].y * 180.0f ) );
116  m_spinCtrlLightAzimuth3->SetValue(
117  (int)( m_settings.m_RtLightSphericalCoords[2].y * 180.0f ) );
118  m_spinCtrlLightAzimuth4->SetValue(
119  (int)( m_settings.m_RtLightSphericalCoords[3].y * 180.0f ) );
120  m_spinCtrlLightAzimuth5->SetValue(
121  (int)( m_settings.m_RtLightSphericalCoords[4].y * 180.0f ) );
122  m_spinCtrlLightAzimuth6->SetValue(
123  (int)( m_settings.m_RtLightSphericalCoords[5].y * 180.0f ) );
124  m_spinCtrlLightAzimuth7->SetValue(
125  (int)( m_settings.m_RtLightSphericalCoords[6].y * 180.0f ) );
126  m_spinCtrlLightAzimuth8->SetValue(
127  (int)( m_settings.m_RtLightSphericalCoords[7].y * 180.0f ) );
128 }
std::vector< SFVEC2F > m_RtLightSphericalCoords
SFVEC3F m_RtCameraLightColor
SFVEC3F m_RtLightColorTop
std::vector< SFVEC3F > m_RtLightColor
glm::vec3 SFVEC3F
Definition: xv3d_types.h:44
A simple color swatch of the kind used to set layer colors.
Definition: color_swatch.h:56
SFVEC3F m_RtLightColorBottom
A color representation with 4 components: red, green, blue, alpha.
Definition: color4d.h:103

References PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerBottomLight, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerCameraLight, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerLight1, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerLight2, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerLight3, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerLight4, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerLight5, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerLight6, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerLight7, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerLight8, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerTopLight, BOARD_ADAPTER::m_RtCameraLightColor, BOARD_ADAPTER::m_RtLightColor, BOARD_ADAPTER::m_RtLightColorBottom, BOARD_ADAPTER::m_RtLightColorTop, BOARD_ADAPTER::m_RtLightSphericalCoords, m_settings, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightAzimuth1, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightAzimuth2, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightAzimuth3, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightAzimuth4, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightAzimuth5, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightAzimuth6, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightAzimuth7, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightAzimuth8, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightElevation1, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightElevation2, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightElevation3, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightElevation4, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightElevation5, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightElevation6, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightElevation7, and PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightElevation8.

Referenced by ResetPanel(), and TransferDataToWindow().

◆ TransferDataFromWindow()

bool PANEL_3D_RAYTRACING_OPTIONS::TransferDataFromWindow ( )
override

Automatically called when clicking on the OK button.

Definition at line 166 of file panel_3D_raytracing_options.cpp.

167 {
171  m_checkBoxRaytracing_addFloor->GetValue() );
179  m_checkBoxRaytracing_antiAliasing->GetValue() );
182 
186 
188  static_cast<float>( m_spinCtrlDouble_SpreadFactor_Shadows->GetValue() ) / 100.0f;
190  static_cast<float>( m_spinCtrlDouble_SpreadFactor_Reflections->GetValue() ) / 100.0f;
192  static_cast<float>( m_spinCtrlDouble_SpreadFactor_Refractions->GetValue() ) / 100.0f;
193 
196 
197  auto transfer_color = [] ( SFVEC3F& aTarget, COLOR_SWATCH *aSource )
198  {
199  const COLOR4D color = aSource->GetSwatchColor();
200 
201  aTarget = SFVEC3F( color.r, color.g, color.b );
202  };
203 
207 
208  transfer_color( m_settings.m_RtLightColor[0], m_colourPickerLight1 );
209  transfer_color( m_settings.m_RtLightColor[1], m_colourPickerLight2 );
210  transfer_color( m_settings.m_RtLightColor[2], m_colourPickerLight3 );
211  transfer_color( m_settings.m_RtLightColor[3], m_colourPickerLight4 );
212  transfer_color( m_settings.m_RtLightColor[4], m_colourPickerLight5 );
213  transfer_color( m_settings.m_RtLightColor[5], m_colourPickerLight6 );
214  transfer_color( m_settings.m_RtLightColor[6], m_colourPickerLight7 );
215  transfer_color( m_settings.m_RtLightColor[7], m_colourPickerLight8 );
216 
218  ( m_spinCtrlLightElevation1->GetValue() + 90.0f ) / 180.0f;
220  ( m_spinCtrlLightElevation2->GetValue() + 90.0f ) / 180.0f;
222  ( m_spinCtrlLightElevation3->GetValue() + 90.0f ) / 180.0f;
224  ( m_spinCtrlLightElevation4->GetValue() + 90.0f ) / 180.0f;
226  ( m_spinCtrlLightElevation5->GetValue() + 90.0f ) / 180.0f;
228  ( m_spinCtrlLightElevation6->GetValue() + 90.0f ) / 180.0f;
230  ( m_spinCtrlLightElevation7->GetValue() + 90.0f ) / 180.0f;
232  ( m_spinCtrlLightElevation8->GetValue() + 90.0f ) / 180.0f;
233 
234  m_settings.m_RtLightSphericalCoords[0].y = m_spinCtrlLightAzimuth1->GetValue() / 180.0f;
235  m_settings.m_RtLightSphericalCoords[1].y = m_spinCtrlLightAzimuth2->GetValue() / 180.0f;
236  m_settings.m_RtLightSphericalCoords[2].y = m_spinCtrlLightAzimuth3->GetValue() / 180.0f;
237  m_settings.m_RtLightSphericalCoords[3].y = m_spinCtrlLightAzimuth4->GetValue() / 180.0f;
238  m_settings.m_RtLightSphericalCoords[4].y = m_spinCtrlLightAzimuth5->GetValue() / 180.0f;
239  m_settings.m_RtLightSphericalCoords[5].y = m_spinCtrlLightAzimuth6->GetValue() / 180.0f;
240  m_settings.m_RtLightSphericalCoords[6].y = m_spinCtrlLightAzimuth7->GetValue() / 180.0f;
241  m_settings.m_RtLightSphericalCoords[7].y = m_spinCtrlLightAzimuth8->GetValue() / 180.0f;
242 
243  for( size_t i = 0; i < m_settings.m_RtLightSphericalCoords.size(); ++i )
244  {
246  glm::clamp( m_settings.m_RtLightSphericalCoords[i].x, 0.0f, 1.0f );
247 
249  glm::clamp( m_settings.m_RtLightSphericalCoords[i].y, 0.0f, 2.0f );
250  }
251 
252  return true;
253 }
int m_RtShadowSampleCount
void SetFlag(DISPLAY3D_FLG aFlag, bool aState)
Set the status of a flag.
int color
Definition: DXF_plotter.cpp:57
std::vector< SFVEC2F > m_RtLightSphericalCoords
float m_RtSpreadRefractions
SFVEC3F m_RtCameraLightColor
int m_RtRecursiveReflectionCount
float m_RtSpreadReflections
SFVEC3F m_RtLightColorTop
int m_RtRecursiveRefractionCount
std::vector< SFVEC3F > m_RtLightColor
int m_RtRefractionSampleCount
glm::vec3 SFVEC3F
Definition: xv3d_types.h:44
A simple color swatch of the kind used to set layer colors.
Definition: color_swatch.h:56
SFVEC3F m_RtLightColorBottom
float m_RtSpreadShadows
int m_RtReflectionSampleCount
A color representation with 4 components: red, green, blue, alpha.
Definition: color4d.h:103

References color, FL_RENDER_RAYTRACING_ANTI_ALIASING, FL_RENDER_RAYTRACING_BACKFLOOR, FL_RENDER_RAYTRACING_POST_PROCESSING, FL_RENDER_RAYTRACING_PROCEDURAL_TEXTURES, FL_RENDER_RAYTRACING_REFLECTIONS, FL_RENDER_RAYTRACING_REFRACTIONS, FL_RENDER_RAYTRACING_SHADOWS, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_checkBoxRaytracing_addFloor, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_checkBoxRaytracing_antiAliasing, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_checkBoxRaytracing_postProcessing, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_checkBoxRaytracing_proceduralTextures, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_checkBoxRaytracing_renderShadows, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_checkBoxRaytracing_showReflections, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_checkBoxRaytracing_showRefractions, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerBottomLight, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerCameraLight, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerLight1, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerLight2, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerLight3, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerLight4, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerLight5, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerLight6, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerLight7, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerLight8, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerTopLight, BOARD_ADAPTER::m_RtCameraLightColor, BOARD_ADAPTER::m_RtLightColor, BOARD_ADAPTER::m_RtLightColorBottom, BOARD_ADAPTER::m_RtLightColorTop, BOARD_ADAPTER::m_RtLightSphericalCoords, BOARD_ADAPTER::m_RtRecursiveReflectionCount, BOARD_ADAPTER::m_RtRecursiveRefractionCount, BOARD_ADAPTER::m_RtReflectionSampleCount, BOARD_ADAPTER::m_RtRefractionSampleCount, BOARD_ADAPTER::m_RtShadowSampleCount, BOARD_ADAPTER::m_RtSpreadReflections, BOARD_ADAPTER::m_RtSpreadRefractions, BOARD_ADAPTER::m_RtSpreadShadows, m_settings, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrl_NrSamples_Reflections, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrl_NrSamples_Refractions, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrl_NrSamples_Shadows, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlDouble_SpreadFactor_Reflections, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlDouble_SpreadFactor_Refractions, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlDouble_SpreadFactor_Shadows, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightAzimuth1, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightAzimuth2, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightAzimuth3, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightAzimuth4, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightAzimuth5, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightAzimuth6, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightAzimuth7, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightAzimuth8, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightElevation1, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightElevation2, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightElevation3, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightElevation4, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightElevation5, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightElevation6, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightElevation7, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightElevation8, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlRecursiveLevel_Reflections, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlRecursiveLevel_Refractions, and BOARD_ADAPTER::SetFlag().

◆ TransferDataToWindow()

bool PANEL_3D_RAYTRACING_OPTIONS::TransferDataToWindow ( )
override

Automatically called after creating the dialog.

Definition at line 131 of file panel_3D_raytracing_options.cpp.

132 {
146 
150 
156 
159 
161 
162  return true;
163 }
bool GetFlag(DISPLAY3D_FLG aFlag) const
Get a configuration status of a flag.
int m_RtShadowSampleCount
float m_RtSpreadRefractions
int m_RtRecursiveReflectionCount
float m_RtSpreadReflections
int m_RtRecursiveRefractionCount
int m_RtRefractionSampleCount
float m_RtSpreadShadows
int m_RtReflectionSampleCount

References FL_RENDER_RAYTRACING_ANTI_ALIASING, FL_RENDER_RAYTRACING_BACKFLOOR, FL_RENDER_RAYTRACING_POST_PROCESSING, FL_RENDER_RAYTRACING_PROCEDURAL_TEXTURES, FL_RENDER_RAYTRACING_REFLECTIONS, FL_RENDER_RAYTRACING_REFRACTIONS, FL_RENDER_RAYTRACING_SHADOWS, BOARD_ADAPTER::GetFlag(), PANEL_3D_RAYTRACING_OPTIONS_BASE::m_checkBoxRaytracing_addFloor, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_checkBoxRaytracing_antiAliasing, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_checkBoxRaytracing_postProcessing, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_checkBoxRaytracing_proceduralTextures, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_checkBoxRaytracing_renderShadows, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_checkBoxRaytracing_showReflections, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_checkBoxRaytracing_showRefractions, BOARD_ADAPTER::m_RtRecursiveReflectionCount, BOARD_ADAPTER::m_RtRecursiveRefractionCount, BOARD_ADAPTER::m_RtReflectionSampleCount, BOARD_ADAPTER::m_RtRefractionSampleCount, BOARD_ADAPTER::m_RtShadowSampleCount, BOARD_ADAPTER::m_RtSpreadReflections, BOARD_ADAPTER::m_RtSpreadRefractions, BOARD_ADAPTER::m_RtSpreadShadows, m_settings, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrl_NrSamples_Reflections, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrl_NrSamples_Refractions, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrl_NrSamples_Shadows, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlDouble_SpreadFactor_Reflections, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlDouble_SpreadFactor_Refractions, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlDouble_SpreadFactor_Shadows, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlRecursiveLevel_Reflections, PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlRecursiveLevel_Refractions, and TransferColorDataToWindow().

Member Data Documentation

◆ m_canvas

EDA_3D_CANVAS* PANEL_3D_RAYTRACING_OPTIONS::m_canvas
private

Definition at line 48 of file panel_3D_raytracing_options.h.

◆ m_checkBoxRaytracing_addFloor

wxCheckBox* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_checkBoxRaytracing_addFloor
protectedinherited

◆ m_checkBoxRaytracing_antiAliasing

wxCheckBox* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_checkBoxRaytracing_antiAliasing
protectedinherited

◆ m_checkBoxRaytracing_postProcessing

wxCheckBox* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_checkBoxRaytracing_postProcessing
protectedinherited

◆ m_checkBoxRaytracing_proceduralTextures

wxCheckBox* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_checkBoxRaytracing_proceduralTextures
protectedinherited

◆ m_checkBoxRaytracing_renderShadows

wxCheckBox* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_checkBoxRaytracing_renderShadows
protectedinherited

◆ m_checkBoxRaytracing_showReflections

wxCheckBox* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_checkBoxRaytracing_showReflections
protectedinherited

◆ m_checkBoxRaytracing_showRefractions

wxCheckBox* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_checkBoxRaytracing_showRefractions
protectedinherited

◆ m_colourPickerBottomLight

COLOR_SWATCH* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerBottomLight
protectedinherited

◆ m_colourPickerCameraLight

COLOR_SWATCH* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerCameraLight
protectedinherited

◆ m_colourPickerLight1

COLOR_SWATCH* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerLight1
protectedinherited

◆ m_colourPickerLight2

COLOR_SWATCH* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerLight2
protectedinherited

◆ m_colourPickerLight3

COLOR_SWATCH* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerLight3
protectedinherited

◆ m_colourPickerLight4

COLOR_SWATCH* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerLight4
protectedinherited

◆ m_colourPickerLight5

COLOR_SWATCH* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerLight5
protectedinherited

◆ m_colourPickerLight6

COLOR_SWATCH* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerLight6
protectedinherited

◆ m_colourPickerLight7

COLOR_SWATCH* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerLight7
protectedinherited

◆ m_colourPickerLight8

COLOR_SWATCH* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerLight8
protectedinherited

◆ m_colourPickerTopLight

COLOR_SWATCH* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_colourPickerTopLight
protectedinherited

◆ m_settings

BOARD_ADAPTER& PANEL_3D_RAYTRACING_OPTIONS::m_settings
private

◆ m_spinCtrl_NrSamples_Reflections

wxSpinCtrl* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrl_NrSamples_Reflections
protectedinherited

◆ m_spinCtrl_NrSamples_Refractions

wxSpinCtrl* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrl_NrSamples_Refractions
protectedinherited

◆ m_spinCtrl_NrSamples_Shadows

wxSpinCtrl* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrl_NrSamples_Shadows
protectedinherited

◆ m_spinCtrlDouble_SpreadFactor_Reflections

wxSpinCtrlDouble* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlDouble_SpreadFactor_Reflections
protectedinherited

◆ m_spinCtrlDouble_SpreadFactor_Refractions

wxSpinCtrlDouble* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlDouble_SpreadFactor_Refractions
protectedinherited

◆ m_spinCtrlDouble_SpreadFactor_Shadows

wxSpinCtrlDouble* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlDouble_SpreadFactor_Shadows
protectedinherited

◆ m_spinCtrlLightAzimuth1

wxSpinCtrl* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightAzimuth1
protectedinherited

◆ m_spinCtrlLightAzimuth2

wxSpinCtrl* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightAzimuth2
protectedinherited

◆ m_spinCtrlLightAzimuth3

wxSpinCtrl* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightAzimuth3
protectedinherited

◆ m_spinCtrlLightAzimuth4

wxSpinCtrl* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightAzimuth4
protectedinherited

◆ m_spinCtrlLightAzimuth5

wxSpinCtrl* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightAzimuth5
protectedinherited

◆ m_spinCtrlLightAzimuth6

wxSpinCtrl* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightAzimuth6
protectedinherited

◆ m_spinCtrlLightAzimuth7

wxSpinCtrl* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightAzimuth7
protectedinherited

◆ m_spinCtrlLightAzimuth8

wxSpinCtrl* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightAzimuth8
protectedinherited

◆ m_spinCtrlLightElevation1

wxSpinCtrl* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightElevation1
protectedinherited

◆ m_spinCtrlLightElevation2

wxSpinCtrl* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightElevation2
protectedinherited

◆ m_spinCtrlLightElevation3

wxSpinCtrl* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightElevation3
protectedinherited

◆ m_spinCtrlLightElevation4

wxSpinCtrl* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightElevation4
protectedinherited

◆ m_spinCtrlLightElevation5

wxSpinCtrl* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightElevation5
protectedinherited

◆ m_spinCtrlLightElevation6

wxSpinCtrl* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightElevation6
protectedinherited

◆ m_spinCtrlLightElevation7

wxSpinCtrl* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightElevation7
protectedinherited

◆ m_spinCtrlLightElevation8

wxSpinCtrl* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlLightElevation8
protectedinherited

◆ m_spinCtrlRecursiveLevel_Reflections

wxSpinCtrl* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlRecursiveLevel_Reflections
protectedinherited

◆ m_spinCtrlRecursiveLevel_Refractions

wxSpinCtrl* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_spinCtrlRecursiveLevel_Refractions
protectedinherited

◆ m_staticText17

wxStaticText* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_staticText17
protectedinherited

◆ m_staticText171

wxStaticText* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_staticText171
protectedinherited

◆ m_staticText18

wxStaticText* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_staticText18
protectedinherited

◆ m_staticText181

wxStaticText* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_staticText181
protectedinherited

◆ m_staticText19

wxStaticText* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_staticText19
protectedinherited

◆ m_staticText20

wxStaticText* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_staticText20
protectedinherited

◆ m_staticText201

wxStaticText* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_staticText201
protectedinherited

◆ m_staticText21

wxStaticText* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_staticText21
protectedinherited

◆ m_staticText211

wxStaticText* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_staticText211
protectedinherited

◆ m_staticText22

wxStaticText* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_staticText22
protectedinherited

◆ m_staticText23

wxStaticText* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_staticText23
protectedinherited

◆ m_staticText24

wxStaticText* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_staticText24
protectedinherited

◆ m_staticText25

wxStaticText* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_staticText25
protectedinherited

◆ m_staticText26

wxStaticText* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_staticText26
protectedinherited

◆ m_staticText27

wxStaticText* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_staticText27
protectedinherited

◆ m_staticText28

wxStaticText* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_staticText28
protectedinherited

◆ m_staticText5

wxStaticText* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_staticText5
protectedinherited

◆ m_staticText6

wxStaticText* PANEL_3D_RAYTRACING_OPTIONS_BASE::m_staticText6
protectedinherited

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