VTK  9.3.20240328
vtkDEMReader.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
49 #ifndef vtkDEMReader_h
50 #define vtkDEMReader_h
51 
52 #include "vtkIOImageModule.h" // For export macro
53 #include "vtkImageAlgorithm.h"
54 
55 VTK_ABI_NAMESPACE_BEGIN
56 class VTKIOIMAGE_EXPORT vtkDEMReader : public vtkImageAlgorithm
57 {
58 public:
59  static vtkDEMReader* New();
61  void PrintSelf(ostream& os, vtkIndent indent) override;
62 
64 
70 
71  enum
72  {
73  REFERENCE_SEA_LEVEL = 0,
74  REFERENCE_ELEVATION_BOUNDS
75  };
76 
78 
83  vtkSetClampMacro(ElevationReference, int, REFERENCE_SEA_LEVEL, REFERENCE_ELEVATION_BOUNDS);
84  vtkGetMacro(ElevationReference, int);
85  void SetElevationReferenceToSeaLevel() { this->SetElevationReference(REFERENCE_SEA_LEVEL); }
87  {
88  this->SetElevationReference(REFERENCE_ELEVATION_BOUNDS);
89  }
92 
94 
97  vtkGetStringMacro(MapLabel);
99 
101 
104  vtkGetMacro(DEMLevel, int);
106 
108 
111  vtkGetMacro(ElevationPattern, int);
113 
115 
118  vtkGetMacro(GroundSystem, int);
120 
122 
125  vtkGetMacro(GroundZone, int);
127 
129 
132  vtkGetVectorMacro(ProjectionParameters, float, 15);
134 
136 
140  vtkGetMacro(PlaneUnitOfMeasure, int);
142 
144 
148  vtkGetMacro(ElevationUnitOfMeasure, int);
150 
152 
156  vtkGetMacro(PolygonSize, int);
158 
160 
164  vtkGetVectorMacro(ElevationBounds, float, 2);
166 
168 
173  vtkGetMacro(LocalRotation, float);
175 
177 
180  vtkGetMacro(AccuracyCode, int);
182 
184 
188  vtkGetVectorMacro(SpatialResolution, float, 3);
190 
192 
195  vtkGetVectorMacro(ProfileDimension, int, 2);
197 
204 
205 protected:
207  ~vtkDEMReader() override;
208 
212  int WholeExtent[6];
213  char* FileName;
214  char MapLabel[145];
215  int DEMLevel;
219  float ProjectionParameters[15];
223  float GroundCoords[4][2];
224  float ElevationBounds[2];
227  float SpatialResolution[3];
228  int ProfileDimension[2];
231 
232  void ComputeExtentOriginAndSpacing(int extent[6], double origin[3], double spacing[3]);
235  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
236  vtkInformationVector* outputVector) override;
237 
238 private:
239  vtkDEMReader(const vtkDEMReader&) = delete;
240  void operator=(const vtkDEMReader&) = delete;
241 };
242 
243 VTK_ABI_NAMESPACE_END
244 #endif
read a digital elevation model (DEM) file
Definition: vtkDEMReader.h:57
float LocalRotation
Definition: vtkDEMReader.h:225
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const char * GetElevationReferenceAsString()
Specify the elevation origin to use.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called in response to a REQUEST_DATA request from the executive.
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:86
int PlaneUnitOfMeasure
Definition: vtkDEMReader.h:220
static vtkDEMReader * New()
int ReadTypeARecord()
vtkGetFilePathMacro(FileName)
Specify file name of Digital Elevation Model (DEM) file.
int ProfileSeekOffset
Definition: vtkDEMReader.h:229
int ElevationUnitOfMeasure
Definition: vtkDEMReader.h:221
vtkSetFilePathMacro(FileName)
Specify file name of Digital Elevation Model (DEM) file.
~vtkDEMReader() override
int ElevationReference
Definition: vtkDEMReader.h:230
char * FileName
Definition: vtkDEMReader.h:213
int ReadProfiles(vtkImageData *data)
void ComputeExtentOriginAndSpacing(int extent[6], double origin[3], double spacing[3])
int ElevationPattern
Definition: vtkDEMReader.h:216
void SetElevationReferenceToSeaLevel()
Specify the elevation origin to use.
Definition: vtkDEMReader.h:85
vtkTimeStamp ReadHeaderTime
Definition: vtkDEMReader.h:209
Generic algorithm superclass for image algs.
topologically and geometrically regular array of data
Definition: vtkImageData.h:155
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
record modification and/or execution time
Definition: vtkTimeStamp.h:44
@ extent
Definition: vtkX3D.h:345
@ spacing
Definition: vtkX3D.h:481
@ data
Definition: vtkX3D.h:315