VTK  9.2.5
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 =========================================================================*/
67 #ifndef vtkGLTFExporter_h
68 #define vtkGLTFExporter_h
69 
70 #include "vtkExporter.h"
71 #include "vtkIOExportModule.h" // For export macro
72 
73 #include <string> // for std::string
74 
75 class VTKIOEXPORT_EXPORT vtkGLTFExporter : public vtkExporter
76 {
77 public:
78  static vtkGLTFExporter* New();
79  vtkTypeMacro(vtkGLTFExporter, vtkExporter);
80  void PrintSelf(ostream& os, vtkIndent indent) override;
81 
83 
89 
91 
95  vtkGetMacro(InlineData, bool);
96  vtkSetMacro(InlineData, bool);
97  vtkBooleanMacro(InlineData, bool);
99 
101 
108  vtkGetMacro(SaveNormal, bool);
109  vtkSetMacro(SaveNormal, bool);
110  vtkBooleanMacro(SaveNormal, bool);
112 
114 
124  vtkGetMacro(SaveBatchId, bool);
125  vtkSetMacro(SaveBatchId, bool);
126  vtkBooleanMacro(SaveBatchId, bool);
128 
133 
137  void WriteToStream(ostream& out);
138 
139 protected:
141  ~vtkGLTFExporter() override;
142 
143  void WriteData() override;
144 
145  char* FileName;
149 
150 private:
151  vtkGLTFExporter(const vtkGLTFExporter&) = delete;
152  void operator=(const vtkGLTFExporter&) = delete;
153 };
154 
155 #endif
abstract class to write a scene to a file
Definition: vtkExporter.h:48
export a scene into GLTF 2.0 format.
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.
static vtkGLTFExporter * New()
void WriteData() override
a simple class to control print indentation
Definition: vtkIndent.h:119
@ string
Definition: vtkX3D.h:496