VTK  9.2.6
vtkGLTFWriter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkGLTFWriter.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=========================================================================*/
39#ifndef vtkGLTFWriter_h
40#define vtkGLTFWriter_h
41
42#include "vtkIOGeometryModule.h" // For export macro
43#include "vtkWriter.h"
44
45#include <string> // for std::string
46
48class VTKIOGEOMETRY_EXPORT vtkGLTFWriter : public vtkWriter
49{
50public:
51 static vtkGLTFWriter* New();
52 vtkTypeMacro(vtkGLTFWriter, vtkWriter);
53 void PrintSelf(ostream& os, vtkIndent indent) override;
54
56
59 vtkSetStringMacro(FileName);
60 vtkGetStringMacro(FileName);
62
64
67 vtkSetStringMacro(TextureBaseDirectory);
68 vtkGetStringMacro(TextureBaseDirectory);
70
72
76 vtkGetMacro(InlineData, bool);
77 vtkSetMacro(InlineData, bool);
78 vtkBooleanMacro(InlineData, bool);
80
82
88 vtkGetMacro(SaveNormal, bool);
89 vtkSetMacro(SaveNormal, bool);
90 vtkBooleanMacro(SaveNormal, bool);
92
94
104 vtkGetMacro(SaveBatchId, bool);
105 vtkSetMacro(SaveBatchId, bool);
106 vtkBooleanMacro(SaveBatchId, bool);
108
110
118 vtkGetMacro(SaveTextures, bool);
119 vtkSetMacro(SaveTextures, bool);
120 vtkBooleanMacro(SaveTextures, bool);
122
124
133 vtkGetMacro(SaveActivePointColor, bool);
134 vtkSetMacro(SaveActivePointColor, bool);
135 vtkBooleanMacro(SaveActivePointColor, bool);
137
141 std::string WriteToString();
142
146 void WriteToStream(ostream& out, vtkDataObject* in);
147
148protected:
150 ~vtkGLTFWriter() override;
151
152 void WriteData() override;
153 int FillInputPortInformation(int port, vtkInformation* info) override;
155
156 char* FileName;
163
164private:
165 vtkGLTFWriter(const vtkGLTFWriter&) = delete;
166 void operator=(const vtkGLTFWriter&) = delete;
167};
168
169#endif
general representation of visualization data
export a scene into GLTF 2.0 format.
~vtkGLTFWriter() override
std::string WriteToString()
Write the result to a string instead of a file.
static vtkGLTFWriter * New()
void WriteToStreamMultiBlock(ostream &out, vtkMultiBlockDataSet *in)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void WriteToStream(ostream &out, vtkDataObject *in)
Write the result to a provided ostream.
bool SaveActivePointColor
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void WriteData() override
char * TextureBaseDirectory
a simple class to control print indentation
Definition vtkIndent.h:34
Store vtkAlgorithm input/output information.
Composite dataset that organizes datasets into blocks.
abstract class to write data to file(s)
Definition vtkWriter.h:46