public abstract class SoAction extends Inventor
SoAction is the base class for all actions. Classes derived from SoAction define operations to be applied at each node encountered during traversal of a scene graph. The function that gets called to implement the action for a particular node type is determined by a lookup table in the global database.
 An action may be applied to a node (SoNode), a path (SoPath) or a list of paths (SoPathList).
 
Hidden references:  Some actions, e.g. SoSearchAction and SoRayPickAction, create one or more SoPath objects when they are applied to the scene graph. The SoPath object references each node in the path. This reference will prevent the node and its associated memory from being reclaimed for as long as the SoPath object exists. These SoPath objects are stored internally in the action and exist until the action object itself is reclaimed or reset.
 
 See also:
 SoNode, SoPath, SoPathList, SoCallbackAction, SoGLRenderAction, SoGetBoundingBoxAction, SoGetMatrixAction, SoHandleEventAction, SoPickAction, SoRayPickAction, SoSearchAction, SoWriteAction
| Modifier and Type | Class and Description | 
|---|---|
| static class  | SoAction.AppliedCodes | 
| static class  | SoAction.DistribModesThis is used to define the way an action is distributed across a cluster. | 
| static class  | SoAction.PathCodes | 
| static class  | SoAction.PathIndices | 
Inventor.ConstructorCommand| Modifier and Type | Field and Description | 
|---|---|
| static int | ALLDeprecated. 
 Use  SoAction.DistribModes.ALLinstead. | 
| static int | BELOW_PATHDeprecated. 
 Use  SoAction.PathCodes.BELOW_PATHinstead. | 
| static int | CLUSTER_ONLYDeprecated. 
 Use  SoAction.DistribModes.CLUSTER_ONLYinstead. | 
| static int | IN_PATHDeprecated. 
 Use  SoAction.PathCodes.IN_PATHinstead. | 
| static int | LOCAL_ONLYDeprecated. 
 Use  SoAction.DistribModes.LOCAL_ONLYinstead. | 
| static int | NO_PATHDeprecated. 
 Use  SoAction.PathCodes.NO_PATHinstead. | 
| static int | NODEDeprecated. 
 Use  SoAction.AppliedCodes.NODEinstead. | 
| static int | OFF_PATHDeprecated. 
 Use  SoAction.PathCodes.OFF_PATHinstead. | 
| static int | PATHDeprecated. 
 Use  SoAction.AppliedCodes.PATHinstead. | 
| static int | PATH_LISTDeprecated. 
 Use  SoAction.AppliedCodes.PATH_LISTinstead. | 
