GeoTessCPP
2.0.0
Software to facilitate storage and retrieval of 3D information about the Earth.
|
#include <ProfileSurface.h>
Public Member Functions | |
ProfileSurface (Data *dat) | |
virtual int | class_size () const |
virtual Data ** | getData () |
virtual Data * | getData (int i) |
virtual const Data & | getData (int i) const |
virtual const Data & | getDataBottom () const |
virtual Data * | getDataBottom () |
virtual const Data & | getDataTop () const |
virtual Data * | getDataTop () |
virtual int | getNData () const |
virtual int | getNRadii () const |
virtual float * | getRadii () |
virtual float | getRadius (int i) const |
virtual float | getRadiusBottom () const |
virtual float | getRadiusTop () const |
virtual const ProfileType & | getType () const |
virtual double | getValue (int attributeIndex, int nodeIndex) const |
virtual double | getValue (const InterpolatorType &rInterpType, int attributeIndex, double radius, bool allowRadiusOutOfRange) const |
virtual double | getValueTop (int attributeIndex) const |
virtual bool | isNaN (int nodeIndex, int attributeIndex) |
virtual bool | operator== (const Profile &p) const |
virtual void | setData (const vector< Data * > &inData) |
virtual void | setData (int index, Data *inData) |
virtual void | setRadii (const vector< float > &newRadii) |
Static Public Member Functions | |
static string | class_name () |
A Profile object used to support 2D models. It represents a single Data object and no radius value. ProfileSurface objects are incompatible with all other Profile types in the sense that a model that contains any ProfileSurface objects must be made up entirely of ProfileSurface objects.
geotess::ProfileSurface::ProfileSurface | ( | Data * | dat | ) | [inline] |
Default constructor.
static string geotess::ProfileSurface::class_name | ( | ) | [inline, static] |
Returns the class name.
Reimplemented from geotess::Profile.
virtual int geotess::ProfileSurface::class_size | ( | ) | const [inline, virtual] |
Returns the class size.
Reimplemented from geotess::Profile.
virtual Data** geotess::ProfileSurface::getData | ( | ) | [inline, virtual] |
Retrieve a shallow copy of all of the Data objects associated with thisProfile.
Reimplemented from geotess::Profile.
virtual Data* geotess::ProfileSurface::getData | ( | int | i | ) | [inline, virtual] |
Retrieve a reference the i'th Data object
Reimplemented from geotess::Profile.
virtual const Data& geotess::ProfileSurface::getData | ( | int | i | ) | const [inline, virtual] |
Retrieve a reference the i'th Data object
Reimplemented from geotess::Profile.
virtual const Data& geotess::ProfileSurface::getDataBottom | ( | ) | const [inline, virtual] |
Get the Data object at the bottom of the profile.
Reimplemented from geotess::Profile.
virtual Data* geotess::ProfileSurface::getDataBottom | ( | ) | [inline, virtual] |
Get the Data object at the bottom of the profile.
Reimplemented from geotess::Profile.
virtual const Data& geotess::ProfileSurface::getDataTop | ( | ) | const [inline, virtual] |
Get the Data object at the top of the profile.
Reimplemented from geotess::Profile.
virtual Data* geotess::ProfileSurface::getDataTop | ( | ) | [inline, virtual] |
Get the Data object at the top of the profile.
Reimplemented from geotess::Profile.
virtual int geotess::ProfileSurface::getNData | ( | ) | const [inline, virtual] |
Get the number of Data objects that comprise this profile.
Reimplemented from geotess::Profile.
virtual int geotess::ProfileSurface::getNRadii | ( | ) | const [inline, virtual] |
Get the number of radii that comprise this profile.
Reimplemented from geotess::Profile.
virtual float* geotess::ProfileSurface::getRadii | ( | ) | [inline, virtual] |
Returns NULL
Reimplemented from geotess::Profile.
virtual float geotess::ProfileSurface::getRadius | ( | int | i | ) | const [inline, virtual] |
Get the i'th radius value in this profile in km. Radii are in order of increasing radius.
Reimplemented from geotess::Profile.
virtual float geotess::ProfileSurface::getRadiusBottom | ( | ) | const [inline, virtual] |
Get the radius at the bottom of the profile, in km.
Reimplemented from geotess::Profile.
virtual float geotess::ProfileSurface::getRadiusTop | ( | ) | const [inline, virtual] |
Get the radius at the top of the profile, in km.
Reimplemented from geotess::Profile.
virtual const ProfileType& geotess::ProfileSurface::getType | ( | ) | const [inline, virtual] |
virtual double geotess::ProfileSurface::getValue | ( | int | attributeIndex, |
int | nodeIndex | ||
) | const [inline, virtual] |
Retrieve the value of the specified attribute from this profile at the specified node index
attributeIndex | |
nodeIndex |
Reimplemented from geotess::Profile.
virtual double geotess::ProfileSurface::getValue | ( | const InterpolatorType & | rInterpType, |
int | attributeIndex, | ||
double | radius, | ||
bool | allowRadiusOutOfRange | ||
) | const [inline, virtual] |
Retrieve the value of the specified attribute interpolated at the specified radius. Ignore allowRadiusOutOfRange.
Reimplemented from geotess::Profile.
virtual double geotess::ProfileSurface::getValueTop | ( | int | attributeIndex | ) | const [inline, virtual] |
Retrieve the value of the specified attribute at the top of the layer.
attributeIndex |
Reimplemented from geotess::Profile.
virtual bool geotess::ProfileSurface::isNaN | ( | int | nodeIndex, |
int | attributeIndex | ||
) | [inline, virtual] |
Return true if the specified Data value is NaN. For doubles and floats, this means not NaN. For bytes, shorts, ints and longs, always returns false since there is no value that is NaN.
nodeIndex | |
attributeIndex |
Reimplemented from geotess::Profile.
virtual bool geotess::ProfileSurface::operator== | ( | const Profile & | p | ) | const [inline, virtual] |
Return true if the input Profile object (p) equals this Profile object.
Reimplemented from geotess::Profile.
virtual void geotess::ProfileSurface::setData | ( | const vector< Data * > & | inData | ) | [inline, virtual] |
Resets the data object to the new input data
Reimplemented from geotess::Profile.
virtual void geotess::ProfileSurface::setData | ( | int | index, |
Data * | inData | ||
) | [inline, virtual] |
Resets the data object at index to the new input data.
Reimplemented from geotess::Profile.
virtual void geotess::ProfileSurface::setRadii | ( | const vector< float > & | newRadii | ) | [inline, virtual] |
Replace the radii currently associated with this Profile with new values.
Reimplemented from geotess::Profile.