ScRayPickAction Class |
Defines a distributed ray pick action.
Namespace: OIV.ScaleViz.Actions
The ScRayPickAction type exposes the following members.
Name | Description | |
---|---|---|
![]() | AddIntersection | Adds an SoPickedPoint instance representing the given object space point to the current list and returns it. |
![]() | Apply(SoNode) | Applies action to the graph rooted by a node. |
![]() | Apply(SoPath) | Initiates an action on the graph defined by a path. |
![]() | Apply(SoPathList) | Calls Apply(pathList, false). (Inherited from SoAction.) |
![]() | Apply(SoPathList, Boolean) | Initiates an action on the graph defined by a list of paths. |
![]() | ClearApplyResult | Clears the picked point list. |
![]() | ClearPickedPointList | Obsolete. Clears the picked point list. |
![]() | ComputeWorldSpaceRay | (Inherited from SoRayPickAction.) |
![]() | EnableConicPickVolume | Controls the pick volume shape for picking with setRay(). |
![]() | EnableCulling | (Inherited from SoPickAction.) |
![]() ![]() | EnableElement | |
![]() | EnableElements | (Overrides SoRayPickActionEnableElements.) |
![]() | EnableNormalsGeneration | Enables generation of normal vectors for picked points. |
![]() | EnableRadiusForTriangles | Enable radius for triangle-based shape. |
![]() | EnableTexCoordsGeneration | Enables generation of texture coordinates for picked points. |
![]() | Equals | (Inherited from Object.) |
![]() | ForwardTraversal | Traverse a node that is not part of the current scenegraph. |
![]() | GetContinueActionInBranchFlag | This function indicates if the action must stop in the current branch. |
![]() | GetCurPath | (Inherited from SoAction.) |
![]() | GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) |
![]() | GetLine | (Inherited from SoRayPickAction.) |
![]() | GetNodeAppliedTo | (Inherited from SoAction.) |
![]() | GetNormalizedPoint | Gets the viewport point in normalized coordinates 0..1. |
![]() | GetOriginalPathListAppliedTo | (Inherited from SoAction.) |
![]() | GetPathAppliedTo | (Inherited from SoAction.) |
![]() | GetPathCode(SbNativeArrayInt32) | 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. |
![]() | GetPathCode(SbNativeInt32Array) | Obsolete. 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. |
![]() | GetPathListAppliedTo | (Inherited from SoAction.) |
![]() | GetPickedPoint | Calls GetPickedPoint(System.Int32(0)). (Inherited from SoRayPickAction.) |
![]() | GetPickedPoint(Int32) | Returns the indexed picked point from the list. |
![]() | GetPickedPointList | Returns list of picked points. |
![]() | GetPickedPointsListLength | (Inherited from SoRayPickAction.) |
![]() | GetPickingMode | Returns the PickingMode used for the ray pick action. |
![]() | GetPipeId | Gets pipe identifier in the range [1..N] associated to this render action while running a ScaleViz Multipipe configuration. |
![]() | GetPoint | Gets the viewport point in pixels (returns the last value passed to setPoint). |
![]() | GetPointFloat | Float version of getPoint(). |
![]() | GetppNormal | Returns the picked point normal. |
![]() | GetppPath | Returns the picked point path. |
![]() | GetppPoint | Returns the picked point. |
![]() | GetRadius | Gets the radius (in pixels) around the point. |
![]() | GetSceneManager | Return the SoSceneManager associated with this action. |
![]() | GetState | (Inherited from SoAction.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | GetUnsortedPickedPoint | (Inherited from SoRayPickAction.) |
![]() | GetViewportRegion | Returns current viewport region to use for action. |
![]() | GetViewVolume | (Inherited from SoRayPickAction.) |
![]() | GetWhatAppliedTo | (Inherited from SoAction.) |
![]() | HasTerminated | (Inherited from SoAction.) |
![]() | HasWorldSpaceRay | (Inherited from SoRayPickAction.) |
![]() | InitSetRayData(SbVec3f, SbVec3f, Single) | Obsolete. Calls InitSetRayData(start, direction, fovy, 1.0f, -1.0f, -1.0f). (Inherited from SoRayPickAction.) |
![]() | InitSetRayData(SbVec3f, SbVec3f, Single, Single) | Obsolete. Calls InitSetRayData(start, direction, fovy, aspectRatio, -1.0f, -1.0f). (Inherited from SoRayPickAction.) |
![]() | InitSetRayData(SbVec3f, SbVec3f, Single, Single, Single) | Obsolete. Calls InitSetRayData(start, direction, fovy, aspectRatio, nearDistance, -1.0f). (Inherited from SoRayPickAction.) |
![]() | Intersect(SbBox3f) | Calls Intersect(box, true). (Inherited from SoRayPickAction.) |
![]() | Intersect(SbVec3f) | (Inherited from SoRayPickAction.) |
![]() | Intersect(SbXfBox3f) | Calls Intersect(box, true). (Inherited from SoRayPickAction.) |
![]() | Intersect(SbBox3f, Boolean) | Bounding box: just return whether the ray intersects it. |
![]() | Intersect(SbXfBox3f, Boolean) | Bounding box: just return whether the ray intersects it. |
![]() | Intersect(SbVec3f, SbVec3f, SbVec3f) | (Inherited from SoRayPickAction.) |
![]() | Intersect(SbVec3f, SbVec3f, SbVec3f, SbVec3f, SbVec3f, Boolean) | (Inherited from SoRayPickAction.) |
![]() | InvalidateState | Invalidates the current traversal state in the action, forcing it to be recreated when the action is next applied. |
![]() | IsBeingApplied | Returns true if this action is currently being applied. |
![]() | IsBetweenPlanes | (Inherited from SoRayPickAction.) |
![]() | IsConicPickVolume | Returns true if the picking volume is a conic shape (not a frustum). |
![]() | IsCullingEnabled | (Inherited from SoPickAction.) |
![]() | IsLastPathListAppliedTo | (Inherited from SoAction.) |
![]() | IsNormalsGenerationEnabled | Returns whether generation of normal vectors is enabled for picked points. |
![]() | IsPickAll | Returns whether the action will return all objects intersected or just the closest one. |
![]() | IsRadiusEnableForTriangles | Returns whether the pick radius specified by setRadius is taken into account for picking on triangle-based shapes. |
![]() | IsTexCoordsGenerationEnabled | Returns whether texture coordinate generation is enabled for picked points. |
![]() | IsUsingAlternateRep | Returns true if current action is using alternate representations. |
![]() | IsValidPp | Returns 0 if nothing has been picked. |
![]() | PostDelayedTraversal | Method called by SoMultiPassManager after delayed pass traversals. |
![]() | PreDelayedTraversal | Method called by SoMultiPassManager before delayed pass traversals. |
![]() | ResetContinueActionInBranchFlag | This function resets the continue action flag. |
![]() | SetNormalizedPoint | Sets the viewport point in normalized coordinates, which range from (0,0) at the lower left to (1,1) at the upper right. |
![]() | SetObjectSpace | (Inherited from SoRayPickAction.) |
![]() | SetObjectSpace(SbMatrix) | (Inherited from SoRayPickAction.) |
![]() | SetPickAll | Sets whether the action will return all objects intersected or just the closest one. |
![]() | SetPickingMode | Sets the picking mode. |
![]() | SetPipeId | Sets pipe identifier in the range [1..N] associated to this render action while running a ScaleViz Multipipe configuration. |
![]() | SetPoint(SbVec2f) | Float version of setPoint(). |
![]() | SetPoint(SbVec2s) | Sets the viewport-space point through which the ray passes, starting at the camera's viewpoint. |
![]() | SetRadius | Sets the radius around the point. |
![]() | SetRay(SbVec3f, SbVec3f) | Calls SetRay(rayStart, rayDirection, -1, -1). |
![]() | SetRay(Single, SbVec3f, SbVec3f) | Calls SetRay(fovy, rayStart, rayDirection, -1, -1). |
![]() | SetRay(SbVec3f, SbVec3f, Single) | Calls SetRay(rayStart, rayDirection, nearDistance, -1). |
![]() | SetRay(Single, SbVec3f, SbVec3f, Single) | Calls SetRay(fovy, rayStart, rayDirection, nearDistance, -1). |
![]() | SetRay(SbVec3f, SbVec3f, Single, Single) | Sets a world-space ray along which to pick. |
![]() | SetRay(Single, SbVec3f, SbVec3f, Single, Single) | 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. |
![]() | SetRayCommonProperties(SbVec3f, SbVec3f, Single) | Obsolete. Calls SetRayCommonProperties(start, direction, fovy, 1.0f, -1.0f, -1.0f). (Inherited from SoRayPickAction.) |
![]() | SetRayCommonProperties(SbVec3f, SbVec3f, Single, Single) | Obsolete. Calls SetRayCommonProperties(start, direction, fovy, aspectRatio, -1.0f, -1.0f). (Inherited from SoRayPickAction.) |
![]() | SetRayCommonProperties(SbVec3f, SbVec3f, Single, Single, Single) | Obsolete. Calls SetRayCommonProperties(start, direction, fovy, aspectRatio, nearDistance, -1.0f). (Inherited from SoRayPickAction.) |
![]() | SetSceneManager | Set the scene manager associated with this action (if any ). |
![]() | SetUpState | (Inherited from SoAction.) |
![]() | SetViewportRegion | Sets current viewport region to use for action. |
![]() | StopActionInBranch | This function stops the action in the current Scene Graph branch. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | Traverse | (Inherited from SoAction.) |
![]() | UseAlternateRep | Tell the action to use alternate representations during traversal when available. |
The ScRayPickAction class provides a simple way to distribute an SoRayPickAction across a cluster.
Several distribution modes are available:
LOCAL_ONLY: action is only applied by the application.
CLUSTER_ONLY: action is only applied by the OIRUs.
ALL: both application and OIRUs apply the given action.
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).