KiCad PCB EDA Suite
|
#include <pluginldr3D.h>
Public Member Functions | |
KICAD_PLUGIN_LDR_3D () | |
virtual | ~KICAD_PLUGIN_LDR_3D () |
bool | Open (const wxString &aFullFileName) override |
Open a plugin of the given class, performs version compatibility checks, and links all required functions. | |
void | Close (void) override |
Clean up and closes/unloads the plugin. | |
void | GetLoaderVersion (unsigned char *Major, unsigned char *Minor, unsigned char *Revision, unsigned char *Patch) const override |
Return the version information of the Plugin Loader for plugin compatibility checking. | |
int | GetNExtensions (void) |
char const * | GetModelExtension (int aIndex) |
int | GetNFilters (void) |
char const * | GetFileFilter (int aIndex) |
bool | CanRender (void) |
SCENEGRAPH * | Load (char const *aFileName) |
std::string | GetLastError (void) const |
Return the value of the internal error string. | |
char const * | GetKicadPluginClass (void) |
bool | GetClassVersion (unsigned char *Major, unsigned char *Minor, unsigned char *Patch, unsigned char *Revision) |
bool | CheckClassVersion (unsigned char Major, unsigned char Minor, unsigned char Patch, unsigned char Revision) |
const char * | GetKicadPluginName (void) |
bool | GetVersion (unsigned char *Major, unsigned char *Minor, unsigned char *Patch, unsigned char *Revision) |
void | GetPluginInfo (std::string &aPluginInfo) |
Protected Member Functions | |
bool | open (const wxString &aFullFileName, const char *aPluginClass) |
Open a plugin of the specified class and links the extensions required by kicad_plugin. | |
void | close (void) |
Nullify internal pointers in preparation for closing the plugin. | |
bool | reopen (void) |
Reopen a plugin. | |
Protected Attributes | |
std::string | m_error |
wxDynamicLibrary | m_PluginLoader |
Definition at line 52 of file pluginldr3D.h.
KICAD_PLUGIN_LDR_3D::KICAD_PLUGIN_LDR_3D | ( | ) |
Definition at line 39 of file pluginldr3D.cpp.
References m_canRender, m_getFileFilter, m_getModelExtension, m_getNExtensions, m_getNFilters, m_load, and ok.
|
virtual |
Definition at line 53 of file pluginldr3D.cpp.
References Close().
bool KICAD_PLUGIN_LDR_3D::CanRender | ( | void | ) |
Definition at line 361 of file pluginldr3D.cpp.
References m_canRender, KICAD_PLUGIN_LDR::m_error, ok, KICAD_PLUGIN_LDR::reopen(), and tracePluginLoader.
|
inherited |
Definition at line 380 of file pluginldr.cpp.
References KICAD_PLUGIN_LDR::m_checkClassVersion, KICAD_PLUGIN_LDR::m_error, KICAD_PLUGIN_LDR::ok, KICAD_PLUGIN_LDR::reopen(), and tracePluginLoader.
|
protectedinherited |
Nullify internal pointers in preparation for closing the plugin.
Definition at line 261 of file pluginldr.cpp.
References KICAD_PLUGIN_LDR::m_checkClassVersion, KICAD_PLUGIN_LDR::m_getClassVersion, KICAD_PLUGIN_LDR::m_getPluginClass, KICAD_PLUGIN_LDR::m_getPluginName, KICAD_PLUGIN_LDR::m_getVersion, KICAD_PLUGIN_LDR::m_PluginLoader, and KICAD_PLUGIN_LDR::ok.
Referenced by Close(), KICAD_PLUGIN_LDR::open(), and KICAD_PLUGIN_LDR::~KICAD_PLUGIN_LDR().
|
overridevirtual |
Clean up and closes/unloads the plugin.
Implements KICAD_PLUGIN_LDR.
Definition at line 210 of file pluginldr3D.cpp.
References KICAD_PLUGIN_LDR::close(), m_canRender, m_getFileFilter, m_getModelExtension, m_getNExtensions, m_getNFilters, m_load, ok, and tracePluginLoader.
Referenced by S3D_PLUGIN_MANAGER::loadPlugins(), Open(), and ~KICAD_PLUGIN_LDR_3D().
|
inherited |
Definition at line 321 of file pluginldr.cpp.
References KICAD_PLUGIN_LDR::m_checkClassVersion, KICAD_PLUGIN_LDR::m_error, KICAD_PLUGIN_LDR::m_getClassVersion, KICAD_PLUGIN_LDR::ok, KICAD_PLUGIN_LDR::reopen(), and tracePluginLoader.
char const * KICAD_PLUGIN_LDR_3D::GetFileFilter | ( | int | aIndex | ) |
Definition at line 334 of file pluginldr3D.cpp.
References KICAD_PLUGIN_LDR::m_error, m_getFileFilter, ok, KICAD_PLUGIN_LDR::reopen(), and tracePluginLoader.
Referenced by S3D_PLUGIN_MANAGER::loadPlugins().
|
inherited |
Definition at line 294 of file pluginldr.cpp.
References KICAD_PLUGIN_LDR::m_error, KICAD_PLUGIN_LDR::m_getPluginClass, KICAD_PLUGIN_LDR::ok, KICAD_PLUGIN_LDR::reopen(), and tracePluginLoader.
|
inherited |
Definition at line 408 of file pluginldr.cpp.
References KICAD_PLUGIN_LDR::m_error, KICAD_PLUGIN_LDR::m_getPluginName, KICAD_PLUGIN_LDR::ok, KICAD_PLUGIN_LDR::reopen(), and tracePluginLoader.
Referenced by KICAD_PLUGIN_LDR::open().
|
inherited |
Return the value of the internal error string.
Definition at line 288 of file pluginldr.cpp.
References KICAD_PLUGIN_LDR::m_error.
|
overridevirtual |
Return the version information of the Plugin Loader for plugin compatibility checking.
Implements KICAD_PLUGIN_LDR.
Definition at line 234 of file pluginldr3D.cpp.
References PLUGIN_3D_MAJOR, PLUGIN_3D_MINOR, PLUGIN_3D_PATCH, and PLUGIN_3D_REVISION.
char const * KICAD_PLUGIN_LDR_3D::GetModelExtension | ( | int | aIndex | ) |
Definition at line 280 of file pluginldr3D.cpp.
References KICAD_PLUGIN_LDR::m_error, m_getModelExtension, ok, KICAD_PLUGIN_LDR::reopen(), and tracePluginLoader.
Referenced by S3D_PLUGIN_MANAGER::addExtensionMap().
int KICAD_PLUGIN_LDR_3D::GetNExtensions | ( | void | ) |
Definition at line 253 of file pluginldr3D.cpp.
References KICAD_PLUGIN_LDR::m_error, m_getNExtensions, ok, KICAD_PLUGIN_LDR::reopen(), and tracePluginLoader.
Referenced by S3D_PLUGIN_MANAGER::addExtensionMap().
int KICAD_PLUGIN_LDR_3D::GetNFilters | ( | void | ) |
Definition at line 307 of file pluginldr3D.cpp.
References KICAD_PLUGIN_LDR::m_error, m_getNFilters, ok, KICAD_PLUGIN_LDR::reopen(), and tracePluginLoader.
Referenced by S3D_PLUGIN_MANAGER::loadPlugins().
|
inherited |
Definition at line 465 of file pluginldr.cpp.
References KICAD_PLUGIN_LDR::m_pluginInfo.
|
inherited |
Definition at line 435 of file pluginldr.cpp.
References KICAD_PLUGIN_LDR::m_error, KICAD_PLUGIN_LDR::m_getVersion, KICAD_PLUGIN_LDR::ok, KICAD_PLUGIN_LDR::reopen(), and tracePluginLoader.
Referenced by KICAD_PLUGIN_LDR::open().
SCENEGRAPH * KICAD_PLUGIN_LDR_3D::Load | ( | char const * | aFileName | ) |
Definition at line 388 of file pluginldr3D.cpp.
References KICAD_PLUGIN_LDR::m_error, m_load, ok, KICAD_PLUGIN_LDR::reopen(), and tracePluginLoader.
|
overridevirtual |
Open a plugin of the given class, performs version compatibility checks, and links all required functions.
Implements KICAD_PLUGIN_LDR.
Definition at line 61 of file pluginldr3D.cpp.
References Close(), LINK_ITEM, m_canRender, KICAD_PLUGIN_LDR::m_error, m_getFileFilter, m_getModelExtension, m_getNExtensions, m_getNFilters, m_load, ok, KICAD_PLUGIN_LDR::open(), PLUGIN_CLASS_3D, and tracePluginLoader.
Referenced by S3D_PLUGIN_MANAGER::loadPlugins().
|
protectedinherited |
Open a plugin of the specified class and links the extensions required by kicad_plugin.
Definition at line 63 of file pluginldr.cpp.
References KICAD_PLUGIN_LDR::close(), KICAD_PLUGIN_LDR::Close(), KICAD_PLUGIN_LDR::GetKicadPluginName(), KICAD_PLUGIN_LDR::GetLoaderVersion(), KICAD_PLUGIN_LDR::GetVersion(), LINK_ITEM, KICAD_PLUGIN_LDR::m_checkClassVersion, KICAD_PLUGIN_LDR::m_error, KICAD_PLUGIN_LDR::m_fileName, KICAD_PLUGIN_LDR::m_getClassVersion, KICAD_PLUGIN_LDR::m_getPluginClass, KICAD_PLUGIN_LDR::m_getPluginName, KICAD_PLUGIN_LDR::m_getVersion, KICAD_PLUGIN_LDR::m_pluginInfo, KICAD_PLUGIN_LDR::m_PluginLoader, KICAD_PLUGIN_LDR::ok, and tracePluginLoader.
Referenced by Open().
|
protectedinherited |
Reopen a plugin.
Definition at line 275 of file pluginldr.cpp.
References KICAD_PLUGIN_LDR::m_error, KICAD_PLUGIN_LDR::m_fileName, and KICAD_PLUGIN_LDR::Open().
Referenced by CanRender(), KICAD_PLUGIN_LDR::CheckClassVersion(), KICAD_PLUGIN_LDR::GetClassVersion(), GetFileFilter(), KICAD_PLUGIN_LDR::GetKicadPluginClass(), KICAD_PLUGIN_LDR::GetKicadPluginName(), GetModelExtension(), GetNExtensions(), GetNFilters(), KICAD_PLUGIN_LDR::GetVersion(), and Load().
|
private |
Definition at line 83 of file pluginldr3D.h.
Referenced by CanRender(), Close(), KICAD_PLUGIN_LDR_3D(), and Open().
|
privateinherited |
Definition at line 143 of file pluginldr.h.
Referenced by KICAD_PLUGIN_LDR::CheckClassVersion(), KICAD_PLUGIN_LDR::close(), KICAD_PLUGIN_LDR::GetClassVersion(), KICAD_PLUGIN_LDR::KICAD_PLUGIN_LDR(), and KICAD_PLUGIN_LDR::open().
|
protectedinherited |
Definition at line 134 of file pluginldr.h.
Referenced by CanRender(), KICAD_PLUGIN_LDR::CheckClassVersion(), KICAD_PLUGIN_LDR::GetClassVersion(), GetFileFilter(), KICAD_PLUGIN_LDR::GetKicadPluginClass(), KICAD_PLUGIN_LDR::GetKicadPluginName(), KICAD_PLUGIN_LDR::GetLastError(), GetModelExtension(), GetNExtensions(), GetNFilters(), KICAD_PLUGIN_LDR::GetVersion(), Load(), Open(), KICAD_PLUGIN_LDR::open(), and KICAD_PLUGIN_LDR::reopen().
|
privateinherited |
Definition at line 146 of file pluginldr.h.
Referenced by KICAD_PLUGIN_LDR::open(), and KICAD_PLUGIN_LDR::reopen().
|
privateinherited |
Definition at line 142 of file pluginldr.h.
Referenced by KICAD_PLUGIN_LDR::close(), KICAD_PLUGIN_LDR::GetClassVersion(), KICAD_PLUGIN_LDR::KICAD_PLUGIN_LDR(), and KICAD_PLUGIN_LDR::open().
|
private |
Definition at line 82 of file pluginldr3D.h.
Referenced by Close(), GetFileFilter(), KICAD_PLUGIN_LDR_3D(), and Open().
|
private |
Definition at line 80 of file pluginldr3D.h.
Referenced by Close(), GetModelExtension(), KICAD_PLUGIN_LDR_3D(), and Open().
|
private |
Definition at line 79 of file pluginldr3D.h.
Referenced by Close(), GetNExtensions(), KICAD_PLUGIN_LDR_3D(), and Open().
|
private |
Definition at line 81 of file pluginldr3D.h.
Referenced by Close(), GetNFilters(), KICAD_PLUGIN_LDR_3D(), and Open().
|
privateinherited |
Definition at line 141 of file pluginldr.h.
Referenced by KICAD_PLUGIN_LDR::close(), KICAD_PLUGIN_LDR::GetKicadPluginClass(), KICAD_PLUGIN_LDR::KICAD_PLUGIN_LDR(), and KICAD_PLUGIN_LDR::open().
|
privateinherited |
Definition at line 144 of file pluginldr.h.
Referenced by KICAD_PLUGIN_LDR::close(), KICAD_PLUGIN_LDR::GetKicadPluginName(), KICAD_PLUGIN_LDR::KICAD_PLUGIN_LDR(), and KICAD_PLUGIN_LDR::open().
|
privateinherited |
Definition at line 145 of file pluginldr.h.
Referenced by KICAD_PLUGIN_LDR::close(), KICAD_PLUGIN_LDR::GetVersion(), KICAD_PLUGIN_LDR::KICAD_PLUGIN_LDR(), and KICAD_PLUGIN_LDR::open().
|
private |
Definition at line 84 of file pluginldr3D.h.
Referenced by Close(), KICAD_PLUGIN_LDR_3D(), Load(), and Open().
|
privateinherited |
Definition at line 147 of file pluginldr.h.
Referenced by KICAD_PLUGIN_LDR::GetPluginInfo(), and KICAD_PLUGIN_LDR::open().
|
protectedinherited |
Definition at line 137 of file pluginldr.h.
Referenced by KICAD_PLUGIN_LDR::close(), and KICAD_PLUGIN_LDR::open().
|
private |
Definition at line 78 of file pluginldr3D.h.
Referenced by CanRender(), Close(), GetFileFilter(), GetModelExtension(), GetNExtensions(), GetNFilters(), KICAD_PLUGIN_LDR_3D(), Load(), and Open().