public class ScRayPickAction extends SoRayPickAction
ScRayPickAction
class provides a simple way to distribute an SoRayPickAction
across a cluster.
Several distribution modes are available:
When OIRUs are involved (i.e., in CLUSTER_ONLY and ALL modes), they apply the action on their own part of the scene graph. The application gets back the result via the callback defined by the user.
This class can be used in all compositing modes (flat, tile, depth, and local compositing).
See also:
SoRayPickAction.PickingModes
SoAction.AppliedCodes, SoAction.DistribModes, SoAction.PathCodes, SoAction.PathIndices
Inventor.ConstructorCommand
DEFAULT, POINT_PICKING
ALL, BELOW_PATH, CLUSTER_ONLY, IN_PATH, LOCAL_ONLY, NO_PATH, NODE, OFF_PATH, PATH, PATH_LIST
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
static void |
enableElement(java.lang.Class<? extends Inventor> t,
int stkIndex) |
SbVec3f |
getppNormal()
Returns the picked point normal.
|
SoPath |
getppPath()
Returns the picked point path.
|
SbVec3f |
getppPoint()
Returns the picked point.
|
boolean |
isValidPp()
Returns 0 if nothing has been picked.
|
void |
setNormalizedPoint(SbVec2f normPoint)
Sets the viewport point in normalized coordinates, which range from (0,0) at the lower left to (1,1) at the upper right.
|
void |
setPoint(SbVec2f viewportPoint)
Float version of
setPoint() . |
void |
setPoint(SbVec2s viewportPoint)
Sets the viewport-space point through which the ray passes, starting at the camera's viewpoint.
|
void |
setRay(float fovy,
SbVec3f rayStart,
SbVec3f rayDirection)
Calls setRay(fovy, rayStart, rayDirection, (float)-1, (float)-1).
|
void |
setRay(float fovy,
SbVec3f rayStart,
SbVec3f rayDirection,
float nearDistance)
Calls setRay(fovy, rayStart, rayDirection, nearDistance, (float)-1).
|
void |
setRay(float fovy,
SbVec3f rayStart,
SbVec3f rayDirection,
float nearDistance,
float farDistance)
Sets a world-space ray along which to pick in the the same way as function defined above, but allows you to set a view angle value.
|
void |
setRay(SbVec3f rayStart,
SbVec3f rayDirection)
Calls setRay(rayStart, rayDirection, (float)-1, (float)-1).
|
void |
setRay(SbVec3f rayStart,
SbVec3f rayDirection,
float nearDistance)
Calls setRay(rayStart, rayDirection, nearDistance, (float)-1).
|
void |
setRay(SbVec3f rayStart,
SbVec3f rayDirection,
float nearDistance,
float farDistance)
Sets a world-space ray along which to pick.
|
addIntersection, clearPickedPointList, computeWorldSpaceRay, enableConicPickVolume, enableNormalsGeneration, enableRadiusForTriangles, enableTexCoordsGeneration, enableTriangleCulling, getLine, getNormalizedPoint, getPickedPoint, getPickedPoint, getPickedPointList, getPickedPointsListLength, getPickingMode, getPoint, getPointFloat, getRadius, getStereoMode, getUnsortedPickedPoint, getViewVolume, hasWorldSpaceRay, intersect, intersect, intersect, intersect, intersect, intersect, isBetweenPlanes, isConicPickVolume, isNormalsGenerationEnabled, isPickAll, isRadiusEnableForTriangles, isTexCoordsGenerationEnabled, isTriangleCulling, setObjectSpace, setObjectSpace, setPickAll, setPickingMode, setRadius, setStereoMode
enableCulling, getViewportRegion, isCullingEnabled, setViewportRegion
apply, apply, clearApplyResult, forwardTraversal, getContinueActionInBranchFlag, getCurPath, getNodeAppliedTo, getOriginalPathListAppliedTo, getPathAppliedTo, getPathCode, getPathListAppliedTo, getPipeId, getSceneManager, getState, getWhatAppliedTo, hasTerminated, invalidateState, isBeingApplied, isLastPathListAppliedTo, isUsingAlternateRep, nullAction, postDelayedTraversal, preDelayedTraversal, resetContinueActionInBranchFlag, setPipeId, setSceneManager, setUpState, stopActionInBranch, traverse, useAlternateRep
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public void setRay(SbVec3f rayStart, SbVec3f rayDirection)
setRay
in class SoRayPickAction
public void setRay(float fovy, SbVec3f rayStart, SbVec3f rayDirection)
setRay
in class SoRayPickAction
public void setRay(SbVec3f rayStart, SbVec3f rayDirection, float nearDistance)
setRay
in class SoRayPickAction
public void setRay(float fovy, SbVec3f rayStart, SbVec3f rayDirection, float nearDistance)
setRay
in class SoRayPickAction
public SbVec3f getppNormal()
public void setRay(float fovy, SbVec3f rayStart, SbVec3f rayDirection, float nearDistance, float farDistance)
SoPreferences
.setRay
in class SoRayPickAction
public void setPoint(SbVec2s viewportPoint)
NOTE: You can use this method or the setNormalizedPoint
/ setRay
methods. Whichever method you call last is the one that takes effect.
setPoint
in class SoRayPickAction
public void setNormalizedPoint(SbVec2f normPoint)
setPoint
/ setRay
methods. Whichever method you call last is the one that takes effect.setNormalizedPoint
in class SoRayPickAction
public void setPoint(SbVec2f viewportPoint)
setPoint()
.
It can be used when a desktop is magnified on a wall of screens when using ScaleViz in correlation with a tracker device calibrated for this wall.setPoint
in class SoRayPickAction
public boolean isValidPp()
public static void enableElement(java.lang.Class<? extends Inventor> t, int stkIndex)
public SoPath getppPath()
public SbVec3f getppPoint()
public void setRay(SbVec3f rayStart, SbVec3f rayDirection, float nearDistance, float farDistance)
SoCamera
. A negative distance (such as the default values) means disable clipping to that plane.
NOTE: You can use this method or the setPoint
/ setNormalizedPoint
methods. Whichever method you call last is the one that takes effect.
setRay
in class SoRayPickAction
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com