VTK  9.5.20251213
vtkCityGMLReader.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
11
12#ifndef vtkCityGMLReader_h
13#define vtkCityGMLReader_h
14
15#include "vtkIOCityGMLModule.h" // For export macro
17
49VTK_ABI_NAMESPACE_BEGIN
51class VTKIOCITYGML_EXPORT vtkCityGMLReader : public vtkMultiBlockDataSetAlgorithm
52{
53public:
56 void PrintSelf(ostream& os, vtkIndent indent) override;
57
59
65
67
74
76
80 vtkSetClampMacro(LOD, int, 0, 4);
81 vtkGetMacro(LOD, int);
83
85
89 vtkSetMacro(UseTransparencyAsOpacity, int);
90 vtkGetMacro(UseTransparencyAsOpacity, int);
91 vtkBooleanMacro(UseTransparencyAsOpacity, int);
93
95
103 vtkSetMacro(NumberOfBuildings, int);
104 vtkGetMacro(NumberOfBuildings, int);
106
108
113 vtkSetMacro(BeginBuildingIndex, int);
114 vtkGetMacro(BeginBuildingIndex, int);
115 vtkSetMacro(EndBuildingIndex, int);
116 vtkGetMacro(EndBuildingIndex, int);
118
120
125 static void SetField(vtkDataObject* obj, const char* name, const char* value);
126 static void SetField(
127 vtkDataObject* obj, const char* name, double* value, vtkIdType numberOfComponents);
129
134
135protected:
138
140
141 char* FileName;
142 int LOD;
147
148private:
149 vtkCityGMLReader(const vtkCityGMLReader&) = delete;
150 void operator=(const vtkCityGMLReader&) = delete;
151
156
157 class Implementation;
158 Implementation* Impl;
159};
160
161VTK_ABI_NAMESPACE_END
162#endif
vtkSetFilePathMacro(FileName)
Specify file name of the CityGML data file to read.
static void SetField(vtkDataObject *obj, const char *name, const char *value)
Helper functions for setting field arrays.
void SetStream(vtkResourceStream *stream)
Specify stream to read from When both Stream and Filename are set, stream is used.
static void SetField(vtkDataObject *obj, const char *name, double *value, vtkIdType numberOfComponents)
Helper functions for setting field arrays.
static vtkCityGMLReader * New()
~vtkCityGMLReader() override
vtkResourceStream * GetStream()
Specify stream to read from When both Stream and Filename are set, stream is used.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGetFilePathMacro(FileName)
Specify file name of the CityGML data file to read.
vtkMTimeType GetMTime() override
Overridden to take into account mtime from the internal vtkResourceStream.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
general representation of visualization data
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Abstract class used for custom streams.
Hold a reference to a vtkObjectBase instance.
int vtkIdType
Definition vtkType.h:367
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:322