GeoTessCPP  2.0.0
Software to facilitate storage and retrieval of 3D information about the Earth.
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines
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 Data ** getData ()
virtual DatagetData (int i)
virtual const DatagetData (int i) const
virtual const DatagetDataBottom () const
virtual DatagetDataBottom ()
virtual const DatagetDataTop () const
virtual DatagetDataTop ()
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 ProfileTypegetType () 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 ()

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 ( ) [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]

Returns ProfileType (SURFACE).

Returns:
ProfileType (SURFACE).

Reimplemented from geotess::Profile.

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

Parameters:
attributeIndex
nodeIndex
Returns:
double

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.

Parameters:
attributeIndex
Returns:
double

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.

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 [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.


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