VTK  9.0.1
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
28 #include "vtkPolyDataAlgorithm.h"
29 
30 class vtkPolyData;
31 
32 class VTKIOGEOJSON_EXPORT vtkGeoJSONReader : public vtkPolyDataAlgorithm
33 {
34 public:
35  static vtkGeoJSONReader* New();
37  virtual void PrintSelf(ostream& os, vtkIndent indent) override;
38 
40 
43  vtkSetStringMacro(FileName);
44  vtkGetStringMacro(FileName);
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 
103 protected:
105  ~vtkGeoJSONReader() override;
106 
108 
111  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
112  vtkInformationVector* outputVector) override;
113  char* FileName;
114  char* StringInput;
120 
121 private:
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.
char * SerializedPropertiesArrayName
virtual void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkGeoJSONReader * New()
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
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
a simple class to control print indentation
Definition: vtkIndent.h:34
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:85
A atomic type representing the union of many types.
Definition: vtkVariant.h:66
@ name
Definition: vtkX3D.h:225