vtk3DSImporter.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00041 #ifndef __vtk3DSImporter_h
00042 #define __vtk3DSImporter_h
00043
00044 #include "vtkImporter.h"
00045 #include "vtk3DS.h"
00046
00047 class vtkPolyData;
00048
00049 class VTK_HYBRID_EXPORT vtk3DSImporter : public vtkImporter
00050 {
00051 public:
00052 static vtk3DSImporter *New();
00053
00054 vtkTypeRevisionMacro(vtk3DSImporter,vtkImporter);
00055 void PrintSelf(ostream& os, vtkIndent indent);
00056
00058
00059 vtkSetStringMacro(FileName);
00060 vtkGetStringMacro(FileName);
00062
00064
00066 vtkSetMacro(ComputeNormals,int);
00067 vtkGetMacro(ComputeNormals,int);
00068 vtkBooleanMacro(ComputeNormals,int);
00070
00072 FILE *GetFileFD() {return this->FileFD;};
00073
00074 vtk3DSOmniLight *OmniList;
00075 vtk3DSSpotLight *SpotLightList;
00076 vtk3DSCamera *CameraList;
00077 vtk3DSMesh *MeshList;
00078 vtk3DSMaterial *MaterialList;
00079 vtk3DSMatProp *MatPropList;
00080
00081 protected:
00082 vtk3DSImporter();
00083 ~vtk3DSImporter();
00084
00085 virtual int ImportBegin ();
00086 virtual void ImportEnd ();
00087 virtual void ImportActors (vtkRenderer *renderer);
00088 virtual void ImportCameras (vtkRenderer *renderer);
00089 virtual void ImportLights (vtkRenderer *renderer);
00090 virtual void ImportProperties (vtkRenderer *renderer);
00091 vtkPolyData *GeneratePolyData (vtk3DSMesh *meshPtr);
00092 int Read3DS ();
00093
00094 char *FileName;
00095 FILE *FileFD;
00096 int ComputeNormals;
00097 private:
00098 vtk3DSImporter(const vtk3DSImporter&);
00099 void operator=(const vtk3DSImporter&);
00100 };
00101
00102 #endif
00103