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
35VTK_ABI_NAMESPACE_BEGIN
36class VTKIOIMAGE_EXPORT vtkDEMReader : public vtkImageAlgorithm
37{
38public:
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
185protected:
187 ~vtkDEMReader() override;
188
192 int WholeExtent[6];
193 char* FileName;
194 char MapLabel[145];
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]);
216 vtkInformationVector* outputVector) override;
217
218private:
219 vtkDEMReader(const vtkDEMReader&) = delete;
220 void operator=(const vtkDEMReader&) = delete;
221};
222
223VTK_ABI_NAMESPACE_END
224#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:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
record modification and/or execution time