VTK  9.3.0
vtk3DSImporter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
16#ifndef vtk3DSImporter_h
17#define vtk3DSImporter_h
18
19#include "vtk3DS.h" // Needed for all the 3DS structures
20#include "vtkIOImportModule.h" // For export macro
21#include "vtkImporter.h"
22
23VTK_ABI_NAMESPACE_BEGIN
24class vtkPolyData;
25
26class VTKIOIMPORT_EXPORT vtk3DSImporter : public vtkImporter
27{
28public:
30
32 void PrintSelf(ostream& os, vtkIndent indent) override;
33
35
41
43
47 vtkSetMacro(ComputeNormals, vtkTypeBool);
48 vtkGetMacro(ComputeNormals, vtkTypeBool);
49 vtkBooleanMacro(ComputeNormals, vtkTypeBool);
51
55 std::string GetOutputsDescription() override;
56
60 FILE* GetFileFD() { return this->FileFD; }
61
62 vtk3DSOmniLight* OmniList;
63 vtk3DSSpotLight* SpotLightList;
64 vtk3DSCamera* CameraList;
65 vtk3DSMesh* MeshList;
66 vtk3DSMaterial* MaterialList;
67 vtk3DSMatProp* MatPropList;
68
69protected:
71 ~vtk3DSImporter() override;
72
73 int ImportBegin() override;
74 void ImportEnd() override;
75 void ImportActors(vtkRenderer* renderer) override;
76 void ImportCameras(vtkRenderer* renderer) override;
77 void ImportLights(vtkRenderer* renderer) override;
78 void ImportProperties(vtkRenderer* renderer) override;
79 vtkPolyData* GeneratePolyData(vtk3DSMesh* meshPtr);
80 int Read3DS();
81
82 char* FileName;
83 FILE* FileFD;
85
86private:
87 vtk3DSImporter(const vtk3DSImporter&) = delete;
88 void operator=(const vtk3DSImporter&) = delete;
89};
90
91VTK_ABI_NAMESPACE_END
92#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:49
a simple class to control print indentation
Definition vtkIndent.h:29
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:80
abstract specification for renderers
Definition vtkRenderer.h:59
int vtkTypeBool
Definition vtkABI.h:64