|
KiCad PCB EDA Suite
|
#include "plugins/3d/3d_plugin.h"#include "plugins/3dapi/ifsg_api.h"#include "loadmodel.h"#include <string>#include <vector>Go to the source code of this file.
Macros | |
| #define | PLUGIN_VRML_MAJOR 1 |
| #define | PLUGIN_VRML_MINOR 3 |
| #define | PLUGIN_VRML_PATCH 2 |
| #define | PLUGIN_VRML_REVNO 2 |
Functions | |
| const char * | GetKicadPluginName () |
| Return the name of the plugin instance, for example IDFv3. | |
| void | GetPluginVersion (unsigned char *aMajor, unsigned char *aMinor, unsigned char *aPatch, unsigned char *aRevision) |
| Retrieve the version of the instantiated plugin for informational purposes. | |
| int | GetNExtensions () |
| char const * | GetModelExtension (int aIndex) |
| int | GetNFilters () |
| char const * | GetFileFilter (int aIndex) |
| bool | CanRender () |
| SCENEGRAPH * | Load (char const *aFileName) |
| Read a model file and creates a generic display structure. | |
Variables | |
| static const std::vector< std::string > | extensions = { "wrl", "WRL", "wrz", "WRZ", "x3d", "X3D" } |
| static const std::vector< std::string > | filters |
| #define PLUGIN_VRML_MAJOR 1 |
Definition at line 28 of file plugin.cpp.
Referenced by GetPluginVersion().
| #define PLUGIN_VRML_MINOR 3 |
Definition at line 29 of file plugin.cpp.
Referenced by GetPluginVersion().
| #define PLUGIN_VRML_PATCH 2 |
Definition at line 30 of file plugin.cpp.
Referenced by GetPluginVersion().
| #define PLUGIN_VRML_REVNO 2 |
Definition at line 31 of file plugin.cpp.
Referenced by GetPluginVersion().
| bool CanRender | ( | void | ) |
Definition at line 95 of file plugin.cpp.
| char const * GetFileFilter | ( | int | aIndex | ) |
Definition at line 89 of file plugin.cpp.
References file_data, filters, GetNFilters(), and NFILS.
| const char * GetKicadPluginName | ( | void | ) |
Return the name of the plugin instance, for example IDFv3.
This string may be used to check for name conflicts or to display informational messages about loaded plugins. This method must be implemented in specific instantiations of a plugin class.
Definition at line 34 of file plugin.cpp.
| char const * GetModelExtension | ( | int | aIndex | ) |
| aIndex | is the extension to return; valid values are 0 to GetNExtensions() - 1. |
Definition at line 77 of file plugin.cpp.
References extensions, file_data, GetNExtensions(), and NEXTS.
| int GetNExtensions | ( | void | ) |
Definition at line 71 of file plugin.cpp.
References extensions, and NEXTS.
Referenced by GetModelExtension().
| int GetNFilters | ( | void | ) |
Definition at line 83 of file plugin.cpp.
References filters, and NFILS.
Referenced by GetFileFilter().
| void GetPluginVersion | ( | unsigned char * | Major, |
| unsigned char * | Minor, | ||
| unsigned char * | Patch, | ||
| unsigned char * | Revision ) |
Retrieve the version of the instantiated plugin for informational purposes.
Do not confuse this with GetClassVersion which is used to determine API compatibility.
| Major | will hold the Plugin Major version. |
| Minor | will hold the Plugin Minor version. |
| Patch | will hold the Plugin Patch level. |
| Revision | will hold the Plugin Revision. |
Definition at line 40 of file plugin.cpp.
References PLUGIN_3D_IDF_MAJOR, PLUGIN_3D_IDF_MINOR, PLUGIN_3D_IDF_PATCH, PLUGIN_3D_IDF_REVNO, PLUGIN_VRML_MAJOR, PLUGIN_VRML_MINOR, PLUGIN_VRML_PATCH, and PLUGIN_VRML_REVNO.
| SCENEGRAPH * Load | ( | char const * | aFileName | ) |
Read a model file and creates a generic display structure.
| aFileName | is the full path of the model file. |
Definition at line 101 of file plugin.cpp.
References loadIDFBoard(), loadIDFOutline(), LoadVRMLModel(), and S3D::WriteVRML().
Referenced by BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), and BOOST_FIXTURE_TEST_CASE().
|
static |
Definition at line 63 of file plugin.cpp.
Referenced by PROJECT_ARCHIVER::Archive(), LOCAL_HISTORY::ExtractAllFilesAtCommit(), PADS_COMMON::FindRelatedPadsFiles(), GetModelExtension(), GetNExtensions(), DIALOG_IMPORT_GFX_SCH::onBrowseFiles(), DIALOG_IMPORT_GRAPHICS::onBrowseFiles(), and PANEL_FP_PROPERTIES_3D_MODEL::pick3DModel().
|
static |
Definition at line 64 of file plugin.cpp.
Referenced by ApplyFootprintLinks(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), LIB_SYMBOL::Deserialize(), CVPCB_MAINFRAME::DisplayStatus(), FOOTPRINT_CHOOSER_FRAME::filterFootprint(), GetFileFilter(), GetNFilters(), LISTBOX_TRICKS::listBoxCopy(), LEGACY_NETLIST_READER::loadFootprintFilters(), NETLIST_EXPORTER_XML::makeSymbols(), SCH_IO_KICAD_SEXPR_PARSER::parseProperty(), PANEL_FP_PROPERTIES_3D_MODEL::pick3DModel(), QueryMatchingFootprints(), and PANEL_FOOTPRINT_FILTERS::updateMatchingFootprints().