GeoTessCPP 2.6.1 Software to facilitate storage and retrieval of 3D information about the Earth.

Loading...
Searching...
No Matches
geotess::GeoTessProfileConstant Class Reference

A Profile object that defines two radii at the bottom and top of the associated layer, and a single Data object that represents the model values throughout the layer. More...

`#include <GeoTessProfileConstant.h>`

Inheritance diagram for geotess::GeoTessProfileConstant:

## Public Member Functions
| GeoTessProfileConstant (float radBot, float radTop, GeoTessData *dat)
virtual int | class_size () const
virtual LONG_INT | getMemory ()
virtual const GeoTessProfileType & | getType () const
virtual bool | operator== (const GeoTessProfile &p) const
virtual float | getRadius (int i) const
virtual int | getNRadii () const
virtual int | getNData () const
virtual float * | getRadii ()
virtual GeoTessData ** | getData ()
virtual GeoTessData * | getData (int i)
virtual const GeoTessData & | getData (int i) const
virtual void | setData (const vector< GeoTessData * > &inData)
virtual void | setData (int index, GeoTessData *inData)
virtual double | getValue (int attributeIndex, int nodeIndex) const
virtual double | getValue (const GeoTessInterpolatorType &rInterpType, int attributeIndex, double radius, bool allowRadiusOutOfRange) const
virtual double | getValueTop (int attributeIndex) const
virtual bool | isNaN (int nodeIndex, int attributeIndex)
virtual void | setRadii (const vector< float > &newRadii)
virtual void | setRadius (int index, float radius)
virtual float | getRadiusTop () const
virtual const GeoTessData & | getDataTop () const
virtual GeoTessData * | getDataTop ()
virtual float | getRadiusBottom () const
virtual const GeoTessData & | getDataBottom () const
virtual GeoTessData * | getDataBottom ()
Public Member Functions inherited from geotess::GeoTessProfile
double | getValue (const vector< int > &nodeIds, const vector< double > &coefficients, int attributeIndex) const
virtual double | getValueBottom (int attributeIndex) const
double | getThickness ()
int | getRadiusIndex (double radius) const
virtual int | getRadiusIndex (double radius, int jlo) const
virtual double | getInterpolationCoefficient (int i, double radius, bool allowOutOfRange) const
virtual int | getPointIndex (int nodeIndex) const
virtual int | findClosestRadiusIndex (double radius) const

## Static Public Member Functions
static string | class_name ()
Static Public Member Functions inherited from geotess::GeoTessProfile
static GeoTessProfile * | newProfile (const vector< float > &radii, vector< GeoTessData * > &data)
static GeoTessProfile * | newProfile (const vector< float > &radii, vector< vector< double > > &data)
static GeoTessProfile * | newProfile (const vector< float > &radii, vector< vector< float > > &data)
static GeoTessProfile * | newProfile (const vector< float > &radii, vector< vector< LONG_INT > > &data)
static GeoTessProfile * | newProfile (const vector< float > &radii, vector< vector< int > > &data)
static GeoTessProfile * | newProfile (const vector< float > &radii, vector< vector< short > > &data)
static GeoTessProfile * | newProfile (const vector< float > &radii, vector< vector< byte > > &data)
static GeoTessProfile * | newProfile (float *radii, const int &nRadii, GeoTessData **data, const int &nData)
static GeoTessProfile * | newProfile (float *radii, const int &nRadii, double **values, const int &nNodes, const int &nAttributes)
static GeoTessProfile * | newProfile (float *radii, const int &nRadii, float **values, const int &nNodes, const int &nAttributes)
static GeoTessProfile * | newProfile (float *radii, const int &nRadii, LONG_INT **values, const int &nNodes, const int &nAttributes)
static GeoTessProfile * | newProfile (float *radii, const int &nRadii, int **values, const int &nNodes, const int &nAttributes)
static GeoTessProfile * | newProfile (float *radii, const int &nRadii, short **values, const int &nNodes, const int &nAttributes)
static GeoTessProfile * | newProfile (float *radii, const int &nRadii, byte **values, const int &nNodes, const int &nAttributes)
static string | class_name ()
static int | class_count ()

## Detailed Description

A Profile object that defines two radii at the bottom and top of the associated layer, and a single Data object that represents the model values throughout the layer.

A Profile object that defines two radii, one at the bottom and other at the top of the associated layer, and a single Data object that represents the model values throughout the layer.

Definition at line 76 of file GeoTessProfileConstant.h.

