VTK  9.1.0
vtkGeoJSONReader.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkGeoJSONReader.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
23#ifndef vtkGeoJSONReader_h
24#define vtkGeoJSONReader_h
25
26// VTK Includes
27#include "vtkIOGeoJSONModule.h" // For export macro
29
30class vtkPolyData;
31
32class VTKIOGEOJSON_EXPORT vtkGeoJSONReader : public vtkPolyDataAlgorithm
33{
34public:
37 void PrintSelf(ostream& os, vtkIndent indent) override;
38
40
46
48
51 vtkSetStringMacro(StringInput);
52 vtkGetStringMacro(StringInput);
54
56
60 vtkSetMacro(StringInputMode, bool);
61 vtkGetMacro(StringInputMode, bool);
62 vtkBooleanMacro(StringInputMode, bool);
64
66
72 vtkSetMacro(TriangulatePolygons, bool);
73 vtkGetMacro(TriangulatePolygons, bool);
74 vtkBooleanMacro(TriangulatePolygons, bool);
76
78
83 vtkSetMacro(OutlinePolygons, bool);
84 vtkGetMacro(OutlinePolygons, bool);
85 vtkBooleanMacro(OutlinePolygons, bool);
87
89
93 vtkSetStringMacro(SerializedPropertiesArrayName);
94 vtkGetStringMacro(SerializedPropertiesArrayName);
96
101 void AddFeatureProperty(const char* name, vtkVariant& typeAndDefaultValue);
102
103protected:
106
108
112 vtkInformationVector* outputVector) override;
113 char* FileName;
120
121private:
122 class GeoJSONReaderInternal;
123 GeoJSONReaderInternal* Internal;
124
125 vtkGeoJSONReader(const vtkGeoJSONReader&) = delete;
126 void operator=(const vtkGeoJSONReader&) = delete;
127};
128
129#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:113
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:195
A atomic type representing the union of many types.
Definition: vtkVariant.h:145