VTK  9.2.6
vtkDEMReader.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkDEMReader.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
41#ifndef vtkDEMReader_h
42#define vtkDEMReader_h
43
44#include "vtkIOImageModule.h" // For export macro
45#include "vtkImageAlgorithm.h"
46
47class VTKIOIMAGE_EXPORT vtkDEMReader : public vtkImageAlgorithm
48{
49public:
50 static vtkDEMReader* New();
52 void PrintSelf(ostream& os, vtkIndent indent) override;
53
55
61
62 enum
63 {
64 REFERENCE_SEA_LEVEL = 0,
65 REFERENCE_ELEVATION_BOUNDS
66 };
67
69
74 vtkSetClampMacro(ElevationReference, int, REFERENCE_SEA_LEVEL, REFERENCE_ELEVATION_BOUNDS);
75 vtkGetMacro(ElevationReference, int);
76 void SetElevationReferenceToSeaLevel() { this->SetElevationReference(REFERENCE_SEA_LEVEL); }
78 {
79 this->SetElevationReference(REFERENCE_ELEVATION_BOUNDS);
80 }
83
85
88 vtkGetStringMacro(MapLabel);
90
92
95 vtkGetMacro(DEMLevel, int);
97
99
102 vtkGetMacro(ElevationPattern, int);
104
106
109 vtkGetMacro(GroundSystem, int);
111
113
116 vtkGetMacro(GroundZone, int);
118
120
123 vtkGetVectorMacro(ProjectionParameters, float, 15);
125
127
131 vtkGetMacro(PlaneUnitOfMeasure, int);
133
135
139 vtkGetMacro(ElevationUnitOfMeasure, int);
141
143
147 vtkGetMacro(PolygonSize, int);
149
151
155 vtkGetVectorMacro(ElevationBounds, float, 2);
157
159
164 vtkGetMacro(LocalRotation, float);
166
168
171 vtkGetMacro(AccuracyCode, int);
173
175
179 vtkGetVectorMacro(SpatialResolution, float, 3);
181
183
186 vtkGetVectorMacro(ProfileDimension, int, 2);
188
195
196protected:
198 ~vtkDEMReader() override;
199
203 int WholeExtent[6];
204 char* FileName;
205 char MapLabel[145];
210 float ProjectionParameters[15];
214 float GroundCoords[4][2];
215 float ElevationBounds[2];
218 float SpatialResolution[3];
219 int ProfileDimension[2];
222
223 void ComputeExtentOriginAndSpacing(int extent[6], double origin[6], double spacing[6]);
227 vtkInformationVector* outputVector) override;
228
229private:
230 vtkDEMReader(const vtkDEMReader&) = delete;
231 void operator=(const vtkDEMReader&) = delete;
232};
233
234#endif
read a digital elevation model (DEM) file
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.
void ComputeExtentOriginAndSpacing(int extent[6], double origin[6], double spacing[6])
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()
const char * GetElevationReferenceAsString(void)
Specify the elevation origin to use.
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 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:49
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
record modification and/or execution time