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 
47 class VTKIOIMAGE_EXPORT vtkDEMReader : public vtkImageAlgorithm
48 {
49 public:
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  }
81  const char* GetElevationReferenceAsString(void);
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 
196 protected:
198  ~vtkDEMReader() override;
199 
203  int WholeExtent[6];
204  char* FileName;
205  char MapLabel[145];
206  int DEMLevel;
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]);
226  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
227  vtkInformationVector* outputVector) override;
228 
229 private:
230  vtkDEMReader(const vtkDEMReader&) = delete;
231  void operator=(const vtkDEMReader&) = delete;
232 };
233 
234 #endif
read a digital elevation model (DEM) file
Definition: vtkDEMReader.h:48
float LocalRotation
Definition: vtkDEMReader.h:216
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:77
int PlaneUnitOfMeasure
Definition: vtkDEMReader.h:211
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:220
int ElevationUnitOfMeasure
Definition: vtkDEMReader.h:212
vtkSetFilePathMacro(FileName)
Specify file name of Digital Elevation Model (DEM) file.
~vtkDEMReader() override
int ElevationReference
Definition: vtkDEMReader.h:221
char * FileName
Definition: vtkDEMReader.h:204
int ReadProfiles(vtkImageData *data)
int ElevationPattern
Definition: vtkDEMReader.h:207
void SetElevationReferenceToSeaLevel()
Specify the elevation origin to use.
Definition: vtkDEMReader.h:76
vtkTimeStamp ReadHeaderTime
Definition: vtkDEMReader.h:200
Generic algorithm superclass for image algs.
topologically and geometrically regular array of data
Definition: vtkImageData.h:63
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
Definition: vtkTimeStamp.h:45
@ extent
Definition: vtkX3D.h:351
@ spacing
Definition: vtkX3D.h:487
@ data
Definition: vtkX3D.h:321