VTK  9.5.2
vtkGLTFExporter.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
25
26#ifndef vtkGLTFExporter_h
27#define vtkGLTFExporter_h
28
29#include "vtkExporter.h"
30#include "vtkIOExportModule.h" // For export macro
31
32#include <string> // for std::string
33
34VTK_ABI_NAMESPACE_BEGIN
35class VTKIOEXPORT_EXPORT vtkGLTFExporter : public vtkExporter
36{
37public:
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
43
49
51
55 vtkGetMacro(InlineData, bool);
56 vtkSetMacro(InlineData, bool);
57 vtkBooleanMacro(InlineData, bool);
59
61
68 vtkGetMacro(SaveNormal, bool);
69 vtkSetMacro(SaveNormal, bool);
70 vtkBooleanMacro(SaveNormal, bool);
72
74
84 vtkGetMacro(SaveBatchId, bool);
85 vtkSetMacro(SaveBatchId, bool);
86 vtkBooleanMacro(SaveBatchId, bool);
88
90
96 vtkGetMacro(SaveNaNValues, bool);
97 vtkSetMacro(SaveNaNValues, bool);
98 vtkBooleanMacro(SaveNaNValues, bool);
100
104 std::string WriteToString();
105
109 void WriteToStream(ostream& out);
110
111protected:
114
115 void WriteData() override;
116
117 char* FileName;
121
122private:
123 vtkGLTFExporter(const vtkGLTFExporter&) = delete;
124 void operator=(const vtkGLTFExporter&) = delete;
125
126 bool SaveNaNValues = true;
127};
128
129VTK_ABI_NAMESPACE_END
130#endif
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:29