SoWinCollisionViewer Class |
Class to manage collisions between the camera and the scene.
Namespace: OIV.Inventor.Win.Viewers
The SoWinCollisionViewer type exposes the following members.
Name | Description | |
---|---|---|
SoWinCollisionViewer | Constructor. |
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
GetCollisionDetection | Gets the collision detection active flag. | |
GetDistance | Gets the distance between the camera and the objects. | |
GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) | |
GetNumSteps | Gets the number of steps to be used in the collision computation. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetViewer | Gets the original viewer. | |
GetZBufferOptimistation | Gets the Z buffer optimization active flag. | |
SetCollisionDetection | Calls SetCollisionDetection(true). | |
SetCollisionDetection(Boolean) | Sets the collision detection active flag. | |
SetDistance | Sets the distance between the camera and the objects. | |
SetNumSteps | Sets the number of steps to be used in the collision computation. | |
SetZBufferOptimization | Calls SetZBufferOptimization(true, false). | |
SetZBufferOptimization(Boolean) | Calls SetZBufferOptimization(value, false). | |
SetZBufferOptimization(Boolean, Boolean) | Sets the Z buffer optimization active flag. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
This class is used to constrain a viewer, preventing the viewer's camera from colliding with the objects in the scene. It overrides the RenderCallback on the viewer that it's attached to.
The programmer can define the maximum distance between the camera and the objects.
When Z-buffer optimization is enabled, the algorithm looks at the Z-buffer to see if there is an object in front of the camera when the user moves forward, and an OIV.Inventor.Collision.SoIntersectionDetectionAction when the user moves backward.
NOTE: This class is not a viewer.