VTK
vtkDEMReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDEMReader.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 =========================================================================*/
35 #ifndef vtkDEMReader_h
36 #define vtkDEMReader_h
37 
38 #include "vtkIOImageModule.h" // For export macro
39 #include "vtkImageAlgorithm.h"
40 
41 class VTKIOIMAGE_EXPORT vtkDEMReader : public vtkImageAlgorithm
42 {
43 public:
44  static vtkDEMReader *New();
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
52  vtkSetStringMacro(FileName);
53  vtkGetStringMacro(FileName);
55 
56  enum {REFERENCE_SEA_LEVEL=0,REFERENCE_ELEVATION_BOUNDS};
57 
59 
64  vtkSetClampMacro(ElevationReference,int,REFERENCE_SEA_LEVEL,
65  REFERENCE_ELEVATION_BOUNDS);
66  vtkGetMacro(ElevationReference,int);
68  {this->SetElevationReference(REFERENCE_SEA_LEVEL);}
70  {this->SetElevationReference(REFERENCE_ELEVATION_BOUNDS);}
71  const char *GetElevationReferenceAsString(void);
73 
75 
78  vtkGetStringMacro(MapLabel);
80 
82 
85  vtkGetMacro(DEMLevel,int);
87 
89 
92  vtkGetMacro(ElevationPattern, int);
94 
96 
99  vtkGetMacro(GroundSystem, int);
101 
103 
106  vtkGetMacro(GroundZone, int);
108 
110 
113  vtkGetVectorMacro(ProjectionParameters,float,15);
115 
117 
121  vtkGetMacro(PlaneUnitOfMeasure, int);
123 
125 
129  vtkGetMacro(ElevationUnitOfMeasure, int);
131 
133 
137  vtkGetMacro(PolygonSize, int);
139 
141 
145  vtkGetVectorMacro(ElevationBounds,float,2);
147 
149 
154  vtkGetMacro(LocalRotation, float);
156 
158 
161  vtkGetMacro(AccuracyCode, int);
163 
165 
169  vtkGetVectorMacro(SpatialResolution,float,3);
171 
173 
176  vtkGetVectorMacro(ProfileDimension,int,2);
178 
185  vtkInformationVector *) override;
186 
187 protected:
188  vtkDEMReader();
189  ~vtkDEMReader() override;
190 
194  int WholeExtent[6];
195  char *FileName;
196  char MapLabel[145];
197  int DEMLevel;
201  float ProjectionParameters[15];
205  float GroundCoords[4][2];
206  float ElevationBounds[2];
209  float SpatialResolution[3];
210  int ProfileDimension[2];
213 
214  void ComputeExtentOriginAndSpacing (int extent[6],
215  double origin[6],
216  double spacing[6]);
217  int ReadTypeARecord ();
218  int ReadProfiles (vtkImageData *data);
219  int RequestData( vtkInformation* request,
220  vtkInformationVector** inputVector,
221  vtkInformationVector* outputVector) override;
222 
223 private:
224  vtkDEMReader(const vtkDEMReader&) = delete;
225  void operator=(const vtkDEMReader&) = delete;
226 };
227 
228 #endif
229 
Store vtkAlgorithm input/output information.
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkTimeStamp ReadHeaderTime
Definition: vtkDEMReader.h:191
int PlaneUnitOfMeasure
Definition: vtkDEMReader.h:202
char * FileName
Definition: vtkDEMReader.h:195
a simple class to control print indentation
Definition: vtkIndent.h:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
int ElevationPattern
Definition: vtkDEMReader.h:198
int ProfileSeekOffset
Definition: vtkDEMReader.h:211
void SetElevationReferenceToElevationBounds()
Specify the elevation origin to use.
Definition: vtkDEMReader.h:69
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
int ElevationUnitOfMeasure
Definition: vtkDEMReader.h:203
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
float LocalRotation
Definition: vtkDEMReader.h:207
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
read a digital elevation model (DEM) file
Definition: vtkDEMReader.h:41
void SetElevationReferenceToSeaLevel()
Specify the elevation origin to use.
Definition: vtkDEMReader.h:67
int ElevationReference
Definition: vtkDEMReader.h:212