Class SoPickAction
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.actions.SoAction
-
- com.openinventor.inventor.actions.SoPickAction
-
- Direct Known Subclasses:
SoRayPickAction
public class SoPickAction extends SoAction
Abstract base class for picking objects in a scene. This is an abstract base class for all picking actions. Currently, the only supported subclass is theSoRayPickAction
.- See Also:
SoRayPickAction
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.actions.SoAction
SoAction.AppliedCodes, SoAction.DistribModes, SoAction.PathCodes, SoAction.PathIndices
-
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enableCulling(boolean flag)
static void
enableElement(java.lang.Class<? extends Inventor> t, int stkIndex)
SbViewportRegion
getViewportRegion()
Returns current viewport region to use for action.boolean
isCullingEnabled()
void
setViewportRegion(SbViewportRegion newRegion)
Sets current viewport region to use for action.-
Methods inherited from class com.openinventor.inventor.actions.SoAction
apply, apply, clearApplyResult, forwardTraversal, forwardTraversal, getContinueActionInBranchFlag, getCurPath, getDistribMode, getNodeAppliedTo, getOriginalPathListAppliedTo, getPathAppliedTo, getPathCode, getPathListAppliedTo, getPipeId, getSceneManager, getState, getWhatAppliedTo, hasTerminated, invalidateState, isBeingApplied, isLastPathListAppliedTo, isUsingAlternateRep, nullAction, postDelayedTraversal, preDelayedTraversal, resetContinueActionInBranchFlag, setPipeId, setSceneManager, setUpState, stopActionInBranch, traverse, useAlternateRep
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
setViewportRegion
public void setViewportRegion(SbViewportRegion newRegion)
Sets current viewport region to use for action. Even though the picking operation may not involve a window per se, some nodes need this information to determine their size and placement.
-
enableElement
public static void enableElement(java.lang.Class<? extends Inventor> t, int stkIndex)
-
isCullingEnabled
public boolean isCullingEnabled()
-
enableCulling
public void enableCulling(boolean flag)
-
getViewportRegion
public SbViewportRegion getViewportRegion()
Returns current viewport region to use for action.
-
-