Stores detail information about vertex-based shapes made of line segments. More...
#include <MeshVizXLM/mapping/details/MoLineDetail.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
MoLineDetail () | |
virtual | ~MoLineDetail () |
double | getValue (const SbVec3f &point) const |
std::vector< double > | getValues (const SbVec3f &point) const |
const MoMeshDetail * | getMeshDetail () const |
const MoLineMeshDetail * | getMeshRepresentationDetail () const |
virtual MoLineDetail * | copy () const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Stores detail information about vertex-based shapes made of line segments.
This class contains detail information about a line segment in a vertex-based shape made of line segments (extends SoLineDetail). Additional information includes the input mesh and the mesh representation details. It also allows computing the value of the mapped scalarset used for coloring at any points along the line segment.
Detail objects are returned by the SoPickedPoint class after picking.
SoDetail, SoPickedPoint, SoLineDetail, MoMeshDetail, MoLineMeshDetail, SoPickedPoint, SoPrimitiveVertex, SoVertexShape
MoLineDetail::MoLineDetail | ( | ) |
Constructor.
virtual MoLineDetail::~MoLineDetail | ( | ) | [virtual] |
Destructor.
virtual MoLineDetail* MoLineDetail::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 SoLineDetail.
Reimplemented in MoLineDetailI, MoLineDetailIj, and MoLineDetailIjk.
static SoType MoLineDetail::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoLineDetail.
Reimplemented in MoLineDetailI, MoLineDetailIj, and MoLineDetailIjk.
const MoMeshDetail* MoLineDetail::getMeshDetail | ( | ) | const [inline] |
Returns information about the input mesh containing the cell that the line belongs to, represented as a MoMeshDetail.
const MoLineMeshDetail* MoLineDetail::getMeshRepresentationDetail | ( | ) | const [inline] |
Returns information about the mesh representation (outline, clipline, .
..) containing the line, represented as an MoLineMeshDetail, if available, returns NULL otherwise.
virtual SoType MoLineDetail::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoLineDetail.
Reimplemented in MoLineDetailI, MoLineDetailIj, and MoLineDetailIjk.
double MoLineDetail::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 along the line or no mapped scalarset available.
std::vector<double> MoLineDetail::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.