Class MoLineDetail
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.details.SoDetail
com.openinventor.inventor.details.SoLineDetail
com.openinventor.meshvizxlm.mapping.details.MoLineDetail
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
MoLineDetailI
,MoLineDetailIjk
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.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Method Summary
Modifier and TypeMethodDescriptionclone()
copy()
Returns an instance that is a copy of this instance.Returns information about the input mesh containing the cell that the line belongs to, represented as aMoMeshDetail
.Returns information about the mesh representation (outline, ...) containing the line, represented as aMoLineMeshDetail
, if available, returns null otherwise.double
Computes and returns the value of the mapped scalarset at the given point.Methods inherited from class com.openinventor.inventor.details.SoLineDetail
getLineIndex, getPartIndex, getPoint, getPoint0, getPoint1, getPoints, setLineIndex, setPartIndex, setPoint, setPoint0, setPoint1
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Method Details
-
getValue
Computes and returns the value of the mapped scalarset at the given point. Returns Double.MAX_VALUE if point not along the line or no mapped scalarset available.- Parameters:
point
- a 3D point- Returns:
- the value of the mapped scalarset at the given point
-
getMeshDetail
Returns information about the input mesh containing the cell that the line belongs to, represented as aMoMeshDetail
.- Returns:
- information about the input mesh
-
getMeshRepresentationDetail
Returns information about the mesh representation (outline, ...) containing the line, represented as aMoLineMeshDetail
, if available, returns null otherwise.- Returns:
- information about the mesh representation or null if not available
-
copy
Description copied from class:SoLineDetail
Returns an instance that is a copy of this instance. The caller is responsible for deleting the copy when it is no longer needed.- Overrides:
copy
in classSoLineDetail
-
clone
-