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=========================================================================*/
38#ifndef vtkDEMReader_h
39#define vtkDEMReader_h
40
41#include "vtkIOImageModule.h" // For export macro
42#include "vtkImageAlgorithm.h"
43
44class VTKIOIMAGE_EXPORT vtkDEMReader : public vtkImageAlgorithm
45{
46public:
47 static vtkDEMReader* New();
49 void PrintSelf(ostream& os, vtkIndent indent) override;
50
52
58
59 enum
60 {
61 REFERENCE_SEA_LEVEL = 0,
62 REFERENCE_ELEVATION_BOUNDS
63 };
64
66
71 vtkSetClampMacro(ElevationReference, int, REFERENCE_SEA_LEVEL, REFERENCE_ELEVATION_BOUNDS);
72 vtkGetMacro(ElevationReference, int);
73 void SetElevationReferenceToSeaLevel() { this->SetElevationReference(REFERENCE_SEA_LEVEL); }
75 {
76 this->SetElevationReference(REFERENCE_ELEVATION_BOUNDS);
77 }
80
82
85 vtkGetStringMacro(MapLabel);
87
89
92 vtkGetMacro(DEMLevel, int);
94
96
99 vtkGetMacro(ElevationPattern, int);
101
103
106 vtkGetMacro(GroundSystem, int);
108
110
113 vtkGetMacro(GroundZone, int);
115
117
120 vtkGetVectorMacro(ProjectionParameters, float, 15);
122
124
128 vtkGetMacro(PlaneUnitOfMeasure, int);
130
132
136 vtkGetMacro(ElevationUnitOfMeasure, int);
138
140
144 vtkGetMacro(PolygonSize, int);
146
148
152 vtkGetVectorMacro(ElevationBounds, float, 2);
154
156
161 vtkGetMacro(LocalRotation, float);
163
165
168 vtkGetMacro(AccuracyCode, int);
170
172
176 vtkGetVectorMacro(SpatialResolution, float, 3);
178
180
183 vtkGetVectorMacro(ProfileDimension, int, 2);
185
192
193protected:
195 ~vtkDEMReader() override;
196
200 int WholeExtent[6];
201 char* FileName;
202 char MapLabel[145];
207 float ProjectionParameters[15];
211 float GroundCoords[4][2];
212 float ElevationBounds[2];
215 float SpatialResolution[3];
216 int ProfileDimension[2];
219
220 void ComputeExtentOriginAndSpacing(int extent[6], double origin[6], double spacing[6]);
224 vtkInformationVector* outputVector) override;
225
226private:
227 vtkDEMReader(const vtkDEMReader&) = delete;
228 void operator=(const vtkDEMReader&) = delete;
229};
230
231#endif
read a digital elevation model (DEM) file
Definition: vtkDEMReader.h:45
float LocalRotation
Definition: vtkDEMReader.h:213
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:74
int PlaneUnitOfMeasure
Definition: vtkDEMReader.h:208
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:217
int ElevationUnitOfMeasure
Definition: vtkDEMReader.h:209
vtkSetFilePathMacro(FileName)
Specify file name of Digital Elevation Model (DEM) file.
~vtkDEMReader() override
int ElevationReference
Definition: vtkDEMReader.h:218
char * FileName
Definition: vtkDEMReader.h:201
int ReadProfiles(vtkImageData *data)
int ElevationPattern
Definition: vtkDEMReader.h:204
void SetElevationReferenceToSeaLevel()
Specify the elevation origin to use.
Definition: vtkDEMReader.h:73
vtkTimeStamp ReadHeaderTime
Definition: vtkDEMReader.h:197
Generic algorithm superclass for image algs.
topologically and geometrically regular array of data
Definition: vtkImageData.h:57
a simple class to control print indentation
Definition: vtkIndent.h:43
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
record modification and/or execution time
Definition: vtkTimeStamp.h:42
@ extent
Definition: vtkX3D.h:351
@ spacing
Definition: vtkX3D.h:487
@ data
Definition: vtkX3D.h:321