VTK  9.3.0
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
35#ifndef vtkGLTFExporter_h
36#define vtkGLTFExporter_h
37
38#include "vtkExporter.h"
39#include "vtkIOExportModule.h" // For export macro
40
41#include <string> // for std::string
42
43VTK_ABI_NAMESPACE_BEGIN
44class VTKIOEXPORT_EXPORT vtkGLTFExporter : public vtkExporter
45{
46public:
49 void PrintSelf(ostream& os, vtkIndent indent) override;
50
52
58
60
64 vtkGetMacro(InlineData, bool);
65 vtkSetMacro(InlineData, bool);
66 vtkBooleanMacro(InlineData, bool);
68
70
77 vtkGetMacro(SaveNormal, bool);
78 vtkSetMacro(SaveNormal, bool);
79 vtkBooleanMacro(SaveNormal, bool);
81
83
93 vtkGetMacro(SaveBatchId, bool);
94 vtkSetMacro(SaveBatchId, bool);
95 vtkBooleanMacro(SaveBatchId, bool);
97
101 std::string WriteToString();
102
106 void WriteToStream(ostream& out);
107
108protected:
111
112 void WriteData() override;
113
114 char* FileName;
118
119private:
120 vtkGLTFExporter(const vtkGLTFExporter&) = delete;
121 void operator=(const vtkGLTFExporter&) = delete;
122};
123
124VTK_ABI_NAMESPACE_END
125#endif
abstract class to write a scene to a file
Definition vtkExporter.h:37
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:38