VTK  9.2.6
vtkCesium3DTilesWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCesium3DTilesWriter.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 =========================================================================*/
29 #ifndef vtkCesium3DTilesWriter_h
30 #define vtkCesium3DTilesWriter_h
31 
32 #include "vtkIOCesium3DTilesModule.h" // For export macro
33 #include "vtkWriter.h"
34 
35 class VTKIOCESIUM3DTILES_EXPORT vtkCesium3DTilesWriter : public vtkWriter
36 {
37 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
42  enum InputType
43  {
46  Mesh
47  };
48 
50 
53  vtkSetFilePathMacro(DirectoryName);
54  vtkGetFilePathMacro(DirectoryName);
56 
58 
62  vtkSetFilePathMacro(TextureBaseDirectory);
63  vtkGetFilePathMacro(TextureBaseDirectory);
65 
67 
71  vtkSetVector3Macro(Offset, double);
72  vtkGetVector3Macro(Offset, double);
74 
76 
80  vtkSetMacro(SaveTextures, bool);
81  vtkGetMacro(SaveTextures, bool);
82  vtkBooleanMacro(SaveTextures, bool);
83  //@
84 
86 
91  vtkSetMacro(SaveTiles, bool);
92  vtkGetMacro(SaveTiles, bool);
93  vtkBooleanMacro(SaveTiles, bool);
94  //@
95 
97 
105  vtkSetMacro(MergeTilePolyData, bool);
106  vtkGetMacro(MergeTilePolyData, bool);
107  vtkBooleanMacro(MergeTilePolyData, bool);
108  //@
109 
111 
119  vtkSetMacro(ContentGLTF, bool);
120  vtkGetMacro(ContentGLTF, bool);
121  vtkBooleanMacro(ContentGLTF, bool);
122  //@
123 
125 
128  vtkSetMacro(InputType, int);
129  vtkGetMacro(InputType, int);
130  //@
131 
133 
137  vtkSetMacro(NumberOfFeaturesPerTile, int);
138  vtkGetMacro(NumberOfFeaturesPerTile, int);
139  //@
140 
142 
147  vtkSetStringMacro(CRS);
148  vtkGetStringMacro(CRS);
150 
151 protected:
154 
155  // Only accepts vtkMultiBlockData
157 
158  // Implementation of Write()
159  void WriteData() override;
160 
163  double Offset[3];
167  bool SaveTiles;
170  char* CRS;
171 
172 private:
174  void operator=(const vtkCesium3DTilesWriter&) = delete;
175 };
176 
177 #endif // vtkCesium3DTilesWriter_h
Writes a dataset into 3D Tiles format.
vtkSetFilePathMacro(DirectoryName)
Accessor for name of the directory where Cesium3DTiles data is written.
static vtkCesium3DTilesWriter * New()
vtkGetFilePathMacro(TextureBaseDirectory)
Path used to prefix all texture paths stored as fields in the input data.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkGetFilePathMacro(DirectoryName)
Accessor for name of the directory where Cesium3DTiles data is written.
void WriteData() override
vtkSetFilePathMacro(TextureBaseDirectory)
Path used to prefix all texture paths stored as fields in the input data.
~vtkCesium3DTilesWriter() override
a simple class to control print indentation
Definition: vtkIndent.h:119
Store vtkAlgorithm input/output information.
abstract class to write data to file(s)
Definition: vtkWriter.h:46
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453