VTK  9.3.1
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
19 #include "vtkPolyDataAlgorithm.h"
20 
21 VTK_ABI_NAMESPACE_BEGIN
22 class vtkPolyData;
23 
24 class VTKIOGEOJSON_EXPORT vtkGeoJSONReader : public vtkPolyDataAlgorithm
25 {
26 public:
27  static vtkGeoJSONReader* New();
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
32 
35  vtkSetFilePathMacro(FileName);
36  vtkGetFilePathMacro(FileName);
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 
95 protected:
97  ~vtkGeoJSONReader() override;
98 
100 
103  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
104  vtkInformationVector* outputVector) override;
105  char* FileName;
106  char* StringInput;
112 
113 private:
114  class GeoJSONReaderInternal;
115  GeoJSONReaderInternal* Internal;
116 
117  vtkGeoJSONReader(const vtkGeoJSONReader&) = delete;
118  void operator=(const vtkGeoJSONReader&) = delete;
119 };
120 
121 VTK_ABI_NAMESPACE_END
122 #endif // vtkGeoJSONReader_h
Convert Geo JSON format to vtkPolyData.
bool StringInputMode
Core implementation of the.
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
char * FileName
Core implementation of the.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
char * SerializedPropertiesArrayName
Core implementation of the.
A type representing the union of many types.
Definition: vtkVariant.h:52
static vtkPolyDataAlgorithm * New()
bool OutlinePolygons
Core implementation of the.
Superclass for algorithms that produce only polydata as output.
bool TriangulatePolygons
Core implementation of the.
a simple class to control print indentation
Definition: vtkIndent.h:28
char * StringInput
Core implementation of the.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.