VTK  9.0.3
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 =========================================================================*/
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 
43 class VTKIOEXPORT_EXPORT vtkGLTFExporter : public vtkExporter
44 {
45 public:
46  static vtkGLTFExporter* New();
47  vtkTypeMacro(vtkGLTFExporter, vtkExporter);
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
51 
54  vtkSetStringMacro(FileName);
55  vtkGetStringMacro(FileName);
57 
59 
63  vtkGetMacro(InlineData, bool);
64  vtkSetMacro(InlineData, bool);
65  vtkBooleanMacro(InlineData, bool);
67 
69 
76  vtkGetMacro(SaveNormal, bool);
77  vtkSetMacro(SaveNormal, bool);
78  vtkBooleanMacro(SaveNormal, bool);
80 
82 
92  vtkGetMacro(SaveBatchId, bool);
93  vtkSetMacro(SaveBatchId, bool);
94  vtkBooleanMacro(SaveBatchId, bool);
96 
97 
98 
103 
107  void WriteToStream(ostream& out);
108 
109 protected:
111  ~vtkGLTFExporter() override;
112 
113  void WriteData() override;
114 
115 
116  char* FileName;
120 
121 private:
122  vtkGLTFExporter(const vtkGLTFExporter&) = delete;
123  void operator=(const vtkGLTFExporter&) = delete;
124 };
125 
126 #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
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.
static vtkGLTFExporter * New()
void WriteData() override
a simple class to control print indentation
Definition: vtkIndent.h:34
@ string
Definition: vtkX3D.h:496