VTK  9.3.0
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 
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 OutlinePolygons
Core implementation of the.
bool TriangulatePolygons
Core implementation of the.
char * StringInput
Core implementation of the.
char * SerializedPropertiesArrayName
Core implementation of the.
vtkGetFilePathMacro(FileName)
Accessor for name of the file that will be opened on WriteData.
char * FileName
Core implementation of the.
static vtkGeoJSONReader * New()
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:29
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
Definition: vtkPolyData.h:80
A type representing the union of many types.
Definition: vtkVariant.h:53
@ name
Definition: vtkX3D.h:219