00001 /* 00002 * $Id: iostl.h,v 1.12 2008-06-06 20:02:36 kybav1 Exp $ 00003 * 00004 * Description : Module for STL import/export. 00005 * Author : Antonin Misek <antonin.misek@skoda-auto.cz> 00006 * 00007 * Purpose : 00008 * Long description of what the file is for. 00009 */ 00010 00011 #ifndef __IOSTL__H__ 00012 #define __IOSTL__H__ 00013 00014 #include "../../iomodule.h" 00015 #include "../../common.h" 00016 00017 00018 namespace VRUT 00019 { 00021 const int MODULE_VERSION = 1; 00022 00024 class IOStlModule : public IOModule 00025 { 00026 protected: 00028 bool saveBinary; 00030 Parameter::ParameterIdentificator saveBinaryParamID; 00032 bool recomputeNormals; 00034 Parameter::ParameterIdentificator recomputeNormalsParamID; 00035 00037 virtual void processEvent(wxCommandEvent & evt); 00038 00039 public: 00041 IOStlModule(const MODULE_ID & _id, const wxString & _name, EventHandler * msgSink); 00043 virtual ~IOStlModule(); 00044 00046 virtual wxString GetDesc() const; 00048 virtual wxString GetSupportedExts() const; 00054 virtual bool ImportScene(const wxString & fname, SCENE_ID _sceneID, const wxString & rootUid); 00056 virtual bool ExportScene(const wxString & fname, const Scene * scene); 00057 }; 00058 }; 00059 00060 00061 EXPORT_VRUT_MODULE_FUNCTIONS( IOStlModule ) 00062 00063 00064 #endif 00065
1.5.5