VTK  9.2.6
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 =========================================================================*/
38 #ifndef vtkGLTFExporter_h
39 #define vtkGLTFExporter_h
40 
41 #include "vtkExporter.h"
42 #include "vtkIOExportModule.h" // For export macro
43 
44 #include <string> // for std::string
45 
46 class VTKIOEXPORT_EXPORT vtkGLTFExporter : public vtkExporter
47 {
48 public:
49  static vtkGLTFExporter* New();
50  vtkTypeMacro(vtkGLTFExporter, vtkExporter);
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
54 
57  vtkSetFilePathMacro(FileName);
58  vtkGetFilePathMacro(FileName);
60 
62 
66  vtkGetMacro(InlineData, bool);
67  vtkSetMacro(InlineData, bool);
68  vtkBooleanMacro(InlineData, bool);
70 
72 
79  vtkGetMacro(SaveNormal, bool);
80  vtkSetMacro(SaveNormal, bool);
81  vtkBooleanMacro(SaveNormal, bool);
83 
85 
95  vtkGetMacro(SaveBatchId, bool);
96  vtkSetMacro(SaveBatchId, bool);
97  vtkBooleanMacro(SaveBatchId, bool);
99 
103  std::string WriteToString();
104 
108  void WriteToStream(ostream& out);
109 
110 protected:
111  vtkGLTFExporter();
112  ~vtkGLTFExporter() override;
113 
114  void WriteData() override;
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:47
virtual void WriteData()=0
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
export a scene into GLTF 2.0 format.