VTK  9.1.0
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=========================================================================*/
64#ifndef vtk3DSImporter_h
65#define vtk3DSImporter_h
66
67#include "vtk3DS.h" // Needed for all the 3DS structures
68#include "vtkIOImportModule.h" // For export macro
69#include "vtkImporter.h"
70
71class vtkPolyData;
72
73class VTKIOIMPORT_EXPORT vtk3DSImporter : public vtkImporter
74{
75public:
77
79 void PrintSelf(ostream& os, vtkIndent indent) override;
80
82
88
90
94 vtkSetMacro(ComputeNormals, vtkTypeBool);
95 vtkGetMacro(ComputeNormals, vtkTypeBool);
96 vtkBooleanMacro(ComputeNormals, vtkTypeBool);
98
103
107 FILE* GetFileFD() { return this->FileFD; }
108
109 vtk3DSOmniLight* OmniList;
110 vtk3DSSpotLight* SpotLightList;
111 vtk3DSCamera* CameraList;
112 vtk3DSMesh* MeshList;
113 vtk3DSMaterial* MaterialList;
114 vtk3DSMatProp* MatPropList;
115
116protected:
118 ~vtk3DSImporter() override;
119
120 int ImportBegin() override;
121 void ImportEnd() override;
122 void ImportActors(vtkRenderer* renderer) override;
123 void ImportCameras(vtkRenderer* renderer) override;
124 void ImportLights(vtkRenderer* renderer) override;
125 void ImportProperties(vtkRenderer* renderer) override;
126 vtkPolyData* GeneratePolyData(vtk3DSMesh* meshPtr);
127 int Read3DS();
128
129 char* FileName;
130 FILE* FileFD;
132
133private:
134 vtk3DSImporter(const vtk3DSImporter&) = delete;
135 void operator=(const vtk3DSImporter&) = delete;
136};
137
138#endif
imports 3D Studio files.
vtk3DSMaterial * MaterialList
FILE * GetFileFD()
Return the file pointer to the open file.
vtkGetFilePathMacro(FileName)
Specify the name of the file to read.
vtk3DSSpotLight * SpotLightList
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ImportLights(vtkRenderer *renderer) override
void ImportActors(vtkRenderer *renderer) override
vtkPolyData * GeneratePolyData(vtk3DSMesh *meshPtr)
std::string GetOutputsDescription() override
Get a printable string describing the outputs.
vtkTypeBool ComputeNormals
vtk3DSMatProp * MatPropList
void ImportProperties(vtkRenderer *renderer) override
void ImportEnd() override
vtkSetFilePathMacro(FileName)
Specify the name of the file to read.
int ImportBegin() override
~vtk3DSImporter() override
vtk3DSCamera * CameraList
vtk3DSMesh * MeshList
static vtk3DSImporter * New()
vtk3DSOmniLight * OmniList
void ImportCameras(vtkRenderer *renderer) override
importer abstract class
Definition: vtkImporter.h:60
a simple class to control print indentation
Definition: vtkIndent.h:113
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:195
abstract specification for renderers
Definition: vtkRenderer.h:173
@ string
Definition: vtkX3D.h:496
int vtkTypeBool
Definition: vtkABI.h:69