24#include <wx/display.h>
26static std::map<JOB_PCB_RENDER::BG_STYLE, wxString>
bgStyleMap = {
32static std::map<JOB_PCB_RENDER::SIDE, wxString>
sideMap = {
63 std::advance( it, selIndx );
84 std::advance( it, selIndx );
91 auto it =
sideMap.find( aSide );
95 int idx = std::distance(
sideMap.begin(), it );
105 std::advance( it, selIndx );
116 int idx = std::distance(
bgStyleMap.begin(), it );
184 if (width == 0 || height == 0)
186 int disp = wxDisplay::GetFromWindow(
this );
187 wxRect rect = wxDisplay( disp ).GetGeometry();
190 width = rect.GetWidth();
193 height = rect.GetHeight();
Class DIALOG_RENDER_JOB_BASE.
wxSpinCtrlDouble * m_spinCtrlLightsBottom
wxSpinCtrl * m_spinCtrlHeight
wxChoice * m_choiceBgStyle
wxSpinCtrlDouble * m_spinCtrlRotX
wxCheckBox * m_cbRaytracing_postProcessing
wxRadioBox * m_radioProjection
wxSpinCtrlDouble * m_spinCtrlLightsSides
wxCheckBox * m_cbRaytracing_antiAliasing
wxSpinCtrl * m_spinCtrlLightsSideElevation
wxCheckBox * m_cbRaytracing_proceduralTextures
wxSpinCtrlDouble * m_spinCtrlZoom
wxSpinCtrlDouble * m_spinCtrlPanX
wxSpinCtrlDouble * m_spinCtrlPivotY
wxSpinCtrlDouble * m_spinCtrlLightsTop
wxSpinCtrlDouble * m_spinCtrlRotY
wxSpinCtrlDouble * m_spinCtrlPanZ
wxSpinCtrlDouble * m_spinCtrlPivotX
wxSpinCtrlDouble * m_spinCtrlPanY
wxSpinCtrl * m_spinCtrlWidth
wxSpinCtrlDouble * m_spinCtrlPivotZ
wxSpinCtrlDouble * m_spinCtrlLightsCamera
wxCheckBox * m_cbRaytracing_addFloor
wxTextCtrl * m_textCtrlOutputFile
wxSpinCtrlDouble * m_spinCtrlRotZ
wxChoice * m_choiceFormat
JOB_PCB_RENDER::FORMAT getSelectedFormat()
DIALOG_RENDER_JOB(wxWindow *aParent, JOB_PCB_RENDER *aJob)
void setSelectedFormat(JOB_PCB_RENDER::FORMAT aFormat)
void setSelectedBgStyle(JOB_PCB_RENDER::BG_STYLE aBgStyle)
JOB_PCB_RENDER::SIDE getSelectedSide()
JOB_PCB_RENDER::BG_STYLE getSelectedBgStyle()
bool TransferDataFromWindow() override
void setSelectedSide(JOB_PCB_RENDER::SIDE aSide)
bool TransferDataToWindow() override
void SetupStandardButtons(std::map< int, wxString > aLabels={})
VECTOR3D m_lightBottomIntensity
VECTOR3D m_lightTopIntensity
static std::map< JOB_PCB_RENDER::FORMAT, wxString > & GetFormatNameMap()
VECTOR3D m_lightCameraIntensity
bool m_proceduralTextures
wxString GetSettingsDialogTitle() const override
VECTOR3D m_lightSideIntensity
void SetConfiguredOutputPath(const wxString &aPath)
Sets the configured output path for the job, this path is always saved to file.
wxString GetConfiguredOutputPath() const
Returns the configured output path for the job.
VECTOR3< T > SetAll(T val)
Set all elements to val.
static std::map< JOB_PCB_RENDER::BG_STYLE, wxString > bgStyleMap
static std::map< JOB_PCB_RENDER::SIDE, wxString > sideMap
Some functions to handle hotkeys in KiCad.