VTK  9.1.0
vtkGLTFExporter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkGLTFExporter.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=========================================================================*/
44#ifndef vtkGLTFExporter_h
45#define vtkGLTFExporter_h
46
47#include "vtkExporter.h"
48#include "vtkIOExportModule.h" // For export macro
49
50#include <string> // for std::string
51
52class VTKIOEXPORT_EXPORT vtkGLTFExporter : public vtkExporter
53{
54public:
57 void PrintSelf(ostream& os, vtkIndent indent) override;
58
60
66
68
72 vtkGetMacro(InlineData, bool);
73 vtkSetMacro(InlineData, bool);
74 vtkBooleanMacro(InlineData, bool);
76
78
85 vtkGetMacro(SaveNormal, bool);
86 vtkSetMacro(SaveNormal, bool);
87 vtkBooleanMacro(SaveNormal, bool);
89
91
101 vtkGetMacro(SaveBatchId, bool);
102 vtkSetMacro(SaveBatchId, bool);
103 vtkBooleanMacro(SaveBatchId, bool);
105
110
114 void WriteToStream(ostream& out);
115
116protected:
119
120 void WriteData() override;
121
122 char* FileName;
126
127private:
128 vtkGLTFExporter(const vtkGLTFExporter&) = delete;
129 void operator=(const vtkGLTFExporter&) = delete;
130};
131
132#endif
abstract class to write a scene to a file
Definition: vtkExporter.h:48
export a scene into GLTF 2.0 format.
static vtkGLTFExporter * New()
std::string WriteToString()
Write the result to a string instead of a file.
~vtkGLTFExporter() override
vtkGetFilePathMacro(FileName)
Specify the name of the GLTF file to write.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void WriteToStream(ostream &out)
Write the result to a provided ostream.
vtkSetFilePathMacro(FileName)
Specify the name of the GLTF file to write.
void WriteData() override
a simple class to control print indentation
Definition: vtkIndent.h:43
@ string
Definition: vtkX3D.h:496