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 =========================================================================*/
25 #ifndef vtkGeoJSONReader_h
26 #define vtkGeoJSONReader_h
27 
28 // VTK Includes
29 #include "vtkIOGeoJSONModule.h" // For export macro
30 #include "vtkPolyDataAlgorithm.h"
31 
32 class vtkPolyData;
33 
34 class VTKIOGEOJSON_EXPORT vtkGeoJSONReader: public vtkPolyDataAlgorithm
35 {
36 public:
37  static vtkGeoJSONReader* New();
39  virtual void PrintSelf(ostream &os, vtkIndent indent);
40 
42 
43  vtkSetStringMacro(FileName);
44  vtkGetStringMacro(FileName);
46 
48 
50  vtkSetStringMacro(StringInput);
51  vtkGetStringMacro(StringInput);
53 
55 
57  vtkSetMacro(StringInputMode, bool);
58  vtkGetMacro(StringInputMode, bool);
59  vtkBooleanMacro(StringInputMode, bool);
61 
63 
67  vtkSetMacro(TriangulatePolygons, bool);
68  vtkGetMacro(TriangulatePolygons, bool);
69  vtkBooleanMacro(TriangulatePolygons, bool);
71 
73 
76  vtkSetMacro(OutlinePolygons, bool);
77  vtkGetMacro(OutlinePolygons, bool);
78  vtkBooleanMacro(OutlinePolygons, bool);
80 
82 
84  vtkSetStringMacro(SerializedPropertiesArrayName);
85  vtkGetStringMacro(SerializedPropertiesArrayName);
87 
90  void AddFeatureProperty(const char *name, vtkVariant& typeAndDefaultValue);
91 
92 protected:
94  virtual ~vtkGeoJSONReader();
95 
97 
98  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
99  vtkInformationVector* outputVector);
100  char *FileName;
101  char *StringInput;
107 
108 private:
109  class GeoJSONReaderInternal;
110  GeoJSONReaderInternal *Internal;
111 
112  vtkGeoJSONReader(const vtkGeoJSONReader&); // Not implemented
113  void operator=(const vtkGeoJSONReader&); // Not implemented
114 };
115 
116 #endif // vtkGeoJSONReader_h
Convert Geo JSON format to vtkPolyData.
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
char * SerializedPropertiesArrayName
A atomic type representing the union of many types.
Definition: vtkVariant.h:78
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.