VTK  9.1.0
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=========================================================================*/
58#ifndef vtkDEMReader_h
59#define vtkDEMReader_h
60
61#include "vtkIOImageModule.h" // For export macro
62#include "vtkImageAlgorithm.h"
63
64class VTKIOIMAGE_EXPORT vtkDEMReader : public vtkImageAlgorithm
65{
66public:
67 static vtkDEMReader* New();
69 void PrintSelf(ostream& os, vtkIndent indent) override;
70
72
78
79 enum
80 {
81 REFERENCE_SEA_LEVEL = 0,
82 REFERENCE_ELEVATION_BOUNDS
83 };
84
86
91 vtkSetClampMacro(ElevationReference, int, REFERENCE_SEA_LEVEL, REFERENCE_ELEVATION_BOUNDS);
92 vtkGetMacro(ElevationReference, int);
93 void SetElevationReferenceToSeaLevel() { this->SetElevationReference(REFERENCE_SEA_LEVEL); }
95 {
96 this->SetElevationReference(REFERENCE_ELEVATION_BOUNDS);
97 }
100
102
105 vtkGetStringMacro(MapLabel);
107
109
112 vtkGetMacro(DEMLevel, int);
114
116
119 vtkGetMacro(ElevationPattern, int);
121
123
126 vtkGetMacro(GroundSystem, int);
128
130
133 vtkGetMacro(GroundZone, int);
135
137
140 vtkGetVectorMacro(ProjectionParameters, float, 15);
142
144
148 vtkGetMacro(PlaneUnitOfMeasure, int);
150
152
156 vtkGetMacro(ElevationUnitOfMeasure, int);
158
160
164 vtkGetMacro(PolygonSize, int);
166
168
172 vtkGetVectorMacro(ElevationBounds, float, 2);
174
176
181 vtkGetMacro(LocalRotation, float);
183
185
188 vtkGetMacro(AccuracyCode, int);
190
192
196 vtkGetVectorMacro(SpatialResolution, float, 3);
198
200
203 vtkGetVectorMacro(ProfileDimension, int, 2);
205
212
213protected:
215 ~vtkDEMReader() override;
216
220 int WholeExtent[6];
221 char* FileName;
222 char MapLabel[145];
227 float ProjectionParameters[15];
231 float GroundCoords[4][2];
232 float ElevationBounds[2];
235 float SpatialResolution[3];
236 int ProfileDimension[2];
239
240 void ComputeExtentOriginAndSpacing(int extent[6], double origin[6], double spacing[6]);
244 vtkInformationVector* outputVector) override;
245
246private:
247 vtkDEMReader(const vtkDEMReader&) = delete;
248 void operator=(const vtkDEMReader&) = delete;
249};
250
251#endif
read a digital elevation model (DEM) file
Definition: vtkDEMReader.h:65
float LocalRotation
Definition: vtkDEMReader.h:233
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.
Definition: vtkDEMReader.h:94
int PlaneUnitOfMeasure
Definition: vtkDEMReader.h:228
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 ProfileSeekOffset
Definition: vtkDEMReader.h:237
int ElevationUnitOfMeasure
Definition: vtkDEMReader.h:229
vtkSetFilePathMacro(FileName)
Specify file name of Digital Elevation Model (DEM) file.
~vtkDEMReader() override
int ElevationReference
Definition: vtkDEMReader.h:238
char * FileName
Definition: vtkDEMReader.h:221
int ReadProfiles(vtkImageData *data)
int ElevationPattern
Definition: vtkDEMReader.h:224
void SetElevationReferenceToSeaLevel()
Specify the elevation origin to use.
Definition: vtkDEMReader.h:93
vtkTimeStamp ReadHeaderTime
Definition: vtkDEMReader.h:217
Generic algorithm superclass for image algs.
topologically and geometrically regular array of data
Definition: vtkImageData.h:157
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
record modification and/or execution time
Definition: vtkTimeStamp.h:52
@ extent
Definition: vtkX3D.h:351
@ spacing
Definition: vtkX3D.h:487
@ data
Definition: vtkX3D.h:321