VTK  9.4.20241218
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
55VTK_ABI_NAMESPACE_BEGIN
56class VTKIOIMAGE_EXPORT vtkDEMReader : public vtkImageAlgorithm
57{
58public:
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
205protected:
207 ~vtkDEMReader() override;
208
212 int WholeExtent[6];
213 char* FileName;
214 char MapLabel[145];
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]);
236 vtkInformationVector* outputVector) override;
237
238private:
239 vtkDEMReader(const vtkDEMReader&) = delete;
240 void operator=(const vtkDEMReader&) = delete;
241};
242
243VTK_ABI_NAMESPACE_END
244#endif
read a digital elevation model (DEM) file
const char * GetElevationReferenceAsString()
Specify the elevation origin to use.
float LocalRotation
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.
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.
static vtkDEMReader * New()
int ReadTypeARecord()
vtkGetFilePathMacro(FileName)
Specify file name of Digital Elevation Model (DEM) file.
int ElevationUnitOfMeasure
vtkSetFilePathMacro(FileName)
Specify file name of Digital Elevation Model (DEM) file.
~vtkDEMReader() override
int ReadProfiles(vtkImageData *data)
void ComputeExtentOriginAndSpacing(int extent[6], double origin[3], double spacing[3])
void SetElevationReferenceToSeaLevel()
Specify the elevation origin to use.
vtkTimeStamp ReadHeaderTime
Generic algorithm superclass for image algs.
topologically and geometrically regular array of data
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