GeoTessCPP  2.0.0
Software to facilitate storage and retrieval of 3D information about the Earth.
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros
Public Member Functions | Static Public Member Functions
geotess::ProfileSurface Class Reference

#include <ProfileSurface.h>

Inheritance diagram for geotess::ProfileSurface:
geotess::Profile

List of all members.

Public Member Functions

 ProfileSurface (Data *dat)
virtual int class_size () const
virtual const ProfileTypegetType () const
virtual bool operator== (const Profile &p) const
virtual double getValue (int attributeIndex, int nodeIndex) const
virtual double getValueTop (int attributeIndex) const
virtual bool isNaN (int nodeIndex, int attributeIndex)
virtual double getValue (const InterpolatorType &rInterpType, int attributeIndex, double radius, bool allowRadiusOutOfRange) const
virtual float getRadius (int i) const
virtual Data ** getData ()
virtual DatagetData (int i)
virtual const DatagetData (int i) const
virtual void setData (const vector< Data * > &inData)
virtual void setData (int index, Data *inData)
virtual void setRadii (const vector< float > &newRadii)
virtual float getRadiusTop () const
virtual const DatagetDataTop () const
virtual DatagetDataTop ()
virtual float getRadiusBottom () const
virtual const DatagetDataBottom () const
virtual DatagetDataBottom ()
virtual int getNRadii () const
virtual int getNData () const
virtual float * getRadii ()
- Public Member Functions inherited from geotess::Profile
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::Profile
static ProfilenewProfile (const vector< float > &radii, vector< Data * > &data)
static ProfilenewProfile (const vector< float > &radii, vector< vector< double > > &data)
static ProfilenewProfile (const vector< float > &radii, vector< vector< float > > &data)
static ProfilenewProfile (const vector< float > &radii, vector< vector< LONG_INT > > &data)
static ProfilenewProfile (const vector< float > &radii, vector< vector< int > > &data)
static ProfilenewProfile (const vector< float > &radii, vector< vector< short > > &data)
static ProfilenewProfile (const vector< float > &radii, vector< vector< byte > > &data)
static ProfilenewProfile (float *radii, const int &nRadii, Data **data, const int &nData)
static ProfilenewProfile (float *radii, const int &nRadii, double **values, const int &nNodes, const int &nAttributes)
static ProfilenewProfile (float *radii, const int &nRadii, float **values, const int &nNodes, const int &nAttributes)
static ProfilenewProfile (float *radii, const int &nRadii, LONG_INT **values, const int &nNodes, const int &nAttributes)
static ProfilenewProfile (float *radii, const int &nRadii, int **values, const int &nNodes, const int &nAttributes)
static ProfilenewProfile (float *radii, const int &nRadii, short **values, const int &nNodes, const int &nAttributes)
static ProfilenewProfile (float *radii, const int &nRadii, byte **values, const int &nNodes, const int &nAttributes)
static int class_count ()

Detailed Description

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.


Constructor & Destructor Documentation

geotess::ProfileSurface::ProfileSurface ( Data dat)
inline

Default constructor.


Member Function Documentation

static string geotess::ProfileSurface::class_name ( )
inlinestatic

Returns the class name.

Reimplemented from geotess::Profile.

virtual int geotess::ProfileSurface::class_size ( ) const
inlinevirtual

Returns the class size.

Reimplemented from geotess::Profile.

virtual Data** geotess::ProfileSurface::getData ( )
inlinevirtual

Retrieve a reference to all of the Data obects associated with this Profile.

Reimplemented from geotess::Profile.

virtual Data* geotess::ProfileSurface::getData ( int  i)
inlinevirtual

Retrieve a reference the i'th Data object

Reimplemented from geotess::Profile.

virtual const Data& geotess::ProfileSurface::getData ( int  i) const
inlinevirtual

Retrieve a reference the i'th Data object

Reimplemented from geotess::Profile.

virtual const Data& geotess::ProfileSurface::getDataBottom ( ) const
inlinevirtual

Get the Data object at the bottom of the profile.

Reimplemented from geotess::Profile.

virtual Data* geotess::ProfileSurface::getDataBottom ( )
inlinevirtual

Get the Data object at the bottom of the profile.

Reimplemented from geotess::Profile.

virtual const Data& geotess::ProfileSurface::getDataTop ( ) const
inlinevirtual

Get the Data object at the top of the profile.

Reimplemented from geotess::Profile.

virtual Data* geotess::ProfileSurface::getDataTop ( )
inlinevirtual

Get the Data object at the top of the profile.

Reimplemented from geotess::Profile.

virtual int geotess::ProfileSurface::getNData ( ) const
inlinevirtual

Get the number of Data objects that comprise this profile.

Reimplemented from geotess::Profile.

virtual int geotess::ProfileSurface::getNRadii ( ) const
inlinevirtual

Get the number of radii that comprise this profile.

Reimplemented from geotess::Profile.

virtual float* geotess::ProfileSurface::getRadii ( )
inlinevirtual

Returns NULL

Reimplemented from geotess::Profile.

virtual float geotess::ProfileSurface::getRadius ( int  i) const
inlinevirtual

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
inlinevirtual

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

Reimplemented from geotess::Profile.

virtual float geotess::ProfileSurface::getRadiusTop ( ) const
inlinevirtual

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

Reimplemented from geotess::Profile.

virtual const ProfileType& geotess::ProfileSurface::getType ( ) const
inlinevirtual

Returns ProfileType (SURFACE).

Returns:
ProfileType (SURFACE).

Reimplemented from geotess::Profile.

virtual double geotess::ProfileSurface::getValue ( int  attributeIndex,
int  nodeIndex 
) const
inlinevirtual

Retrieve the value of the specified attribute from this profile at the specified node index

Parameters:
attributeIndex
nodeIndex
Returns:
double

Reimplemented from geotess::Profile.

virtual double geotess::ProfileSurface::getValue ( const InterpolatorType rInterpType,
int  attributeIndex,
double  radius,
bool  allowRadiusOutOfRange 
) const
inlinevirtual

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
inlinevirtual

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

Parameters:
attributeIndex
Returns:
double

Reimplemented from geotess::Profile.

virtual bool geotess::ProfileSurface::isNaN ( int  nodeIndex,
int  attributeIndex 
)
inlinevirtual

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::Profile.

virtual bool geotess::ProfileSurface::operator== ( const Profile p) const
inlinevirtual

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)
inlinevirtual

Resets the data object to the new input data

Reimplemented from geotess::Profile.

virtual void geotess::ProfileSurface::setData ( int  index,
Data inData 
)
inlinevirtual

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

Reimplemented from geotess::Profile.

virtual void geotess::ProfileSurface::setRadii ( const vector< float > &  newRadii)
inlinevirtual

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

Reimplemented from geotess::Profile.


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