KiCad PCB EDA Suite
|
#include <wx/filename.h>
#include "plugins/3d/3d_plugin.h"
#include "plugins/3dapi/ifsg_all.h"
#include <string>
#include <vector>
Go to the source code of this file.
Classes | |
struct | FILE_DATA |
Macros | |
#define | PLUGIN_OCE_MAJOR 1 |
#define | PLUGIN_OCE_MINOR 4 |
#define | PLUGIN_OCE_PATCH 2 |
#define | PLUGIN_OCE_REVNO 0 |
Functions | |
SCENEGRAPH * | LoadModel (char const *filename) |
const char * | GetKicadPluginName (void) |
Return the name of the plugin instance, for example IDFv3. | |
void | GetPluginVersion (unsigned char *Major, unsigned char *Minor, unsigned char *Patch, unsigned char *Revision) |
Retrieve the version of the instantiated plugin for informational purposes. | |
int | GetNExtensions (void) |
char const * | GetModelExtension (int aIndex) |
int | GetNFilters (void) |
char const * | GetFileFilter (int aIndex) |
bool | CanRender (void) |
SCENEGRAPH * | Load (char const *aFileName) |
Read a model file and creates a generic display structure. | |
Variables | |
static struct FILE_DATA | file_data |
bool CanRender | ( | void | ) |
char const * GetFileFilter | ( | int | aIndex | ) |
Definition at line 120 of file oce.cpp.
References file_data, and FILE_DATA::filters.
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.
char const * GetModelExtension | ( | int | aIndex | ) |
aIndex | is the extension to return; valid values are 0 to GetNExtensions() - 1. |
Definition at line 105 of file oce.cpp.
References FILE_DATA::extensions, and file_data.
int GetNExtensions | ( | void | ) |
Definition at line 99 of file oce.cpp.
References FILE_DATA::extensions, and file_data.
int GetNFilters | ( | void | ) |
Definition at line 114 of file oce.cpp.
References file_data, and FILE_DATA::filters.
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 50 of file oce.cpp.
References PLUGIN_OCE_MAJOR, PLUGIN_OCE_MINOR, PLUGIN_OCE_PATCH, and PLUGIN_OCE_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 136 of file oce.cpp.
References LoadModel().
SCENEGRAPH * LoadModel | ( | char const * | filename | ) |
Definition at line 699 of file loadmodel.cpp.
References dumpLabels(), fileType(), FMT_IGES, FMT_STEP, FMT_STPZ, IFSG_NODE::GetRawPtr(), MASK_OCE, processLabel(), readIGES(), readSTEP(), readSTEPZ(), DATA::renderBoth, DATA::scene, and S3D::WriteVRML().
Referenced by Load().
|
static |
Referenced by GetFileFilter(), GetModelExtension(), GetNExtensions(), and GetNFilters().