GeoTessCPP
2.2.3
Software to facilitate storage and retrieval of 3D information about the Earth.
|
Go to the documentation of this file.
38 #ifndef PROFILESURFACE_EMPTY_OBJECT_H
39 #define PROFILESURFACE_EMPTY_OBJECT_H
66 class GeoTessMetaData;
87 static string class_name() {
return "ProfileSurfaceEmpty"; }
106 virtual bool operator ==(
const GeoTessProfile& p)
const {
return p.
getType() == GeoTessProfileType::SURFACE_EMPTY; }
116 virtual double getValue(
int attributeIndex,
int nodeIndex)
const {
return NaN_DOUBLE; }
124 virtual double getValueTop(
int attributeIndex)
const {
return NaN_DOUBLE; }
136 virtual bool isNaN(
int nodeIndex,
int attributeIndex) {
return true; }
143 int attributeIndex,
double radius,
144 bool allowRadiusOutOfRange)
const
145 {
return NaN_DOUBLE; }
150 virtual void setData(
const vector<GeoTessData*>& inData) { }
164 os << endl <<
"ERROR in ProfileSurfaceEmpty::getData" << endl
165 <<
"Unsupported method call." << endl;
176 os << endl <<
"ERROR in ProfileSurfaceEmpty::getData" << endl
177 <<
"Unsupported method call." << endl;
188 os << endl <<
"ERROR in ProfileSurfaceEmpty::getData" << endl
189 <<
"Unsupported method call." << endl;
199 os << endl <<
"ERROR in ProfileSurfaceEmpty::getDataBottom" << endl
200 <<
"Unsupported method call." << endl;
211 os << endl <<
"ERROR in ProfileSurfaceEmpty::getDataTop" << endl
212 <<
"Unsupported method call." << endl;
223 os << endl <<
"ERROR in ProfileSurfaceEmpty::getDataBottom" << endl
224 <<
"Unsupported method call." << endl;
235 os << endl <<
"ERROR in ProfileSurfaceEmpty::getDataBottom" << endl
236 <<
"Unsupported method call." << endl;
245 virtual float getRadius(
int i)
const {
return NaN_FLOAT; }
250 virtual void setRadii(
const vector<float>& newRadii) { }
278 virtual float*
getRadii() {
return (
float*) NULL; }
290 GeoTessProfileSurfaceEmpty(IFStreamAscii& ifs, GeoTessMetaData& gtmd) : GeoTessProfile() { }
296 virtual ~GeoTessProfileSurfaceEmpty() { }
301 virtual void write(IFStreamBinary& ofs)
302 { ofs.writeByte((
byte) GeoTessProfileType::SURFACE_EMPTY.ordinal()); }
307 virtual void write(IFStreamAscii& ofs)
308 { ofs.writeInt(GeoTessProfileType::SURFACE_EMPTY.ordinal()); ofs.writeNL();}
318 virtual int findClosestRadiusIndex(
double radius)
const {
return -1; }
327 virtual void setPointIndex(
int nodeIndex,
int pntIndex) { }
336 virtual void resetPointIndices() { }
345 virtual int getPointIndex(
int nodeIndex)
const {
return -1; }
350 virtual GeoTessProfile* copy() {
return new GeoTessProfileSurfaceEmpty(); }
359 #endif // PROFILESURFACE_EMPTY_OBJECT_H
virtual const GeoTessData & getData(int i) const
virtual void setData(const vector< GeoTessData * > &inData)
virtual double getValue(const GeoTessInterpolatorType &rInterpType, int attributeIndex, double radius, bool allowRadiusOutOfRange) const
Abstract class that manages the radii and data values that span a single layer associated with a sing...
virtual float getRadiusBottom() const
virtual int getNRadii() const
Enumeration of the valid Profile types, including EMPTY, THIN, CONSTANT, NPOINT and SURFACE.
Manages a single data value attached to a grid node.
static string class_name()
virtual int getNData() const
virtual GeoTessData ** getData()
GeoTessProfileSurfaceEmpty()
virtual float getRadiusTop() const
virtual const GeoTessProfileType & getType() const
virtual void setRadius(int index, float radius)
virtual const GeoTessData & getDataTop() const
virtual float * getRadii()
virtual double getValue(int attributeIndex, int nodeIndex) const
virtual void setRadii(const vector< float > &newRadii)
virtual void setData(int index, GeoTessData *inData)
virtual int class_size() const
virtual GeoTessData * getDataTop()
virtual bool isNaN(int nodeIndex, int attributeIndex)
Abstract base class that manages the data values attached to a single grid point.
virtual GeoTessData * getData(int i)
virtual double getValueTop(int attributeIndex) const
Opens a file for binary read and write access.
virtual const GeoTessProfileType & getType() const
virtual const GeoTessData & getDataBottom() const
An exception class for all GeoTess objects.
virtual LONG_INT getMemory()
virtual float getRadius(int i) const
A Profile object that defines a single Data object and no radius value.
Enumeration of the interpolation algorithms supported by GeoTess including LINEAR,...
virtual GeoTessData * getDataBottom()