24#include <wx/display.h>
26static std::map<JOB_PCB_RENDER::BG_STYLE, wxString>
bgStyleMap = {
32static std::map<JOB_PCB_RENDER::QUALITY, wxString>
qualityMap = {
38static std::map<JOB_PCB_RENDER::SIDE, wxString>
sideMap = {
72 std::advance( it, selIndx );
93 std::advance( it, selIndx );
100 auto it =
sideMap.find( aSide );
104 int idx = std::distance(
sideMap.begin(), it );
114 std::advance( it, selIndx );
125 int idx = std::distance(
qualityMap.begin(), it );
135 std::advance( it, selIndx );
146 int idx = std::distance(
bgStyleMap.begin(), it );
209 if (width == 0 || height == 0)
211 int disp = wxDisplay::GetFromWindow(
this );
212 wxRect rect = wxDisplay( disp ).GetGeometry();
215 width = rect.GetWidth();
218 height = rect.GetHeight();
Class DIALOG_RENDER_JOB_BASE.
wxChoice * m_choiceQuality
wxSpinCtrlDouble * m_spinCtrlLightsBottom
wxSpinCtrl * m_spinCtrlHeight
wxChoice * m_choiceBgStyle
wxSpinCtrlDouble * m_spinCtrlRotX
wxRadioBox * m_radioProjection
wxSpinCtrlDouble * m_spinCtrlLightsSides
wxSpinCtrl * m_spinCtrlLightsSideElevation
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
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)
void setSelectedQuality(JOB_PCB_RENDER::QUALITY aSide)
JOB_PCB_RENDER::SIDE getSelectedSide()
JOB_PCB_RENDER::QUALITY getSelectedQuality()
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
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
static std::map< JOB_PCB_RENDER::QUALITY, wxString > qualityMap
Some functions to handle hotkeys in KiCad.