25#include <wx/filename.h>
34#define PLUGIN_OCE_MAJOR 1
35#define PLUGIN_OCE_MINOR 4
36#define PLUGIN_OCE_PATCH 2
37#define PLUGIN_OCE_REVNO 0
42 return "PLUGIN_3D_OCE";
47 unsigned char* Minor,
unsigned char* Patch,
unsigned char* Revision )
73 extensions = {
"stp",
"step",
"stpz",
"stp.gz",
"step.gz",
"igs",
"iges" };
75 "STEP (*.stp;*.step;*.stpz;*.stp.gz;*.step.gz)|*.stp;*.step;*.stpz;*stp.gz;*.step.gz",
76 "IGES (*.igs;*.iges)|*.igs;*.iges" };
79 "stp",
"STP",
"stpZ",
"stpz",
"STPZ",
"step",
"STEP",
"stp.gz",
"STP.GZ",
"step.gz",
"STEP.GZ",
80 "igs",
"IGS",
"iges",
"IGES"
84 "STEP (*.stp;*.STP;*.stpZ;*.stpz;*.STPZ;*.step;*.STEP;*.stp.gz;*.STP.GZ;*.step.gz;"
85 "*.STEP.GZ)|*.stp;*.STP;*.stpZ;*.stpz;*.STPZ;*.step;*.STEP;*.stp.gz;*.STP.GZ;"
86 "*.step.gz;*.STEP.GZ",
87 "IGES (*.igs;*.IGS;*.iges;*.IGES)|*.igs;*.IGS;*.iges;*.IGES"
103 if( aIndex < 0 || aIndex >=
int(
file_data.extensions.size() ) )
106 return file_data.extensions[aIndex].c_str();
118 if( aIndex < 0 || aIndex >=
int(
file_data.filters.size() ) )
121 return file_data.filters[aIndex].c_str();
134 if(
nullptr == aFileName )
137 wxString fname = wxString::FromUTF8Unchecked( aFileName );
139 if( !wxFileName::FileExists( fname ) )
Describe the runtime-loadable interface to support loading and parsing of 3D models.
Define the basic data set required to represent a 3D model.
collects header files for all SG* wrappers and the API
char const * GetModelExtension(int aIndex)
SCENEGRAPH * Load(char const *aFileName)
Read a model file and creates a generic display structure.
char const * GetFileFilter(int aIndex)
void GetPluginVersion(unsigned char *Major, unsigned char *Minor, unsigned char *Patch, unsigned char *Revision)
Retrieve the version of the instantiated plugin for informational purposes.
SCENEGRAPH * LoadModel(char const *filename)
const char * GetKicadPluginName(void)
Return the name of the plugin instance, for example IDFv3.
static struct FILE_DATA file_data
char const * extensions[NEXTS]
char const * filters[NFILS]