VTK
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 =========================================================================*/
29 #ifndef vtkDEMReader_h
30 #define vtkDEMReader_h
31 
32 #include "vtkIOImageModule.h" // For export macro
33 #include "vtkImageAlgorithm.h"
34 
35 class VTKIOIMAGE_EXPORT vtkDEMReader : public vtkImageAlgorithm
36 {
37 public:
38  static vtkDEMReader *New();
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
43 
46  vtkSetStringMacro(FileName);
47  vtkGetStringMacro(FileName);
49 
50  enum {REFERENCE_SEA_LEVEL=0,REFERENCE_ELEVATION_BOUNDS};
51 
53 
58  vtkSetClampMacro(ElevationReference,int,REFERENCE_SEA_LEVEL,
59  REFERENCE_ELEVATION_BOUNDS);
60  vtkGetMacro(ElevationReference,int);
62  {this->SetElevationReference(REFERENCE_SEA_LEVEL);}
64  {this->SetElevationReference(REFERENCE_ELEVATION_BOUNDS);}
65  const char *GetElevationReferenceAsString(void);
67 
69 
72  vtkGetStringMacro(MapLabel);
74 
76 
79  vtkGetMacro(DEMLevel,int);
81 
83 
86  vtkGetMacro(ElevationPattern, int);
88 
90 
93  vtkGetMacro(GroundSystem, int);
95 
97 
100  vtkGetMacro(GroundZone, int);
102 
104 
107  vtkGetVectorMacro(ProjectionParameters,float,15);
109 
111 
115  vtkGetMacro(PlaneUnitOfMeasure, int);
117 
119 
123  vtkGetMacro(ElevationUnitOfMeasure, int);
125 
127 
131  vtkGetMacro(PolygonSize, int);
133 
135 
139  vtkGetVectorMacro(ElevationBounds,float,2);
141 
143 
148  vtkGetMacro(LocalRotation, float);
150 
152 
155  vtkGetMacro(AccuracyCode, int);
157 
159 
163  vtkGetVectorMacro(SpatialResolution,float,3);
165 
167 
170  vtkGetVectorMacro(ProfileDimension,int,2);
172 
179  vtkInformationVector *) override;
180 
181 protected:
182  vtkDEMReader();
183  ~vtkDEMReader() override;
184 
188  int WholeExtent[6];
189  char *FileName;
190  char MapLabel[145];
191  int DEMLevel;
195  float ProjectionParameters[15];
199  float GroundCoords[4][2];
200  float ElevationBounds[2];
203  float SpatialResolution[3];
204  int ProfileDimension[2];
207 
208  void ComputeExtentOriginAndSpacing (int extent[6],
209  double origin[6],
210  double spacing[6]);
211  int ReadTypeARecord ();
212  int ReadProfiles (vtkImageData *data);
213  int RequestData( vtkInformation* request,
214  vtkInformationVector** inputVector,
215  vtkInformationVector* outputVector) override;
216 
217 private:
218  vtkDEMReader(const vtkDEMReader&) = delete;
219  void operator=(const vtkDEMReader&) = delete;
220 };
221 
222 #endif
223 
Store vtkAlgorithm input/output information.
record modification and/or execution time
Definition: vtkTimeStamp.h:32
vtkTimeStamp ReadHeaderTime
Definition: vtkDEMReader.h:185
int PlaneUnitOfMeasure
Definition: vtkDEMReader.h:196
char * FileName
Definition: vtkDEMReader.h:189
a simple class to control print indentation
Definition: vtkIndent.h:33
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
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:192
int ProfileSeekOffset
Definition: vtkDEMReader.h:205
void SetElevationReferenceToElevationBounds()
Specify the elevation origin to use.
Definition: vtkDEMReader.h:63
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
int ElevationUnitOfMeasure
Definition: vtkDEMReader.h:197
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
float LocalRotation
Definition: vtkDEMReader.h:201
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:35
void SetElevationReferenceToSeaLevel()
Specify the elevation origin to use.
Definition: vtkDEMReader.h:61
int ElevationReference
Definition: vtkDEMReader.h:206