• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

dox/Hybrid/vtk3DSImporter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtk3DSImporter.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00027 #ifndef __vtk3DSImporter_h
00028 #define __vtk3DSImporter_h
00029 
00030 #include "vtkImporter.h"
00031 #include "vtk3DS.h"  // Needed for all the 3DS structures
00032 
00033 class vtkPolyData;
00034 
00035 class VTK_HYBRID_EXPORT vtk3DSImporter : public vtkImporter
00036 {
00037 public:
00038   static vtk3DSImporter *New();
00039 
00040   vtkTypeRevisionMacro(vtk3DSImporter,vtkImporter);
00041   void PrintSelf(ostream& os, vtkIndent indent);
00042 
00044 
00045   vtkSetStringMacro(FileName);
00046   vtkGetStringMacro(FileName);
00048 
00050 
00052   vtkSetMacro(ComputeNormals,int);
00053   vtkGetMacro(ComputeNormals,int);
00054   vtkBooleanMacro(ComputeNormals,int);
00056 
00058   FILE *GetFileFD() {return this->FileFD;};
00059 
00060   vtk3DSOmniLight *OmniList;
00061   vtk3DSSpotLight *SpotLightList;
00062   vtk3DSCamera    *CameraList;
00063   vtk3DSMesh      *MeshList;
00064   vtk3DSMaterial  *MaterialList;
00065   vtk3DSMatProp   *MatPropList;
00066 
00067 protected:
00068   vtk3DSImporter();
00069   ~vtk3DSImporter();
00070 
00071   virtual int ImportBegin ();
00072   virtual void ImportEnd ();
00073   virtual void ImportActors (vtkRenderer *renderer);
00074   virtual void ImportCameras (vtkRenderer *renderer);
00075   virtual void ImportLights (vtkRenderer *renderer);
00076   virtual void ImportProperties (vtkRenderer *renderer);
00077   vtkPolyData *GeneratePolyData (vtk3DSMesh *meshPtr);
00078   int Read3DS ();
00079 
00080   char *FileName;
00081   FILE *FileFD;
00082   int ComputeNormals;
00083 private:
00084   vtk3DSImporter(const vtk3DSImporter&);  // Not implemented.
00085   void operator=(const vtk3DSImporter&);  // Not implemented.
00086 };
00087 
00088 #endif
00089 

Generated by  doxygen 1.7.1