Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Hybrid/vtk3DSImporter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtk3DSImporter.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00045 #ifndef __vtk3DSImporter_h
00046 #define __vtk3DSImporter_h
00047 
00048 #include "vtkImporter.h"
00049 #include "vtk3DS.h"  // Needed for all the 3DS structures
00050 
00051 class vtkPolyData;
00052 
00053 class VTK_HYBRID_EXPORT vtk3DSImporter : public vtkImporter
00054 {
00055 public:
00056   static vtk3DSImporter *New();
00057 
00058   vtkTypeRevisionMacro(vtk3DSImporter,vtkImporter);
00059   void PrintSelf(ostream& os, vtkIndent indent);
00060 
00062 
00063   vtkSetStringMacro(FileName);
00064   vtkGetStringMacro(FileName);
00066 
00068 
00070   vtkSetMacro(ComputeNormals,int);
00071   vtkGetMacro(ComputeNormals,int);
00072   vtkBooleanMacro(ComputeNormals,int);
00074 
00076   FILE *GetFileFD() {return this->FileFD;};
00077 
00078   vtk3DSOmniLight *OmniList;
00079   vtk3DSSpotLight *SpotLightList;
00080   vtk3DSCamera    *CameraList;
00081   vtk3DSMesh      *MeshList;
00082   vtk3DSMaterial  *MaterialList;
00083   vtk3DSMatProp   *MatPropList;
00084 
00085 protected:
00086   vtk3DSImporter();
00087   ~vtk3DSImporter();
00088 
00089   virtual int ImportBegin ();
00090   virtual void ImportEnd ();
00091   virtual void ImportActors (vtkRenderer *renderer);
00092   virtual void ImportCameras (vtkRenderer *renderer);
00093   virtual void ImportLights (vtkRenderer *renderer);
00094   virtual void ImportProperties (vtkRenderer *renderer);
00095   vtkPolyData *GeneratePolyData (vtk3DSMesh *meshPtr);
00096   int Read3DS ();
00097 
00098   char *FileName;
00099   FILE *FileFD;
00100   int ComputeNormals;
00101 private:
00102   vtk3DSImporter(const vtk3DSImporter&);  // Not implemented.
00103   void operator=(const vtk3DSImporter&);  // Not implemented.
00104 };
00105 
00106 #endif
00107