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=========================================================================*/
28
29#ifndef vtkDEMReader_h
30#define vtkDEMReader_h
31
32#include "vtkIOImageModule.h" // For export macro
33#include "vtkImageAlgorithm.h"
34
35class VTKIOIMAGE_EXPORT vtkDEMReader : public vtkImageAlgorithm
36{
37public:
38 static vtkDEMReader* New();
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
43
49
50 enum
51 {
54 };
55
57
63 vtkGetMacro(ElevationReference, int);
71
73
76 vtkGetStringMacro(MapLabel);
78
80
83 vtkGetMacro(DEMLevel, int);
85
87
90 vtkGetMacro(ElevationPattern, int);
92
94
97 vtkGetMacro(GroundSystem, int);
99
101
104 vtkGetMacro(GroundZone, int);
106
108
111 vtkGetVectorMacro(ProjectionParameters, float, 15);
113
115
119 vtkGetMacro(PlaneUnitOfMeasure, int);
121
123
127 vtkGetMacro(ElevationUnitOfMeasure, int);
129
131
135 vtkGetMacro(PolygonSize, int);
137
139
143 vtkGetVectorMacro(ElevationBounds, float, 2);
145
147
152 vtkGetMacro(LocalRotation, float);
154
156
159 vtkGetMacro(AccuracyCode, int);
161
163
167 vtkGetVectorMacro(SpatialResolution, float, 3);
169
171
174 vtkGetVectorMacro(ProfileDimension, int, 2);
176
183
184protected:
186 ~vtkDEMReader() override;
187
192 char* FileName;
193 char MapLabel[145];
202 float GroundCoords[4][2];
210
211 void ComputeExtentOriginAndSpacing(int extent[6], double origin[6], double spacing[6]);
215 vtkInformationVector* outputVector) override;
216
217private:
218 vtkDEMReader(const vtkDEMReader&) = delete;
219 void operator=(const vtkDEMReader&) = delete;
220};
221
222#endif
int WholeExtent[6]
float GroundCoords[4][2]
float LocalRotation
virtual void SetElevationReference(int)
Specify the elevation origin to use.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int ProfileDimension[2]
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])
float ElevationBounds[2]
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.
@ REFERENCE_ELEVATION_BOUNDS
static vtkDEMReader * New()
const char * GetElevationReferenceAsString(void)
Specify the elevation origin to use.
int ReadTypeARecord()
char MapLabel[145]
float SpatialResolution[3]
vtkGetFilePathMacro(FileName)
Specify file name of Digital Elevation Model (DEM) file.
float ProjectionParameters[15]
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
topologically and geometrically regular array of data
a simple class to control print indentation
Definition vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
record modification and/or execution time