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 =========================================================================*/
32 #ifndef vtkDEMReader_h
33 #define vtkDEMReader_h
34 
35 #include "vtkIOImageModule.h" // For export macro
36 #include "vtkImageAlgorithm.h"
37 
38 class VTKIOIMAGE_EXPORT vtkDEMReader : public vtkImageAlgorithm
39 {
40 public:
41  static vtkDEMReader* New();
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
46 
49  vtkSetFilePathMacro(FileName);
50  vtkGetFilePathMacro(FileName);
52 
53  enum
54  {
55  REFERENCE_SEA_LEVEL = 0,
56  REFERENCE_ELEVATION_BOUNDS
57  };
58 
60 
65  vtkSetClampMacro(ElevationReference, int, REFERENCE_SEA_LEVEL, REFERENCE_ELEVATION_BOUNDS);
66  vtkGetMacro(ElevationReference, int);
67  void SetElevationReferenceToSeaLevel() { this->SetElevationReference(REFERENCE_SEA_LEVEL); }
69  {
70  this->SetElevationReference(REFERENCE_ELEVATION_BOUNDS);
71  }
72  const char* GetElevationReferenceAsString(void);
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 
187 protected:
188  vtkDEMReader();
189  ~vtkDEMReader() override;
190 
194  int WholeExtent[6];
195  char* FileName;
196  char MapLabel[145];
197  int DEMLevel;
201  float ProjectionParameters[15];
205  float GroundCoords[4][2];
206  float ElevationBounds[2];
209  float SpatialResolution[3];
210  int ProfileDimension[2];
213 
214  void ComputeExtentOriginAndSpacing(int extent[6], double origin[6], double spacing[6]);
215  int ReadTypeARecord();
216  int ReadProfiles(vtkImageData* data);
217  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
218  vtkInformationVector* outputVector) override;
219 
220 private:
221  vtkDEMReader(const vtkDEMReader&) = delete;
222  void operator=(const vtkDEMReader&) = delete;
223 };
224 
225 #endif
Store vtkAlgorithm input/output information.
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkTimeStamp ReadHeaderTime
Definition: vtkDEMReader.h:191
int PlaneUnitOfMeasure
Definition: vtkDEMReader.h:202
char * FileName
Definition: vtkDEMReader.h:195
a simple class to control print indentation
Definition: vtkIndent.h:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:53
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
int ElevationPattern
Definition: vtkDEMReader.h:198
int ProfileSeekOffset
Definition: vtkDEMReader.h:211
void SetElevationReferenceToElevationBounds()
Specify the elevation origin to use.
Definition: vtkDEMReader.h:68
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
int ElevationUnitOfMeasure
Definition: vtkDEMReader.h:203
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
float LocalRotation
Definition: vtkDEMReader.h:207
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
read a digital elevation model (DEM) file
Definition: vtkDEMReader.h:38
void SetElevationReferenceToSeaLevel()
Specify the elevation origin to use.
Definition: vtkDEMReader.h:67
int ElevationReference
Definition: vtkDEMReader.h:212