Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

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 =========================================================================*/
00041 #ifndef __vtk3DSImporter_h
00042 #define __vtk3DSImporter_h
00043 
00044 #include "vtkImporter.h"
00045 #include "vtk3DS.h"  // Needed for all the 3DS structures
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&);  // Not implemented.
00099   void operator=(const vtk3DSImporter&);  // Not implemented.
00100 };
00101 
00102 #endif
00103