29#include <wx/filename.h>
38#define PLUGIN_OCE_MAJOR 1
39#define PLUGIN_OCE_MINOR 4
40#define PLUGIN_OCE_PATCH 2
41#define PLUGIN_OCE_REVNO 0
46 return "PLUGIN_3D_OCE";
51 unsigned char* Minor,
unsigned char* Patch,
unsigned char* Revision )
77 extensions = {
"stp",
"step",
"stpz",
"stp.gz",
"step.gz",
"igs",
"iges" };
79 "STEP (*.stp;*.step;*.stpz;*.stp.gz;*.step.gz)|*.stp;*.step;*.stpz;*stp.gz;*.step.gz",
80 "IGES (*.igs;*.iges)|*.igs;*.iges" };
83 "stp",
"STP",
"stpZ",
"stpz",
"STPZ",
"step",
"STEP",
"stp.gz",
"STP.GZ",
"step.gz",
"STEP.GZ",
84 "igs",
"IGS",
"iges",
"IGES"
88 "STEP (*.stp;*.STP;*.stpZ;*.stpz;*.STPZ;*.step;*.STEP;*.stp.gz;*.STP.GZ;*.step.gz;"
89 "*.STEP.GZ)|*.stp;*.STP;*.stpZ;*.stpz;*.STPZ;*.step;*.STEP;*.stp.gz;*.STP.GZ;"
90 "*.step.gz;*.STEP.GZ",
91 "IGES (*.igs;*.IGS;*.iges;*.IGES)|*.igs;*.IGS;*.iges;*.IGES"
138 if(
nullptr == aFileName )
141 wxString fname = wxString::FromUTF8Unchecked( aFileName );
143 if( !wxFileName::FileExists( fname ) )
describes 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
static struct FILE_DATA file_data
char const * GetModelExtension(int aIndex)
Function GetModelExtension.
bool CanRender(void)
Function CanRender.
SCENEGRAPH * Load(char const *aFileName)
reads a model file and creates a generic display structure
char const * GetFileFilter(int aIndex)
Function GetFileFilter.
void GetPluginVersion(unsigned char *Major, unsigned char *Minor, unsigned char *Patch, unsigned char *Revision)
Function GetPluginVersion retrieves the version of the instantiated plugin for informational purposes...
SCENEGRAPH * LoadModel(char const *filename)
const char * GetKicadPluginName(void)
Function GetKicadPluginName returns the name of the plugin instance; for example IDFv3.
int GetNExtensions(void)
Function GetNExtensions.
int GetNFilters(void)
Function GetNFilters.
char const * extensions[NEXTS]
std::vector< std::string > filters
char const * filters[NFILS]
std::vector< std::string > extensions