Commit 3f4fc817 authored by Rusty Blue's avatar Rusty Blue
Browse files

BUG: Added ElevationReference to PrintSelf

parent 67077f61
......@@ -20,7 +20,7 @@
#include "vtkStreamingDemandDrivenPipeline.h"
#include "vtkPointData.h"
vtkCxxRevisionMacro(vtkDEMReader, "1.39");
vtkCxxRevisionMacro(vtkDEMReader, "1.40");
vtkStandardNewMacro(vtkDEMReader);
#define VTK_SW 0
......@@ -496,6 +496,21 @@ void ConvertDNotationToENotation (char *line)
}
}
// Return the elevation reference.
const char *vtkDEMReader::GetElevationReferenceAsString(void)
{
if ( this->ElevationReference == REFERENCE_SEA_LEVEL )
{
return "Sea Level";
}
else // REFERENCE_ELEVATION_BOUNDS
{
return "Elevation Bounds";
}
}
void vtkDEMReader::PrintSelf(ostream& os, vtkIndent indent)
{
this->Superclass::PrintSelf(os,indent);
......@@ -527,6 +542,7 @@ void vtkDEMReader::PrintSelf(ostream& os, vtkIndent indent)
os << " (unknown)\n";
}
os << indent << "GroundZone: " << this->GroundZone << "\n";
os << indent << "ElevationRefernce: " << this->GetElevationReferenceAsString() << "\n";
os << indent << "ProjectionParameters: all zero" << "\n"; // this->ProjectionParameters
os << indent << "PlaneUnitOfMeasure: " << this->PlaneUnitOfMeasure;
if (this->PlaneUnitOfMeasure == 0)
......
......@@ -54,6 +54,7 @@ public:
{this->SetElevationReference(REFERENCE_SEA_LEVEL);}
void SetElevationReferenceToElevationBounds()
{this->SetElevationReference(REFERENCE_ELEVATION_BOUNDS);}
const char *GetElevationReferenceAsString(void);
// Description:
// An ASCII description of the map
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment