VTK  9.2.6
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 =========================================================================*/
61 #ifndef vtkDEMReader_h
62 #define vtkDEMReader_h
63 
64 #include "vtkIOImageModule.h" // For export macro
65 #include "vtkImageAlgorithm.h"
66 
67 class VTKIOIMAGE_EXPORT vtkDEMReader : public vtkImageAlgorithm
68 {
69 public:
70  static vtkDEMReader* New();
72  void PrintSelf(ostream& os, vtkIndent indent) override;
73 
75 
81 
82  enum
83  {
84  REFERENCE_SEA_LEVEL = 0,
85  REFERENCE_ELEVATION_BOUNDS
86  };
87 
89 
94  vtkSetClampMacro(ElevationReference, int, REFERENCE_SEA_LEVEL, REFERENCE_ELEVATION_BOUNDS);
95  vtkGetMacro(ElevationReference, int);
96  void SetElevationReferenceToSeaLevel() { this->SetElevationReference(REFERENCE_SEA_LEVEL); }
98  {
99  this->SetElevationReference(REFERENCE_ELEVATION_BOUNDS);
100  }
101  const char* GetElevationReferenceAsString(void);
103 
105 
108  vtkGetStringMacro(MapLabel);
110 
112 
115  vtkGetMacro(DEMLevel, int);
117 
119 
122  vtkGetMacro(ElevationPattern, int);
124 
126 
129  vtkGetMacro(GroundSystem, int);
131 
133 
136  vtkGetMacro(GroundZone, int);
138 
140 
143  vtkGetVectorMacro(ProjectionParameters, float, 15);
145 
147 
151  vtkGetMacro(PlaneUnitOfMeasure, int);
153 
155 
159  vtkGetMacro(ElevationUnitOfMeasure, int);
161 
163 
167  vtkGetMacro(PolygonSize, int);
169 
171 
175  vtkGetVectorMacro(ElevationBounds, float, 2);
177 
179 
184  vtkGetMacro(LocalRotation, float);
186 
188 
191  vtkGetMacro(AccuracyCode, int);
193 
195 
199  vtkGetVectorMacro(SpatialResolution, float, 3);
201 
203 
206  vtkGetVectorMacro(ProfileDimension, int, 2);
208 
215 
216 protected:
218  ~vtkDEMReader() override;
219 
223  int WholeExtent[6];
224  char* FileName;
225  char MapLabel[145];
226  int DEMLevel;
230  float ProjectionParameters[15];
234  float GroundCoords[4][2];
235  float ElevationBounds[2];
238  float SpatialResolution[3];
239  int ProfileDimension[2];
242 
243  void ComputeExtentOriginAndSpacing(int extent[6], double origin[6], double spacing[6]);
246  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
247  vtkInformationVector* outputVector) override;
248 
249 private:
250  vtkDEMReader(const vtkDEMReader&) = delete;
251  void operator=(const vtkDEMReader&) = delete;
252 };
253 
254 #endif
read a digital elevation model (DEM) file
Definition: vtkDEMReader.h:68
float LocalRotation
Definition: vtkDEMReader.h:236
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called in response to a REQUEST_DATA request from the executive.
void ComputeExtentOriginAndSpacing(int extent[6], double origin[6], double spacing[6])
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Reads the DEM Type A record to compute the extent, origin and spacing of the image data.
void SetElevationReferenceToElevationBounds()
Specify the elevation origin to use.
Definition: vtkDEMReader.h:97
int PlaneUnitOfMeasure
Definition: vtkDEMReader.h:231
static vtkDEMReader * New()
const char * GetElevationReferenceAsString(void)
Specify the elevation origin to use.
int ReadTypeARecord()
vtkGetFilePathMacro(FileName)
Specify file name of Digital Elevation Model (DEM) file.
int ProfileSeekOffset
Definition: vtkDEMReader.h:240
int ElevationUnitOfMeasure
Definition: vtkDEMReader.h:232
vtkSetFilePathMacro(FileName)
Specify file name of Digital Elevation Model (DEM) file.
~vtkDEMReader() override
int ElevationReference
Definition: vtkDEMReader.h:241
char * FileName
Definition: vtkDEMReader.h:224
int ReadProfiles(vtkImageData *data)
int ElevationPattern
Definition: vtkDEMReader.h:227
void SetElevationReferenceToSeaLevel()
Specify the elevation origin to use.
Definition: vtkDEMReader.h:96
vtkTimeStamp ReadHeaderTime
Definition: vtkDEMReader.h:220
Generic algorithm superclass for image algs.
topologically and geometrically regular array of data
Definition: vtkImageData.h:163
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
record modification and/or execution time
Definition: vtkTimeStamp.h:55
@ extent
Definition: vtkX3D.h:351
@ spacing
Definition: vtkX3D.h:487
@ data
Definition: vtkX3D.h:321