All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.media.j3d.ViewPlatform

java.lang.Object
   |
   +----java.media.j3d.SceneGraphObject
           |
           +----java.media.j3d.Node
                   |
                   +----java.media.j3d.Leaf
                           |
                           +----java.media.j3d.ViewPlatform

public class ViewPlatform
extends Leaf
The ViewPlatform leaf node object controls the position, orientation and scale of the viewer. It is the node in the scene graph that a View object connects to.


Variable Index

 o ALLOW_POLICY_READ
Specifies that the ViewPlatform allows read access to its view attach policy information at runtime.
 o ALLOW_POLICY_WRITE
Specifies that the ViewPlatform allows write access to its view attach policy information at runtime.

Constructor Index

 o ViewPlatform()

Method Index

 o getActivationRadius()
Get the ViewPlatform's activation radius.
 o getViewAttachPolicy()
Returns the current coexistence center in virtual-world policy.
 o setActivationRadius(float)
Set the ViewPlatform's activation radius which defines an activation volume around the view platform.
 o setViewAttachPolicy(int)
Sets the coexistence center in virtual world policy.

Variables

 o ALLOW_POLICY_READ
 public static final int ALLOW_POLICY_READ
Specifies that the ViewPlatform allows read access to its view attach policy information at runtime.

 o ALLOW_POLICY_WRITE
 public static final int ALLOW_POLICY_WRITE
Specifies that the ViewPlatform allows write access to its view attach policy information at runtime.

Constructors

 o ViewPlatform
 public ViewPlatform()

Methods

 o setViewAttachPolicy
 public final void setViewAttachPolicy(int policy)
Sets the coexistence center in virtual world policy. This setting determines how Java 3D places the user's eye point as a function of head position. The variable can contain one of NOMINAL_SCREEN, NOMINAL_HEAD, or NOMINAL_FEET.

Parameters:
policy - the new policy, one of NOMINAL_SCREEN, NOMINAL_HEAD, or NOMINAL_FEET
Throws: CapabilityNotSetException
if appropriate capability is not set and this object is part of live or compiled scene graph
 o getViewAttachPolicy
 public final int getViewAttachPolicy()
Returns the current coexistence center in virtual-world policy.

Returns:
one of: NOMINAL_SCREEN, NOMINAL_HEAD, or NOMINAL_FEET
Throws: CapabilityNotSetException
if appropriate capability is not set and this object is part of live or compiled scene graph
 o setActivationRadius
 public final void setActivationRadius(float activationRadius)
Set the ViewPlatform's activation radius which defines an activation volume around the view platform.

Parameters:
activationRadius - the new activation radius
 o getActivationRadius
 public final float getActivationRadius()
Get the ViewPlatform's activation radius.

Returns:
the ViewPlatform activation radius

All Packages  Class Hierarchy  This Package  Previous  Next  Index