43 m_xOrigin( aEditFrame, m_xLabel, m_VRML_Xref, m_xUnits ),
44 m_yOrigin( aEditFrame, m_yLabel, m_VRML_Yref, m_yUnits )
61 if( wxMessageBox(
_(
"Are you sure you want to overwrite the existing file?" ),
_(
"Warning" ),
62 wxYES_NO | wxCENTER | wxICON_QUESTION,
this )
83 brdFile.SetExt( wxT(
"wrl" ) );
84 path = brdFile.GetFullPath();
111 wxFileName modelPath =
path;
119 if( !modelPath.Mkdir() )
122 modelPath.GetPath() ) );
constexpr EDA_IU_SCALE pcbIUScale
int ExportVRML(const TOOL_EVENT &aEvent)
Information pertinent to a Pcbnew printed circuit board.
BOX2I ComputeBoundingBox(bool aBoardEdgesOnly=false) const
Calculate the bounding box containing all board items (or board edge segments).
const wxString & GetFileName() const
constexpr const Vec GetCenter() const
Class DIALOG_EXPORT_VRML_BASE.
wxFilePickerCtrl * m_filePicker
bool GetUseRelativePathsOption()
wxFilePickerCtrl * FilePicker()
int GetSetUserDefinedOrigin()
DIALOG_EXPORT_VRML(PCB_EDIT_FRAME *aEditFrame)
wxString GetSubdir3Dshapes()
bool GetCopyFilesOption()
bool TransferDataFromWindow() override
bool GetNoUnspecifiedOption()
void SetupStandardButtons(std::map< int, wxString > aLabels={})
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
The main frame for Pcbnew.
void SetLastPath(LAST_PATH_TYPE aType, const wxString &aLastPath)
Set the path of the last file successfully read.
wxString GetLastPath(LAST_PATH_TYPE aType)
Get the last path for a particular type.
bool ExportVRML_File(const wxString &aFullFileName, double aMMtoWRMLunit, bool aIncludeUnspecified, bool aIncludeDNP, bool aExport3DFiles, bool aUseRelativePaths, const wxString &a3D_Subdir, double aXRef, double aYRef)
Create the file(s) exporting current BOARD to a VRML file.
void DisplayErrorMessage(wxWindow *aParent, const wxString &aText, const wxString &aExtraInfo)
Display an error message with aMessage.
This file is part of the common library.
std::vector< FAB_LAYER_COLOR > dummy
constexpr double IUTomm(int iu) const