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:
38  static vtkCesium3DTilesWriter* New();
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:
153  ~vtkCesium3DTilesWriter() override;
154 
155  // Only accepts vtkMultiBlockData
156  int FillInputPortInformation(int port, vtkInformation* info) override;
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
Store vtkAlgorithm input/output information.
abstract class to write data to file(s)
Definition: vtkWriter.h:45
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
static vtkAlgorithm * New()
virtual void WriteData()=0
Writes a dataset into 3D Tiles format.