VERBOSE_LEVEL, ZeroHandle| Modifier and Type | Method and Description | 
|---|---|
| void | apply(SoNode node)Initiates an action on the graph defined by a node. | 
| void | apply(SoPath path)Initiates an action on the graph defined by a path. | 
| void | clearApplyResult()When applied, an action may reference nodes or create objects (e.g. | 
| void | forwardTraversal(SoNode node)Traverse a node that is not part of the current scenegraph. | 
| boolean | getContinueActionInBranchFlag()This function indicates if the action must stop in the current branch. | 
| SoPath | getCurPath() | 
| SoNode | getNodeAppliedTo() | 
| java.util.Vector<SoPath> | getOriginalPathListAppliedTo() | 
| SoPath | getPathAppliedTo() | 
| SoAction.PathIndices | getPathCode()Returns path code based on where current node (the node at the end of the current path) lies with respect to the path(s) the action is being applied to. | 
| java.util.Vector<SoPath> | getPathListAppliedTo() | 
| int | getPipeId()Gets pipe identifier in the range [1..N] associated to this render action while running a ScaleViz Multipipe configuration. | 
| SoSceneManager | getSceneManager()Return the  SoSceneManagerassociated with this action. | 
| SoState | getState() | 
| SoAction.AppliedCodes | getWhatAppliedTo() | 
| boolean | hasTerminated() | 
| void | invalidateState()Invalidates the current traversal state in the action, forcing it to be recreated when the action is next applied. | 
| boolean | isBeingApplied()Returns true if this action is currently being applied. | 
| boolean | isLastPathListAppliedTo() | 
| boolean | isUsingAlternateRep()Returns true if current action is using alternate representations. | 
| static void | nullAction(SoAction name_8676,
          SoNode name_8677) | 
| void | postDelayedTraversal()Method called by SoMultiPassManager after delayed pass traversals. | 
| boolean | preDelayedTraversal()Method called by SoMultiPassManager before delayed pass traversals. | 
| void | resetContinueActionInBranchFlag()This function resets the continue action flag. | 
| void | setPipeId(int id)Sets pipe identifier in the range [1..N] associated to this render action while running a ScaleViz Multipipe configuration. | 
| void | setSceneManager(SoSceneManager mgr)Set the scene manager associated with this action (if any ). | 
| void | setUpState() | 
| void | stopActionInBranch()This function stops the action in the current Scene Graph branch. | 
| void | traverse(SoNode node) | 
| void | useAlternateRep(boolean enable)Tell the action to use alternate representations during traversal when available. | 
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads@Deprecated public static final int LOCAL_ONLY
SoAction.DistribModes.LOCAL_ONLY instead.@Deprecated public static final int CLUSTER_ONLY
SoAction.DistribModes.CLUSTER_ONLY instead.@Deprecated public static final int ALL
SoAction.DistribModes.ALL instead.@Deprecated public static final int NODE
SoAction.AppliedCodes.NODE instead.@Deprecated public static final int PATH
SoAction.AppliedCodes.PATH instead.@Deprecated public static final int PATH_LIST
SoAction.AppliedCodes.PATH_LIST instead.@Deprecated public static final int NO_PATH
SoAction.PathCodes.NO_PATH instead.@Deprecated public static final int IN_PATH
SoAction.PathCodes.IN_PATH instead.@Deprecated public static final int BELOW_PATH
SoAction.PathCodes.BELOW_PATH instead.@Deprecated public static final int OFF_PATH
SoAction.PathCodes.OFF_PATH instead.public void resetContinueActionInBranchFlag()
public boolean getContinueActionInBranchFlag()
public void traverse(SoNode node)
public java.util.Vector<SoPath> getPathListAppliedTo()
public java.util.Vector<SoPath> getOriginalPathListAppliedTo()
public boolean hasTerminated()
public void apply(SoNode node)
public boolean isLastPathListAppliedTo()
public SoAction.PathIndices getPathCode()
public void apply(SoPath path)
public void stopActionInBranch()
It is mainly used to stop the GetBoundingBox action in the SoBBox node.
public void invalidateState()
public void clearApplyResult()
SoPath) that reference nodes. This is especially true for SoSearchAction and SoRayPickAction. These references will prevent the nodes from being destroyed and so may appear to be a "memory leak".
 All references are cleared when the action is destroyed or re-applied. However it may be useful to clear them explicitly to remove references to nodes.
public SoPath getPathAppliedTo()
public boolean isBeingApplied()
public void setSceneManager(SoSceneManager mgr)
SoHandleEventAction, SoRayPickAction, etc).public int getPipeId()
public SoSceneManager getSceneManager()
SoSceneManager associated with this action.public void postDelayedTraversal()
public void useAlternateRep(boolean enable)
SoNode derived object to choose to provide or not an alternate representation for a given action.public boolean preDelayedTraversal()
public boolean isUsingAlternateRep()
public SoState getState()
public SoAction.AppliedCodes getWhatAppliedTo()
public SoPath getCurPath()
public SoNode getNodeAppliedTo()
public void setPipeId(int id)
public void forwardTraversal(SoNode node)
SoPath. Casting the path to a SoFullPath allows access to the whole path.
 This method can be used to delegate an action to an internal/private scene graph. So a node can have an internal scene graph without actually being a "group" node. This is a convenient way to implement "composite" nodes that create their behavior using other Open Inventor nodes.
The node parameter can be of any type. Sensors may still be attached directly to nodes and fields in the internal scene graph.
This method must not be called from a node derived from SoGroup or SoBaseKit. This method should not be called on nodes that are part of the public/visible scene graph.
public void setUpState()
Generated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com