Stores detail information about vertex-based shapes made of faces. More...
#include <MeshVizXLM/mapping/details/MoFaceDetail.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
MoFaceDetail () | |
virtual | ~MoFaceDetail () |
double | getValue (const SbVec3f &point) const |
std::vector< double > | getValues (const SbVec3f &point) const |
const MoMeshDetail * | getMeshDetail () const |
const MoSurfaceMeshDetail * | getMeshRepresentationDetail () const |
virtual MoFaceDetail * | copy () const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
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
MoFaceDetail::MoFaceDetail | ( | ) |
Constructor.
virtual MoFaceDetail::~MoFaceDetail | ( | ) | [virtual] |
Destructor.
virtual MoFaceDetail* MoFaceDetail::copy | ( | ) | const [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 SoType MoFaceDetail::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoFaceDetail.
Reimplemented in MoFaceDetailI, MoFaceDetailIj, and MoFaceDetailIjk.
const MoMeshDetail* MoFaceDetail::getMeshDetail | ( | ) | const [inline] |
Returns information about the input mesh containing the cell that the face belongs to, represented as a MoMeshDetail.
const MoSurfaceMeshDetail* MoFaceDetail::getMeshRepresentationDetail | ( | ) | const [inline] |
Returns information about the mesh representation (skin, isosurface.
..) containing the face, represented as a MoSurfaceMeshDetail, if available, returns NULL otherwise.
virtual SoType MoFaceDetail::getTypeId | ( | ) | const [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.