Stores detail information about vertex-based shapes made of faces. More...
#include <MeshVizXLM/mapping/details/MoFaceDetail.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
Returns the type identifier for this specific instance. | |
MoFaceDetail () | |
Constructor. | |
virtual | ~MoFaceDetail () |
Destructor. | |
double | getValue (const SbVec3f &point) const |
Computes and returns the first value of the mapped scalarset at the given point. | |
std::vector< double > | getValues (const SbVec3f &point) const |
Computes and returns all values of the mapped scalarsets at the given point. | |
const MoMeshDetail * | getMeshDetail () const |
Returns information about the input mesh containing the cell that the face belongs to, represented as a MoMeshDetail. | |
const MoSurfaceMeshDetail * | getMeshRepresentationDetail () const |
Returns information about the mesh representation (skin, isosurface...) containing the face, represented as a MoSurfaceMeshDetail, if available, returns NULL otherwise. | |
virtual MoFaceDetail * | copy () const |
Returns an instance that is a copy of this instance. | |
Public Member Functions inherited from SoFaceDetail | |
SoFaceDetail () | |
Constructor. | |
virtual | ~SoFaceDetail () |
Destructor. | |
int32_t | getNumPoints () const |
Returns the number of points in the face. | |
const SoPointDetail * | getPoint (int i) const |
Returns information about the point forming the i'th vertex of the face, represented as an SoPointDetail. | |
int32_t | getFaceIndex () const |
Returns the index of the face within the shape. | |
int32_t | getPartIndex () const |
Returns the index of the part containing the face within the shape. | |
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 SoFaceDetail | |
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 vertex-based shapes made of faces.
This class contains detail information about a face in a vertex-based shape made of faces (extends SoFaceDetail). Additional information includes the input mesh and mesh representation details. It also allows computing the value of the mapped scalarset used for coloring at any points in the face.
Detail objects are returned by the SoPickedPoint class after picking.
SoDetail, SoFaceDetail, SoPickedPoint, MoMeshDetail, MoSurfaceMeshDetail, SoPickedPoint, SoPrimitiveVertex, SoVertexShape
Definition at line 73 of file MoFaceDetail.h.
MoFaceDetail::MoFaceDetail | ( | ) |
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.
Reimplemented from SoFaceDetail.
Reimplemented in MoFaceDetailI, MoFaceDetailIj, and MoFaceDetailIjk.
|
static |
Returns the type identifier for this class.
|
inline |
Returns information about the input mesh containing the cell that the face belongs to, represented as a MoMeshDetail.
Definition at line 103 of file MoFaceDetail.h.
|
inline |
Returns information about the mesh representation (skin, isosurface...) containing the face, represented as a MoSurfaceMeshDetail, if available, returns NULL otherwise.
Definition at line 110 of file MoFaceDetail.h.
|
virtual |
Returns the type identifier for this specific instance.
Reimplemented from SoFaceDetail.
Reimplemented in MoFaceDetailI, MoFaceDetailIj, and MoFaceDetailIjk.
double MoFaceDetail::getValue | ( | const SbVec3f & | point | ) | const |
Computes and returns the first value of the mapped scalarset at the given point.
Returns DBL_MAX if point not inside the face or no mapped scalarset available.
std::vector< double > MoFaceDetail::getValues | ( | const SbVec3f & | point | ) | const |
Computes and returns all values of the mapped scalarsets at the given point.
Returns an empty vector if point not inside the face or no mapped scalarset available.