GeoTessCPP
2.0.0
Software to facilitate storage and retrieval of 3D information about the Earth.
|
#include <GeoTessProfileEmpty.h>
Public Member Functions | |
GeoTessProfileEmpty (float radBot, float radTop) | |
GeoTessProfileEmpty (IFStreamBinary &ifs) | |
GeoTessProfileEmpty (IFStreamAscii &ifs) | |
GeoTessProfileEmpty (float radii[], int &rIndex) | |
virtual | ~GeoTessProfileEmpty () |
virtual int | class_size () const |
virtual GeoTessProfile * | copy () |
virtual int | findClosestRadiusIndex (double radius) const |
virtual void | getCoefficients (map< int, double > &coefficients, double radius, double horizontalCoefficient) const |
virtual GeoTessData ** | getData () |
virtual GeoTessData * | getData (int i) |
virtual const GeoTessData & | getData (int i) const |
virtual const GeoTessData & | getDataBottom () const |
virtual GeoTessData * | getDataBottom () |
virtual const GeoTessData & | getDataTop () const |
virtual GeoTessData * | getDataTop () |
virtual int | getNData () const |
virtual int | getNRadii () const |
virtual int | getPointIndex (int nodeIndex) const |
virtual float * | getRadii () |
virtual float | getRadius (int i) const |
virtual float | getRadiusBottom () const |
virtual float | getRadiusTop () const |
virtual const GeoTessProfileType & | getType () const |
virtual double | getValue (const GeoTessInterpolatorType &rInterpType, int attributeIndex, double radius, bool allowRadiusOutOfRange) const |
virtual double | getValue (int attributeIndex, int nodeIndex) const |
virtual double | getValueBottom (int attributeIndex) const |
virtual double | getValueTop (int attributeIndex) const |
virtual void | getWeights (map< int, double > &weights, double dkm, double radius, double hcoefficient) const |
virtual bool | isNaN (int nodeIndex, int attributeIndex) |
virtual bool | operator== (const GeoTessProfile &p) const |
virtual void | resetPointIndices () |
virtual void | setData (const vector< GeoTessData * > &inData) |
virtual void | setData (int index, GeoTessData *inData) |
virtual void | setInterpolationCoefficients (const GeoTessInterpolatorType &interpType, vector< int > &nodeIndexes, vector< double > &coefficients, double &radius, bool &allowOutOfRange) |
virtual void | setPointIndex (int nodeIndex, int pointIndex) |
virtual void | setRadii (const vector< float > &newRadii) |
virtual void | write (IFStreamBinary &ofs) |
virtual void | write (IFStreamAscii &ofs) |
Static Public Member Functions | |
static string | class_name () |
A Profile object that defines two radii, one at the bottom and other at the top of the associated layer, and no Data. Profiles of this type should never be connected together by the connectivity of a tessellation.
geotess::GeoTessProfileEmpty::GeoTessProfileEmpty | ( | float | radBot, |
float | radTop | ||
) | [inline] |
Default constructor.
geotess::GeoTessProfileEmpty::GeoTessProfileEmpty | ( | IFStreamBinary & | ifs | ) | [inline] |
Standard constructor. Reads radii from the provided input file stream.
geotess::GeoTessProfileEmpty::GeoTessProfileEmpty | ( | IFStreamAscii & | ifs | ) | [inline] |
Standard constructor. Reads radii from the provided input file stream.
geotess::GeoTessProfileEmpty::GeoTessProfileEmpty | ( | float | radii[], |
int & | rIndex | ||
) | [inline] |
Standard constructor creates references into the supplied array of radii.
virtual geotess::GeoTessProfileEmpty::~GeoTessProfileEmpty | ( | ) | [inline, virtual] |
Default destructor.
static string geotess::GeoTessProfileEmpty::class_name | ( | ) | [inline, static] |
Returns the class name.
Reimplemented from geotess::GeoTessProfile.
virtual int geotess::GeoTessProfileEmpty::class_size | ( | ) | const [inline, virtual] |
Returns the class size.
Reimplemented from geotess::GeoTessProfile.
virtual GeoTessProfile* geotess::GeoTessProfileEmpty::copy | ( | ) | [inline, virtual] |
Returns a deep copy of this profile.
virtual int geotess::GeoTessProfileEmpty::findClosestRadiusIndex | ( | double | radius | ) | const [inline, virtual] |
Find the index of the node in this Profile that has radius closest to the supplied radius.
radius | in km |
Reimplemented from geotess::GeoTessProfile.
virtual void geotess::GeoTessProfileEmpty::getCoefficients | ( | map< int, double > & | coefficients, |
double | radius, | ||
double | horizontalCoefficient | ||
) | const [inline, virtual] |
virtual GeoTessData** geotess::GeoTessProfileEmpty::getData | ( | ) | [virtual] |
Retrieve a reference to all of the Data obects associated with this Profile.
Reimplemented from geotess::GeoTessProfile.
virtual GeoTessData* geotess::GeoTessProfileEmpty::getData | ( | int | i | ) | [virtual] |
Retrieve a reference the i'th Data object
Reimplemented from geotess::GeoTessProfile.
virtual const GeoTessData& geotess::GeoTessProfileEmpty::getData | ( | int | i | ) | const [virtual] |
Retrieve a reference the i'th Data object
Reimplemented from geotess::GeoTessProfile.
virtual const GeoTessData& geotess::GeoTessProfileEmpty::getDataBottom | ( | ) | const [virtual] |
Get the Data object at the bottom of the profile.
Reimplemented from geotess::GeoTessProfile.
virtual GeoTessData* geotess::GeoTessProfileEmpty::getDataBottom | ( | ) | [inline, virtual] |
Get the Data object at the bottom of the profile.
Reimplemented from geotess::GeoTessProfile.
virtual const GeoTessData& geotess::GeoTessProfileEmpty::getDataTop | ( | ) | const [virtual] |
Get the Data object at the top of the profile.
Reimplemented from geotess::GeoTessProfile.
virtual GeoTessData* geotess::GeoTessProfileEmpty::getDataTop | ( | ) | [inline, virtual] |
Get the Data object at the top of the profile.
Reimplemented from geotess::GeoTessProfile.
virtual int geotess::GeoTessProfileEmpty::getNData | ( | ) | const [inline, virtual] |
Get the number of Data objects that comprise this profile.
Reimplemented from geotess::GeoTessProfile.
virtual int geotess::GeoTessProfileEmpty::getNRadii | ( | ) | const [inline, virtual] |
Get the number of radii that comprise this profile.
Reimplemented from geotess::GeoTessProfile.
virtual int geotess::GeoTessProfileEmpty::getPointIndex | ( | int | nodeIndex | ) | const [inline, virtual] |
Get the pointIndex that corresponds to the supplied nodeIndex.
There is a node index for each Data object in a profile and they are indexed from 0 to the number of Data objects managed by a Profile. There is a pointIndex for every Data object in the entire model, indexed from 0 to the number of Data objects in the model.
Reimplemented from geotess::GeoTessProfile.
virtual float* geotess::GeoTessProfileEmpty::getRadii | ( | ) | [inline, virtual] |
Retrieve a deeep copy of the radii values in km.
Reimplemented from geotess::GeoTessProfile.
virtual float geotess::GeoTessProfileEmpty::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::GeoTessProfile.
virtual float geotess::GeoTessProfileEmpty::getRadiusBottom | ( | ) | const [inline, virtual] |
Get the radius at the bottom of the profile, in km.
Reimplemented from geotess::GeoTessProfile.
virtual float geotess::GeoTessProfileEmpty::getRadiusTop | ( | ) | const [inline, virtual] |
Get the radius at the top of the profile, in km.
Reimplemented from geotess::GeoTessProfile.
virtual const GeoTessProfileType& geotess::GeoTessProfileEmpty::getType | ( | ) | const [inline, virtual] |
Returns ProfileType (EMPTY).
Reimplemented from geotess::GeoTessProfile.
virtual double geotess::GeoTessProfileEmpty::getValue | ( | const GeoTessInterpolatorType & | rInterpType, |
int | attributeIndex, | ||
double | radius, | ||
bool | allowRadiusOutOfRange | ||
) | const [virtual] |
Retrieve the value of the specified attribute interpolated at the specified radius. Unsuppported for ProfileEmpty.
Reimplemented from geotess::GeoTessProfile.
virtual double geotess::GeoTessProfileEmpty::getValue | ( | int | attributeIndex, |
int | nodeIndex | ||
) | const [inline, virtual] |
Retrieve the value of the specified attribute interpolated from this profile at the specified radius index
attributeIndex | |
nodeIndex |
Reimplemented from geotess::GeoTessProfile.
virtual double geotess::GeoTessProfileEmpty::getValueBottom | ( | int | attributeIndex | ) | const [inline, virtual] |
Retrieve the value of the specified attribute at the bottom of the layer.
attributeIndex |
Reimplemented from geotess::GeoTessProfile.
virtual double geotess::GeoTessProfileEmpty::getValueTop | ( | int | attributeIndex | ) | const [inline, virtual] |
Retrieve the value of the specified attribute at the top of the layer.
attributeIndex |
Reimplemented from geotess::GeoTessProfile.
virtual void geotess::GeoTessProfileEmpty::getWeights | ( | map< int, double > & | weights, |
double | dkm, | ||
double | radius, | ||
double | hcoefficient | ||
) | const [inline, virtual] |
Add dkm * hcoefficient to the weight of this point index into the input map. This works for Profile types Constant, Thin and Surface since they only have a single node in the profile. It does not work for ProfileNPoint and ProfileEmpty so they override this method.
virtual bool geotess::GeoTessProfileEmpty::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::GeoTessProfile.
virtual bool geotess::GeoTessProfileEmpty::operator== | ( | const GeoTessProfile & | p | ) | const [inline, virtual] |
Return true if the input Profile object (p) equals this Profile object.
Reimplemented from geotess::GeoTessProfile.
virtual void geotess::GeoTessProfileEmpty::resetPointIndices | ( | ) | [inline, virtual] |
Reset all the pointIndex values to -1.
There is a node index for each Data object in a profile and they are indexed from 0 to the number of Data objects managed by a Profile. There is a pointIndex for every Data object in the entire model, indexed from 0 to the number of Data objects in the model.
virtual void geotess::GeoTessProfileEmpty::setData | ( | const vector< GeoTessData * > & | inData | ) | [inline, virtual] |
Resets the data object to the new input data
Reimplemented from geotess::GeoTessProfile.
virtual void geotess::GeoTessProfileEmpty::setData | ( | int | index, |
GeoTessData * | inData | ||
) | [inline, virtual] |
Resets the data object at index to the new input data.
Reimplemented from geotess::GeoTessProfile.
virtual void geotess::GeoTessProfileEmpty::setInterpolationCoefficients | ( | const GeoTessInterpolatorType & | interpType, |
vector< int > & | nodeIndexes, | ||
vector< double > & | coefficients, | ||
double & | radius, | ||
bool & | allowOutOfRange | ||
) | [inline, virtual] |
virtual void geotess::GeoTessProfileEmpty::setPointIndex | ( | int | nodeIndex, |
int | pointIndex | ||
) | [inline, virtual] |
Set the pointIndex that corresponds to the supplied nodeIndex.
There is a node index for each Data object in a profile and they are indexed from 0 to the number of Data objects managed by a Profile. There is a pointIndex for every Data object in the entire model, indexed from 0 to the number of Data objects in the model.
virtual void geotess::GeoTessProfileEmpty::setRadii | ( | const vector< float > & | newRadii | ) | [inline, virtual] |
Replace the radii currently associated with this Profile with new values.
Reimplemented from geotess::GeoTessProfile.
virtual void geotess::GeoTessProfileEmpty::write | ( | IFStreamBinary & | ofs | ) | [inline, virtual] |
Write the radii and data values to binary file.
virtual void geotess::GeoTessProfileEmpty::write | ( | IFStreamAscii & | ofs | ) | [inline, virtual] |
Write the radii and data values to binary file.