VTK
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  virtual ~vtkGeoJSONReader();
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.
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 atomic type representing the union of many types.
Definition: vtkVariant.h:65
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:33
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.