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 =========================================================================*/
26 #ifndef vtkGeoJSONReader_h
27 #define vtkGeoJSONReader_h
28 
29 // VTK Includes
30 #include "vtkIOGeoJSONModule.h" // For export macro
31 #include "vtkPolyDataAlgorithm.h"
32 
33 class vtkPolyData;
34 
35 class VTKIOGEOJSON_EXPORT vtkGeoJSONReader: public vtkPolyDataAlgorithm
36 {
37 public:
38  static vtkGeoJSONReader* New();
40  virtual void PrintSelf(ostream &os, vtkIndent indent) override;
41 
43 
46  vtkSetStringMacro(FileName);
47  vtkGetStringMacro(FileName);
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 
106 protected:
108  virtual ~vtkGeoJSONReader();
109 
111 
114  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
115  vtkInformationVector* outputVector) override;
116  char *FileName;
117  char *StringInput;
123 
124 private:
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 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:85
char * SerializedPropertiesArrayName
Core implementation of the.
A atomic type representing the union of many types.
Definition: vtkVariant.h:71
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:39
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.