Stores detail information about a picked cell in a heightfield. More...
#include <VolumeViz/details/SoHeightFieldDetail.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
Returns the type identifier for this specific instance. | |
SoHeightFieldDetail () | |
Constructor. | |
virtual | ~SoHeightFieldDetail () |
Destructor. | |
double | getValue (size_t propertyNumber) const |
Returns the value of the picked cell in the specified property (SoHeightFieldProperty node). | |
size_t | getNumProperties () const |
Returns the number of active properties. | |
void | getProperty (size_t propertyNumber, SoHeightFieldProperty *&property, int &id) const |
Returns the specified property and its id. | |
const SbVec3i32 & | getIjkPos () const |
Returns the position in data space (cell coordinates) of the picked cell. | |
float | getHeight () const |
Get the height value of the nearest elevation point. | |
const SbVec4i32 & | getColor () const |
Returns the color of the picked cell. | |
virtual SoDetail * | copy () const |
Returns an instance that is a copy of this instance. | |
Public Member Functions inherited from SoTypedObject | |
SbBool | isOfType (const SoType &type) const |
Returns TRUE if this object is of the type specified in type or is derived from that type. | |
template<typename TypedObjectClass > | |
SbBool | isOfType () const |
Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class. | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Returns the type identifier for this class. | |
Static Public Member Functions inherited from SoDetail | |
static SoType | getClassTypeId () |
Returns type identifier for this class. | |
Static Public Member Functions inherited from SoTypedObject | |
static SoType | getClassTypeId () |
Returns the type identifier for this class. | |
Stores detail information about a picked cell in a heightfield.
A successful pick operation returns an SoPickedPoint object. If the picked geometry is an SoHeightFieldRender node, use the getDetail method and cast the result to this class to get extra information about the the pick.
SoHeightFieldDetail returns
SoDetail, SoHeightFieldProperty, SoHeightFieldGeometry, SoHeightFieldRender
Definition at line 72 of file SoHeightFieldDetail.h.
SoHeightFieldDetail::SoHeightFieldDetail | ( | ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Returns an instance that is a copy of this instance.
The caller is responsible for deleting the copy when it is no longer needed.
Implements SoDetail.
|
static |
Returns the type identifier for this class.
|
inline |
Returns the color of the picked cell.
Definition at line 123 of file SoHeightFieldDetail.h.
|
inline |
Get the height value of the nearest elevation point.
Definition at line 118 of file SoHeightFieldDetail.h.
const SbVec3i32 & SoHeightFieldDetail::getIjkPos | ( | ) | const |
Returns the position in data space (cell coordinates) of the picked cell.
|
inline |
Returns the number of active properties.
Definition at line 98 of file SoHeightFieldDetail.h.
void SoHeightFieldDetail::getProperty | ( | size_t | propertyNumber, |
SoHeightFieldProperty *& | property, | ||
int & | id | ||
) | const |
Returns the specified property and its id.
propertyNumber | is the number of the property to query. Use the getNumProperties method to get the number of properties. |
property | is filled with a pointer to the queried property. NULL if propertyNumber is invalid. |
id | is filled with the id of the property. -1 if propertyNumber is invalid. |
|
virtual |
Returns the type identifier for this specific instance.
Implements SoTypedObject.
double SoHeightFieldDetail::getValue | ( | size_t | propertyNumber | ) | const |
Returns the value of the picked cell in the specified property (SoHeightFieldProperty node).
propertyNumber | is the number of the property to query. |