VTK  9.3.0
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
29 #ifndef vtkDEMReader_h
30 #define vtkDEMReader_h
31 
32 #include "vtkIOImageModule.h" // For export macro
33 #include "vtkImageAlgorithm.h"
34 
35 VTK_ABI_NAMESPACE_BEGIN
36 class VTKIOIMAGE_EXPORT vtkDEMReader : public vtkImageAlgorithm
37 {
38 public:
39  static vtkDEMReader* New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
50 
51  enum
52  {
53  REFERENCE_SEA_LEVEL = 0,
54  REFERENCE_ELEVATION_BOUNDS
55  };
56 
58 
63  vtkSetClampMacro(ElevationReference, int, REFERENCE_SEA_LEVEL, REFERENCE_ELEVATION_BOUNDS);
64  vtkGetMacro(ElevationReference, int);
65  void SetElevationReferenceToSeaLevel() { this->SetElevationReference(REFERENCE_SEA_LEVEL); }
67  {
68  this->SetElevationReference(REFERENCE_ELEVATION_BOUNDS);
69  }
72 
74 
77  vtkGetStringMacro(MapLabel);
79 
81 
84  vtkGetMacro(DEMLevel, int);
86 
88 
91  vtkGetMacro(ElevationPattern, int);
93 
95 
98  vtkGetMacro(GroundSystem, int);
100 
102 
105  vtkGetMacro(GroundZone, int);
107 
109 
112  vtkGetVectorMacro(ProjectionParameters, float, 15);
114 
116 
120  vtkGetMacro(PlaneUnitOfMeasure, int);
122 
124 
128  vtkGetMacro(ElevationUnitOfMeasure, int);
130 
132 
136  vtkGetMacro(PolygonSize, int);
138 
140 
144  vtkGetVectorMacro(ElevationBounds, float, 2);
146 
148 
153  vtkGetMacro(LocalRotation, float);
155 
157 
160  vtkGetMacro(AccuracyCode, int);
162 
164 
168  vtkGetVectorMacro(SpatialResolution, float, 3);
170 
172 
175  vtkGetVectorMacro(ProfileDimension, int, 2);
177 
184 
185 protected:
187  ~vtkDEMReader() override;
188 
192  int WholeExtent[6];
193  char* FileName;
194  char MapLabel[145];
195  int DEMLevel;
199  float ProjectionParameters[15];
203  float GroundCoords[4][2];
204  float ElevationBounds[2];
207  float SpatialResolution[3];
208  int ProfileDimension[2];
211 
212  void ComputeExtentOriginAndSpacing(int extent[6], double origin[3], double spacing[3]);
215  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
216  vtkInformationVector* outputVector) override;
217 
218 private:
219  vtkDEMReader(const vtkDEMReader&) = delete;
220  void operator=(const vtkDEMReader&) = delete;
221 };
222 
223 VTK_ABI_NAMESPACE_END
224 #endif
read a digital elevation model (DEM) file
Definition: vtkDEMReader.h:37
float LocalRotation
Definition: vtkDEMReader.h:205
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:66
int PlaneUnitOfMeasure
Definition: vtkDEMReader.h:200
static vtkDEMReader * New()
int ReadTypeARecord()
vtkGetFilePathMacro(FileName)
Specify file name of Digital Elevation Model (DEM) file.
int ProfileSeekOffset
Definition: vtkDEMReader.h:209
int ElevationUnitOfMeasure
Definition: vtkDEMReader.h:201
vtkSetFilePathMacro(FileName)
Specify file name of Digital Elevation Model (DEM) file.
~vtkDEMReader() override
int ElevationReference
Definition: vtkDEMReader.h:210
char * FileName
Definition: vtkDEMReader.h:193
int ReadProfiles(vtkImageData *data)
void ComputeExtentOriginAndSpacing(int extent[6], double origin[3], double spacing[3])
int ElevationPattern
Definition: vtkDEMReader.h:196
void SetElevationReferenceToSeaLevel()
Specify the elevation origin to use.
Definition: vtkDEMReader.h:65
vtkTimeStamp ReadHeaderTime
Definition: vtkDEMReader.h:189
Generic algorithm superclass for image algs.
topologically and geometrically regular array of data
Definition: vtkImageData.h:52
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
record modification and/or execution time
Definition: vtkTimeStamp.h:34
@ extent
Definition: vtkX3D.h:345
@ spacing
Definition: vtkX3D.h:481
@ data
Definition: vtkX3D.h:315