## Constructor & Destructor Documentation

## ◆ GeoTessProfileConstant()

geotess::GeoTessProfileConstant::GeoTessProfileConstant | ( | float | radBot,
|  | float | radTop,
|  | GeoTessData * | dat )
| inline

Default constructor.

Definition at line 111 of file GeoTessProfileConstant.h.

## Member Function Documentation

## ◆ class_name()

string geotess::GeoTessProfileConstant::class_name | ( |  | ) |
| inline static

Returns the class name.

Definition at line 118 of file GeoTessProfileConstant.h.

## ◆ class_size()

virtual int geotess::GeoTessProfileConstant::class_size | ( |  | ) | const
| inline virtual

Returns the class size.

Reimplemented from geotess::GeoTessProfile.

Definition at line 123 of file GeoTessProfileConstant.h.

## ◆ getData() [1/3]

virtual GeoTessData ** geotess::GeoTessProfileConstant::getData | ( |  | ) |
| inline virtual

Retrieve a shallow copy of all of the Data objects associated with this Profile.

Reimplemented from geotess::GeoTessProfile.

Definition at line 172 of file GeoTessProfileConstant.h.

## ◆ getData() [2/3]

virtual GeoTessData * geotess::GeoTessProfileConstant::getData | ( | int | i | ) |
| inline virtual

Retrieve a reference the i'th Data object

Reimplemented from geotess::GeoTessProfile.

Definition at line 178 of file GeoTessProfileConstant.h.

## ◆ getData() [3/3]

virtual const GeoTessData & geotess::GeoTessProfileConstant::getData | ( | int | i | ) | const
| inline virtual

Retrieve a reference the i'th Data object

Reimplemented from geotess::GeoTessProfile.

Definition at line 183 of file GeoTessProfileConstant.h.

## ◆ getDataBottom() [1/2]

virtual GeoTessData * geotess::GeoTessProfileConstant::getDataBottom | ( |  | ) |
| inline virtual

Get the Data object at the bottom of the profile.

Reimplemented from geotess::GeoTessProfile.

Definition at line 304 of file GeoTessProfileConstant.h.

## ◆ getDataBottom() [2/2]

virtual const GeoTessData & geotess::GeoTessProfileConstant::getDataBottom | ( |  | ) | const
| inline virtual

Get the Data object at the bottom of the profile.

Reimplemented from geotess::GeoTessProfile.

Definition at line 299 of file GeoTessProfileConstant.h.

## ◆ getDataTop() [1/2]

virtual GeoTessData * geotess::GeoTessProfileConstant::getDataTop | ( |  | ) |
| inline virtual

Get the Data object at the top of the profile.

Reimplemented from geotess::GeoTessProfile.

Definition at line 289 of file GeoTessProfileConstant.h.

## ◆ getDataTop() [2/2]

virtual const GeoTessData & geotess::GeoTessProfileConstant::getDataTop | ( |  | ) | const
| inline virtual

Get the Data object at the top of the profile.

Reimplemented from geotess::GeoTessProfile.

Definition at line 284 of file GeoTessProfileConstant.h.

## ◆ getMemory()

virtual LONG_INT geotess::GeoTessProfileConstant::getMemory | ( |  | ) |
| inline virtual

Reimplemented from geotess::GeoTessProfile.

Definition at line 126 of file GeoTessProfileConstant.h.

## ◆ getNData()

virtual int geotess::GeoTessProfileConstant::getNData | ( |  | ) | const
| inline virtual

Get the number of Data objects that comprise this profile.

Reimplemented from geotess::GeoTessProfile.

Definition at line 161 of file GeoTessProfileConstant.h.

## ◆ getNRadii()

virtual int geotess::GeoTessProfileConstant::getNRadii | ( |  | ) | const
| inline virtual

Get the number of radii that comprise this profile.

Reimplemented from geotess::GeoTessProfile.

Definition at line 156 of file GeoTessProfileConstant.h.

## ◆ getRadii()

virtual float * geotess::GeoTessProfileConstant::getRadii | ( |  | ) |
| inline virtual

Retrieve a deep copy of the radii values in km.

Reimplemented from geotess::GeoTessProfile.

Definition at line 166 of file GeoTessProfileConstant.h.

## ◆ getRadius()

virtual float geotess::GeoTessProfileConstant::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.

Definition at line 150 of file GeoTessProfileConstant.h.

## ◆ getRadiusBottom()

