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
20 #ifndef vtkDEMReader_h
21 #define vtkDEMReader_h
22 
23 #include "vtkIOImageModule.h" // For export macro
24 #include "vtkImageAlgorithm.h"
25 
26 VTK_ABI_NAMESPACE_BEGIN
27 class VTKIOIMAGE_EXPORT vtkDEMReader : public vtkImageAlgorithm
28 {
29 public:
30  static vtkDEMReader* New();
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
35 
41 
42  enum
43  {
44  REFERENCE_SEA_LEVEL = 0,
45  REFERENCE_ELEVATION_BOUNDS
46  };
47 
49 
54  vtkSetClampMacro(ElevationReference, int, REFERENCE_SEA_LEVEL, REFERENCE_ELEVATION_BOUNDS);
55  vtkGetMacro(ElevationReference, int);
56  void SetElevationReferenceToSeaLevel() { this->SetElevationReference(REFERENCE_SEA_LEVEL); }
58  {
59  this->SetElevationReference(REFERENCE_ELEVATION_BOUNDS);
60  }
63 
65 
68  vtkGetStringMacro(MapLabel);
70 
72 
75  vtkGetMacro(DEMLevel, int);
77 
79 
82  vtkGetMacro(ElevationPattern, int);
84 
86 
89  vtkGetMacro(GroundSystem, int);
91 
93 
96  vtkGetMacro(GroundZone, int);
98 
100 
103  vtkGetVectorMacro(ProjectionParameters, float, 15);
105 
107 
111  vtkGetMacro(PlaneUnitOfMeasure, int);
113 
115 
119  vtkGetMacro(ElevationUnitOfMeasure, int);
121 
123 
127  vtkGetMacro(PolygonSize, int);
129 
131 
135  vtkGetVectorMacro(ElevationBounds, float, 2);
137 
139 
144  vtkGetMacro(LocalRotation, float);
146 
148 
151  vtkGetMacro(AccuracyCode, int);
153 
155 
159  vtkGetVectorMacro(SpatialResolution, float, 3);
161 
163 
166  vtkGetVectorMacro(ProfileDimension, int, 2);
168 
175 
176 protected:
178  ~vtkDEMReader() override;
179 
183  int WholeExtent[6];
184  char* FileName;
185  char MapLabel[145];
186  int DEMLevel;
190  float ProjectionParameters[15];
194  float GroundCoords[4][2];
195  float ElevationBounds[2];
198  float SpatialResolution[3];
199  int ProfileDimension[2];
202 
203  void ComputeExtentOriginAndSpacing(int extent[6], double origin[3], double spacing[3]);
206  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
207  vtkInformationVector* outputVector) override;
208 
209 private:
210  vtkDEMReader(const vtkDEMReader&) = delete;
211  void operator=(const vtkDEMReader&) = delete;
212 };
213 
214 VTK_ABI_NAMESPACE_END
215 #endif
read a digital elevation model (DEM) file
Definition: vtkDEMReader.h:28
float LocalRotation
Definition: vtkDEMReader.h:196
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:57
int PlaneUnitOfMeasure
Definition: vtkDEMReader.h:191
static vtkDEMReader * New()
int ReadTypeARecord()
vtkGetFilePathMacro(FileName)
Specify file name of Digital Elevation Model (DEM) file.
int ProfileSeekOffset
Definition: vtkDEMReader.h:200
int ElevationUnitOfMeasure
Definition: vtkDEMReader.h:192
vtkSetFilePathMacro(FileName)
Specify file name of Digital Elevation Model (DEM) file.
~vtkDEMReader() override
int ElevationReference
Definition: vtkDEMReader.h:201
char * FileName
Definition: vtkDEMReader.h:184
int ReadProfiles(vtkImageData *data)
void ComputeExtentOriginAndSpacing(int extent[6], double origin[3], double spacing[3])
int ElevationPattern
Definition: vtkDEMReader.h:187
void SetElevationReferenceToSeaLevel()
Specify the elevation origin to use.
Definition: vtkDEMReader.h:56
vtkTimeStamp ReadHeaderTime
Definition: vtkDEMReader.h:180
Generic algorithm superclass for image algs.
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
a simple class to control print indentation
Definition: vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
record modification and/or execution time
Definition: vtkTimeStamp.h:25
@ extent
Definition: vtkX3D.h:345
@ spacing
Definition: vtkX3D.h:481
@ data
Definition: vtkX3D.h:315