VTK  9.7.20260709
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
137
138protected:
141
143
144 char* FileName;
145 int LOD;
150
151private:
152 vtkCityGMLReader(const vtkCityGMLReader&) = delete;
153 void operator=(const vtkCityGMLReader&) = delete;
154
159
160 class Implementation;
161 Implementation* Impl;
162};
163
164VTK_ABI_NAMESPACE_END
165#endif
vtkSetFilePathMacro(FileName)
Specify file name of the CityGML data file to read.
void SetStream(vtkResourceStream *stream)
Specify stream to read from When both Stream and Filename are set, stream is used.
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.
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.
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.
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:318
#define VTK_FILEPATH