VTK  9.3.20240425
vtkGeoJSONReader.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
14#ifndef vtkGeoJSONReader_h
15#define vtkGeoJSONReader_h
16
17// VTK Includes
18#include "vtkIOGeoJSONModule.h" // For export macro
20
21VTK_ABI_NAMESPACE_BEGIN
22class vtkPolyData;
23
24class VTKIOGEOJSON_EXPORT vtkGeoJSONReader : public vtkPolyDataAlgorithm
25{
26public:
29 void PrintSelf(ostream& os, vtkIndent indent) override;
30
32
38
40
43 vtkSetStringMacro(StringInput);
44 vtkGetStringMacro(StringInput);
46
48
52 vtkSetMacro(StringInputMode, bool);
53 vtkGetMacro(StringInputMode, bool);
54 vtkBooleanMacro(StringInputMode, bool);
56
58
64 vtkSetMacro(TriangulatePolygons, bool);
65 vtkGetMacro(TriangulatePolygons, bool);
66 vtkBooleanMacro(TriangulatePolygons, bool);
68
70
75 vtkSetMacro(OutlinePolygons, bool);
76 vtkGetMacro(OutlinePolygons, bool);
77 vtkBooleanMacro(OutlinePolygons, bool);
79
81
85 vtkSetStringMacro(SerializedPropertiesArrayName);
86 vtkGetStringMacro(SerializedPropertiesArrayName);
88
93 void AddFeatureProperty(const char* name, vtkVariant& typeAndDefaultValue);
94
95protected:
98
100
104 vtkInformationVector* outputVector) override;
105 char* FileName;
112
113private:
114 class GeoJSONReaderInternal;
115 GeoJSONReaderInternal* Internal;
116
117 vtkGeoJSONReader(const vtkGeoJSONReader&) = delete;
118 void operator=(const vtkGeoJSONReader&) = delete;
119};
120
121VTK_ABI_NAMESPACE_END
122#endif // vtkGeoJSONReader_h
Convert Geo JSON format to vtkPolyData.
bool OutlinePolygons
Core implementation of the.
bool TriangulatePolygons
Core implementation of the.
char * StringInput
Core implementation of the.
char * SerializedPropertiesArrayName
Core implementation of the.
static vtkGeoJSONReader * New()
vtkGetFilePathMacro(FileName)
Accessor for name of the file that will be opened on WriteData.
char * FileName
Core implementation of the.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Core implementation of the.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool StringInputMode
Core implementation of the.
void AddFeatureProperty(const char *name, vtkVariant &typeAndDefaultValue)
Specify feature property to read in with geometry objects Note that defaultValue specifies both type ...
~vtkGeoJSONReader() override
vtkSetFilePathMacro(FileName)
Accessor for name of the file that will be opened on WriteData.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
A type representing the union of many types.
Definition vtkVariant.h:162