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=========================================================================*/
35#ifndef vtkDEMReader_h
36#define vtkDEMReader_h
37
38#include "vtkIOImageModule.h" // For export macro
39#include "vtkImageAlgorithm.h"
40
41class VTKIOIMAGE_EXPORT vtkDEMReader : public vtkImageAlgorithm
42{
43public:
44 static vtkDEMReader *New();
46 void PrintSelf(ostream& os, vtkIndent indent);
47
49
52 vtkSetStringMacro(FileName);
55
56 enum {REFERENCE_SEA_LEVEL=0,REFERENCE_ELEVATION_BOUNDS};
57
59
64 vtkSetClampMacro(ElevationReference,int,REFERENCE_SEA_LEVEL,
65 REFERENCE_ELEVATION_BOUNDS);
66 vtkGetMacro(ElevationReference,int);
68 {this->SetElevationReference(REFERENCE_SEA_LEVEL);}
70 {this->SetElevationReference(REFERENCE_ELEVATION_BOUNDS);}
73
75
80
82
85 vtkGetMacro(DEMLevel,int);
87
89
92 vtkGetMacro(ElevationPattern, int);
94
96
99 vtkGetMacro(GroundSystem, int);
101
103
106 vtkGetMacro(GroundZone, int);
108
110
113 vtkGetVectorMacro(ProjectionParameters,float,15);
115
117
121 vtkGetMacro(PlaneUnitOfMeasure, int);
123
125
129 vtkGetMacro(ElevationUnitOfMeasure, int);
131
133
137 vtkGetMacro(PolygonSize, int);
139
141
145 vtkGetVectorMacro(ElevationBounds,float,2);
147
149
154 vtkGetMacro(LocalRotation, float);
156
158
161 vtkGetMacro(AccuracyCode, int);
163
165
169 vtkGetVectorMacro(SpatialResolution,float,3);
171
173
176 vtkGetVectorMacro(ProfileDimension,int,2);
178
186
187protected:
190
194 int WholeExtent[6];
195 char *FileName;
196 char MapLabel[145];
201 float ProjectionParameters[15];
205 float GroundCoords[4][2];
206 float ElevationBounds[2];
209 float SpatialResolution[3];
210 int ProfileDimension[2];
213
215 double origin[6],
216 double spacing[6]);
219 virtual int RequestData( vtkInformation* request,
220 vtkInformationVector** inputVector,
221 vtkInformationVector* outputVector);
222
223private:
224 vtkDEMReader(const vtkDEMReader&) VTK_DELETE_FUNCTION;
225 void operator=(const vtkDEMReader&) VTK_DELETE_FUNCTION;
226};
227
228#endif
229
read a digital elevation model (DEM) file
Definition: vtkDEMReader.h:42
float LocalRotation
Definition: vtkDEMReader.h:207
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Reads the DEM Type A record to compute the extent, origin and spacing of the image data.
void ComputeExtentOriginAndSpacing(int extent[6], double origin[6], double spacing[6])
void SetElevationReferenceToElevationBounds()
Definition: vtkDEMReader.h:69
int PlaneUnitOfMeasure
Definition: vtkDEMReader.h:202
static vtkDEMReader * New()
const char * GetElevationReferenceAsString(void)
int ReadTypeARecord()
int ProfileSeekOffset
Definition: vtkDEMReader.h:211
int ElevationUnitOfMeasure
Definition: vtkDEMReader.h:203
int ElevationReference
Definition: vtkDEMReader.h:212
char * FileName
Definition: vtkDEMReader.h:195
int ReadProfiles(vtkImageData *data)
int ElevationPattern
Definition: vtkDEMReader.h:198
void SetElevationReferenceToSeaLevel()
Definition: vtkDEMReader.h:67
vtkTimeStamp ReadHeaderTime
Definition: vtkDEMReader.h:191
Generic algorithm superclass for image algs.
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
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
Definition: vtkTimeStamp.h:36
@ extent
Definition: vtkX3D.h:345
@ spacing
Definition: vtkX3D.h:481
@ data
Definition: vtkX3D.h:315
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.