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=========================================================================*/
31
32#ifndef vtkDEMReader_h
33#define vtkDEMReader_h
34
35#include "vtkIOImageModule.h" // For export macro
36#include "vtkImageAlgorithm.h"
37
38class VTKIOIMAGE_EXPORT vtkDEMReader : public vtkImageAlgorithm
39{
40public:
41 static vtkDEMReader* New();
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
46
52
53 enum
54 {
57 };
58
60
66 vtkGetMacro(ElevationReference, int);
74
76
79 vtkGetStringMacro(MapLabel);
81
83
86 vtkGetMacro(DEMLevel, int);
88
90
93 vtkGetMacro(ElevationPattern, int);
95
97
100 vtkGetMacro(GroundSystem, int);
102
104
107 vtkGetMacro(GroundZone, int);
109
111
114 vtkGetVectorMacro(ProjectionParameters, float, 15);
116
118
122 vtkGetMacro(PlaneUnitOfMeasure, int);
124
126
130 vtkGetMacro(ElevationUnitOfMeasure, int);
132
134
138 vtkGetMacro(PolygonSize, int);
140
142
146 vtkGetVectorMacro(ElevationBounds, float, 2);
148
150
155 vtkGetMacro(LocalRotation, float);
157
159
162 vtkGetMacro(AccuracyCode, int);
164
166
170 vtkGetVectorMacro(SpatialResolution, float, 3);
172
174
177 vtkGetVectorMacro(ProfileDimension, int, 2);
179
186
187protected:
189 ~vtkDEMReader() override;
190
195 char* FileName;
196 char MapLabel[145];
205 float GroundCoords[4][2];
213
214 void ComputeExtentOriginAndSpacing(int extent[6], double origin[6], double spacing[6]);
218 vtkInformationVector* outputVector) override;
219
220private:
221 vtkDEMReader(const vtkDEMReader&) = delete;
222 void operator=(const vtkDEMReader&) = delete;
223};
224
225#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:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
record modification and/or execution time