VTK  9.6.20260209
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
53VTK_ABI_NAMESPACE_BEGIN
55class VTKIOCITYGML_EXPORT vtkCityGMLReader : public vtkMultiBlockDataSetAlgorithm
56{
57public:
60 void PrintSelf(ostream& os, vtkIndent indent) override;
61
63
69
71
76 static bool CanReadFile(VTK_FILEPATH const char* name);
77 static bool CanReadFile(vtkResourceStream* stream);
79
81
88
90
94 vtkSetClampMacro(LOD, int, 0, 4);
95 vtkGetMacro(LOD, int);
97
99
103 vtkSetMacro(UseTransparencyAsOpacity, int);
104 vtkGetMacro(UseTransparencyAsOpacity, int);
105 vtkBooleanMacro(UseTransparencyAsOpacity, int);
107
109
117 vtkSetMacro(NumberOfBuildings, int);
118 vtkGetMacro(NumberOfBuildings, int);
120
122
127 vtkSetMacro(BeginBuildingIndex, int);
128 vtkGetMacro(BeginBuildingIndex, int);
129 vtkSetMacro(EndBuildingIndex, int);
130 vtkGetMacro(EndBuildingIndex, int);
132
134
139 VTK_DEPRECATED_IN_9_6_0("Use vtkPolyDataMaterial::SetField() instead.")
140 static void SetField(vtkDataObject* obj, const char* name, const char* value);
141 VTK_DEPRECATED_IN_9_6_0("Use vtkPolyDataMaterial::SetField() instead.")
142 static void SetField(
143 vtkDataObject* obj, const char* name, double* value, vtkIdType numberOfComponents);
145
150
151protected:
153 ~vtkCityGMLReader() override;
154
156
157 char* FileName;
158 int LOD;
163
164private:
165 vtkCityGMLReader(const vtkCityGMLReader&) = delete;
166 void operator=(const vtkCityGMLReader&) = delete;
167
172
173 class Implementation;
174 Implementation* Impl;
175};
176
177VTK_ABI_NAMESPACE_END
178#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 vtkCityGMLReader * New()
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.
static bool CanReadFile(vtkResourceStream *stream)
Return true if, after a quick check of file header, it looks like the provided file or stream can be ...
vtkGetFilePathMacro(FileName)
Specify file name of the CityGML data file to read.
static bool CanReadFile(const char *name)
Return true if, after a quick check of file header, it looks like the provided file or stream can be ...
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.
#define VTK_DEPRECATED_IN_9_6_0(reason)
int vtkIdType
Definition vtkType.h:354
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:309
#define VTK_FILEPATH