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" 
 
  107    if( aIndex < 0 || aIndex >= 
int( 
file_data.extensions.size() ) )
 
  110    return file_data.extensions[aIndex].c_str();
 
 
  122    if( aIndex < 0 || aIndex >= 
int( 
file_data.filters.size() ) )
 
  125    return file_data.filters[aIndex].c_str();
 
 
  138    if( 
nullptr == aFileName )
 
  141    wxString fname = wxString::FromUTF8Unchecked( aFileName );
 
  143    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]