VTK  9.2.6
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=========================================================================*/
26#ifndef vtkGeoJSONReader_h
27#define vtkGeoJSONReader_h
28
29// VTK Includes
30#include "vtkIOGeoJSONModule.h" // For export macro
32
33class vtkPolyData;
34
35class VTKIOGEOJSON_EXPORT vtkGeoJSONReader : public vtkPolyDataAlgorithm
36{
37public:
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
43
49
51
54 vtkSetStringMacro(StringInput);
55 vtkGetStringMacro(StringInput);
57
59
63 vtkSetMacro(StringInputMode, bool);
64 vtkGetMacro(StringInputMode, bool);
65 vtkBooleanMacro(StringInputMode, bool);
67
69
75 vtkSetMacro(TriangulatePolygons, bool);
76 vtkGetMacro(TriangulatePolygons, bool);
77 vtkBooleanMacro(TriangulatePolygons, bool);
79
81
86 vtkSetMacro(OutlinePolygons, bool);
87 vtkGetMacro(OutlinePolygons, bool);
88 vtkBooleanMacro(OutlinePolygons, bool);
90
92
96 vtkSetStringMacro(SerializedPropertiesArrayName);
97 vtkGetStringMacro(SerializedPropertiesArrayName);
99
104 void AddFeatureProperty(const char* name, vtkVariant& typeAndDefaultValue);
105
106protected:
109
111
115 vtkInformationVector* outputVector) override;
116 char* FileName;
123
124private:
125 class GeoJSONReaderInternal;
126 GeoJSONReaderInternal* Internal;
127
128 vtkGeoJSONReader(const vtkGeoJSONReader&) = delete;
129 void operator=(const vtkGeoJSONReader&) = delete;
130};
131
132#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:40
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:91
A atomic type representing the union of many types.
Definition: vtkVariant.h:70