KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_export_vrml.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2009-2013 Lorenzo Mercantonio
5 * Copyright (C) 2013 Jean-Pierre Charras jp.charras at wanadoo.fr
6 * Copyright (C) 2004-2023 KiCad Developers, see change_log.txt for contributors.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, you may find one here:
20 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
21 * or you may search the http://www.gnu.org website for the version 2 license,
22 * or you may write to the Free Software Foundation, Inc.,
23 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
24 */
25
26#pragma once
27
28#include <dialog_export_vrml_base.h> // the wxFormBuilder header file
29
30class PCB_EDIT_FRAME;
31
33{
34public:
36
38
39 void SetSubdir( const wxString& aDir ) { m_SubdirNameCtrl->SetValue( aDir ); }
40
41 wxString GetSubdir3Dshapes() { return m_SubdirNameCtrl->GetValue(); }
42
43 wxFilePickerCtrl* FilePicker() { return m_filePicker; }
44
45 int GetRefUnitsChoice() { return m_VRML_RefUnitChoice->GetSelection(); }
46
47 int GetOriginChoice() { return m_rbCoordOrigin->GetSelection(); }
48
49 double GetXRef();
50
51 double GetYRef();
52
53 int GetUnits() { return m_unitsOpt = m_rbSelectUnits->GetSelection(); }
54
55 bool GetNoUnspecifiedOption() { return m_cbRemoveUnspecified->GetValue(); }
56
57 bool GetNoDNPOption() { return m_cbRemoveDNP->GetValue(); }
58
59 bool GetCopyFilesOption() { return m_copy3DFilesOpt = m_cbCopyFiles->GetValue(); }
60
62 {
64 }
65
66 void OnUpdateUseRelativePath( wxUpdateUIEvent& event ) override
67 {
68 // Making path relative or absolute has no meaning when VRML files are not copied.
69 event.Enable( m_cbCopyFiles->GetValue() );
70 }
71
72 bool TransferDataFromWindow() override;
73
74private:
76 int m_unitsOpt; // Remember last units option
77 bool m_noUnspecified; // Remember last No Unspecified Component option
78 bool m_noDNP; // Remember last No DNP Component option
79 bool m_copy3DFilesOpt; // Remember last copy model files option
80 bool m_useRelativePathsOpt; // Remember last use absolute paths option
81 int m_RefUnits; // Remember last units for Reference Point
82 double m_XRef; // Remember last X Reference Point
83 double m_YRef; // Remember last Y Reference Point
84 int m_originMode; // Origin selection option
85 // (0 = user, 1 = board center)
86};
Class DIALOG_EXPORT_VRML_BASE.
wxFilePickerCtrl * FilePicker()
PCB_EDIT_FRAME * m_editFrame
void OnUpdateUseRelativePath(wxUpdateUIEvent &event) override
wxString GetSubdir3Dshapes()
bool TransferDataFromWindow() override
void SetSubdir(const wxString &aDir)
The main frame for Pcbnew.