VTK
vtk3DSImporter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtk3DSImporter.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
31#ifndef vtk3DSImporter_h
32#define vtk3DSImporter_h
33
34#include "vtkIOImportModule.h" // For export macro
35#include "vtkImporter.h"
36#include "vtk3DS.h" // Needed for all the 3DS structures
37
38class vtkPolyData;
39
40class VTKIOIMPORT_EXPORT vtk3DSImporter : public vtkImporter
41{
42public:
44
46 void PrintSelf(ostream& os, vtkIndent indent);
47
49
52 vtkSetStringMacro(FileName);
55
57
61 vtkSetMacro(ComputeNormals,int);
62 vtkGetMacro(ComputeNormals,int);
63 vtkBooleanMacro(ComputeNormals,int);
65
69 FILE *GetFileFD() {return this->FileFD;};
70
71 vtk3DSOmniLight *OmniList;
72 vtk3DSSpotLight *SpotLightList;
73 vtk3DSCamera *CameraList;
74 vtk3DSMesh *MeshList;
75 vtk3DSMaterial *MaterialList;
76 vtk3DSMatProp *MatPropList;
77
78protected:
81
82 virtual int ImportBegin ();
83 virtual void ImportEnd ();
84 virtual void ImportActors (vtkRenderer *renderer);
85 virtual void ImportCameras (vtkRenderer *renderer);
86 virtual void ImportLights (vtkRenderer *renderer);
87 virtual void ImportProperties (vtkRenderer *renderer);
88 vtkPolyData *GeneratePolyData (vtk3DSMesh *meshPtr);
89 int Read3DS ();
90
91 char *FileName;
92 FILE *FileFD;
94private:
95 vtk3DSImporter(const vtk3DSImporter&) VTK_DELETE_FUNCTION;
96 void operator=(const vtk3DSImporter&) VTK_DELETE_FUNCTION;
97};
98
99#endif
100
imports 3D Studio files.
vtk3DSMaterial * MaterialList
FILE * GetFileFD()
Return the file pointer to the open file.
virtual void ImportLights(vtkRenderer *renderer)
vtk3DSSpotLight * SpotLightList
virtual void ImportCameras(vtkRenderer *renderer)
vtkPolyData * GeneratePolyData(vtk3DSMesh *meshPtr)
vtk3DSMatProp * MatPropList
virtual void ImportEnd()
vtk3DSCamera * CameraList
vtk3DSMesh * MeshList
virtual void ImportProperties(vtkRenderer *renderer)
static vtk3DSImporter * New()
virtual int ImportBegin()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtk3DSOmniLight * OmniList
virtual void ImportActors(vtkRenderer *renderer)
importer abstract class
Definition: vtkImporter.h:55
a simple class to control print indentation
Definition: vtkIndent.h:40
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.