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 =========================================================================*/
34 #ifndef vtkDEMReader_h
35 #define vtkDEMReader_h
36 
37 #include "vtkIOImageModule.h" // For export macro
38 #include "vtkImageAlgorithm.h"
39 
41 {
42 public:
43  static vtkDEMReader *New();
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48 
49  vtkSetStringMacro(FileName);
50  vtkGetStringMacro(FileName);
52 
53 //BTX
54  enum {REFERENCE_SEA_LEVEL=0,REFERENCE_ELEVATION_BOUNDS};
55 //ETX
56 
58 
61  vtkSetClampMacro(ElevationReference,int,REFERENCE_SEA_LEVEL,
62  REFERENCE_ELEVATION_BOUNDS);
63  vtkGetMacro(ElevationReference,int);
65  {this->SetElevationReference(REFERENCE_SEA_LEVEL);}
67  {this->SetElevationReference(REFERENCE_ELEVATION_BOUNDS);}
68  const char *GetElevationReferenceAsString(void);
70 
72 
73  vtkGetStringMacro(MapLabel);
75 
77 
78  vtkGetMacro(DEMLevel,int);
80 
82 
83  vtkGetMacro(ElevationPattern, int);
85 
87 
88  vtkGetMacro(GroundSystem, int);
90 
92 
93  vtkGetMacro(GroundZone, int);
95 
97 
98  vtkGetVectorMacro(ProjectionParameters,float,15);
100 
102 
105  vtkGetMacro(PlaneUnitOfMeasure, int);
107 
109 
111  vtkGetMacro(ElevationUnitOfMeasure, int);
113 
115 
117  vtkGetMacro(PolygonSize, int);
119 
121 
123  vtkGetVectorMacro(ElevationBounds,float,2);
125 
127 
130  vtkGetMacro(LocalRotation, float);
132 
134 
135  vtkGetMacro(AccuracyCode, int);
137 
139 
142  vtkGetVectorMacro(SpatialResolution,float,3);
144 
146 
147  vtkGetVectorMacro(ProfileDimension,int,2);
149 
151 
157 
158 protected:
159  vtkDEMReader();
160  ~vtkDEMReader();
161 
165  int WholeExtent[6];
166  char *FileName;
167  char MapLabel[145];
168  int DEMLevel;
172  float ProjectionParameters[15];
176  float GroundCoords[4][2];
177  float ElevationBounds[2];
180  float SpatialResolution[3];
181  int ProfileDimension[2];
184 
185  void ComputeExtentOriginAndSpacing (int extent[6],
186  double origin[6],
187  double spacing[6]);
188  int ReadTypeARecord ();
189  int ReadProfiles (vtkImageData *data);
190  virtual int RequestData( vtkInformation* request,
191  vtkInformationVector** inputVector,
192  vtkInformationVector* outputVector);
193 
194 private:
195  vtkDEMReader(const vtkDEMReader&); // Not implemented.
196  void operator=(const vtkDEMReader&); // Not implemented.
197 };
198 
199 #endif
200 
Store vtkAlgorithm input/output information.
record modification and/or execution time
Definition: vtkTimeStamp.h:34
vtkTimeStamp ReadHeaderTime
Definition: vtkDEMReader.h:162
int PlaneUnitOfMeasure
Definition: vtkDEMReader.h:173
char * FileName
Definition: vtkDEMReader.h:166
a simple class to control print indentation
Definition: vtkIndent.h:38
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
int ElevationPattern
Definition: vtkDEMReader.h:169
int ProfileSeekOffset
Definition: vtkDEMReader.h:182
void SetElevationReferenceToElevationBounds()
Definition: vtkDEMReader.h:66
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
int ElevationUnitOfMeasure
Definition: vtkDEMReader.h:174
#define VTKIOIMAGE_EXPORT
float LocalRotation
Definition: vtkDEMReader.h:178
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
read a digital elevation model (DEM) file
Definition: vtkDEMReader.h:40
void SetElevationReferenceToSeaLevel()
Definition: vtkDEMReader.h:64
int ElevationReference
Definition: vtkDEMReader.h:183