virtual float geotess::GeoTessProfileConstant::getRadiusBottom | ( |  | ) | const
| inline virtual

Get the radius at the bottom of the profile, in km.

Reimplemented from geotess::GeoTessProfile.

Definition at line 294 of file GeoTessProfileConstant.h.

## ◆ getRadiusTop()

virtual float geotess::GeoTessProfileConstant::getRadiusTop | ( |  | ) | const
| inline virtual

Get the radius at the top of the profile, in km.

Reimplemented from geotess::GeoTessProfile.

Definition at line 279 of file GeoTessProfileConstant.h.

## ◆ getType()

virtual const GeoTessProfileType & geotess::GeoTessProfileConstant::getType | ( |  | ) | const
| inline virtual

Returns ProfileType (CONSTANT).

Returns
  ProfileType (CONSTANT).

Reimplemented from geotess::GeoTessProfile.

Definition at line 133 of file GeoTessProfileConstant.h.

## ◆ getValue() [1/2]

virtual double geotess::GeoTessProfileConstant::getValue | ( | const GeoTessInterpolatorType & | rInterpType,
|  | int | attributeIndex,
|  | double | radius,
|  | bool | allowRadiusOutOfRange ) const
| inline virtual

Retrieve the value of the specified attribute interpolated at the specified radius.

Parameters

  rInterpType | either Int
  attributeIndex |
  radius | radius in km
  allowRadiusOutOfRange |

Returns
  interpolated attribute value

Reimplemented from geotess::GeoTessProfile.

Definition at line 217 of file GeoTessProfileConstant.h.

## ◆ getValue() [2/2]

virtual double geotess::GeoTessProfileConstant::getValue | ( | int | attributeIndex,
|  | int | nodeIndex ) const
| inline virtual

Retrieve the value of the specified attribute interpolated from this profile at the specified radius index

Parameters

  attributeIndex |
  nodeIndex |

Returns
  double

Reimplemented from geotess::GeoTessProfile.

Definition at line 205 of file GeoTessProfileConstant.h.

## ◆ getValueTop()

virtual double geotess::GeoTessProfileConstant::getValueTop | ( | int | attributeIndex | ) | const
| inline virtual

Retrieve the value of the specified attribute at the top of the layer.

Parameters

  attributeIndex |

Returns
  double

Reimplemented from geotess::GeoTessProfile.

Definition at line 239 of file GeoTessProfileConstant.h.

## ◆ isNaN()

virtual bool geotess::GeoTessProfileConstant::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.

Parameters

  nodeIndex |
  attributeIndex |

Returns
  true if the specified Data value is NaN.

Reimplemented from geotess::GeoTessProfile.

Definition at line 252 of file GeoTessProfileConstant.h.

## ◆ operator==()

virtual bool geotess::GeoTessProfileConstant::operator== | ( | const GeoTessProfile & | p | ) | const
| inline virtual

Return true if the input Profile object (p) equals this Profile object.

Reimplemented from geotess::GeoTessProfile.

Definition at line 139 of file GeoTessProfileConstant.h.

## ◆ setData() [1/2]

virtual void geotess::GeoTessProfileConstant::setData | ( | const vector< GeoTessData * > & | inData | ) |
| inline virtual

Resets the data object to the new input data

Reimplemented from geotess::GeoTessProfile.

Definition at line 188 of file GeoTessProfileConstant.h.

## ◆ setData() [2/2]

virtual void geotess::GeoTessProfileConstant::setData | ( | int | index,
|  | GeoTessData * | inData )
| inline virtual

Resets the data object at index to the new input data.

Reimplemented from geotess::GeoTessProfile.

Definition at line 194 of file GeoTessProfileConstant.h.

## ◆ setRadii()

virtual void geotess::GeoTessProfileConstant::setRadii | ( | const vector< float > & | newRadii | ) |
| inline virtual

Replace the radii currently associated with this Profile with new values.

Reimplemented from geotess::GeoTessProfile.

Definition at line 260 of file GeoTessProfileConstant.h.

## ◆ setRadius()

virtual void geotess::GeoTessProfileConstant::setRadius | ( | int | index,
|  | float | radius )
| inline virtual

Replace the radius at the specified nodeIndex.

Reimplemented from geotess::GeoTessProfile.

Definition at line 263 of file GeoTessProfileConstant.h.

The documentation for this class was generated from the following file:

- rstt_v3.2.1/GeoTessCPP/include/GeoTessProfileConstant.h