All Packages Class Hierarchy This Package Previous Next Index
Class vlc.vrml.internal.geometry.Viewpoint
java.lang.Object
|
+----vlc.vrml.generic.geometry.VrmlObject
|
+----vlc.vrml.internal.geometry.VrmlObject
|
+----vlc.vrml.internal.geometry.ChildrenNode
|
+----vlc.vrml.internal.geometry.BindableNode
|
+----vlc.vrml.internal.geometry.Viewpoint
- public class Viewpoint
- extends BindableNode
JVerge
- Version:
- 0.8 (beta 4)
Copyright 1997
The Virtual Light Company
under the
GNU LGPL
The latest information and bugs in JVerge can be found at
http://www.vlc.com.au/JVerge
For definition of the Viewpoint node please see the
VRML 97 Viewpoint specification
- Author:
- Justin Couch justin@vlc.com.au
-
Viewpoint()
- Default Constructor.
-
Viewpoint(Browser)
- Default Constructor when you wish to supply your own Browser reference.
-
Viewpoint(Browser, String)
- Constructor used when you wish to set the description field and supply
a browser reference.
-
Viewpoint(String)
- Constructor used when you wish to set the description field.
-
clone()
- Make a clone of this object
-
get_bindTime_changed()
- Get the value of the bindTime_changed eventOut
-
get_description()
- Get the viewpoint's description field value
-
get_fieldOfView()
- Get the current user's field of view
-
get_jump()
- Get the current jump setting
-
get_orientation()
- Get the current orientation of the viewpoint
-
get_position()
- Get the viewpoint's current position.
-
set_fieldOfView(float)
- Set the user's field of view
-
set_jump(boolean)
- Set the jump property.
-
set_orientation(float[])
- Set the user's orientation in the scene.
-
set_position(float[])
- Set the viewpoint's position.
-
writeToStream(int)
- Prints the formatted contents of this node to the given stream.
Viewpoint
public Viewpoint()
- Default Constructor. Creates a default Viewpoint
Viewpoint
public Viewpoint(Browser b)
- Default Constructor when you wish to supply your own Browser reference.
Creates a default Viewpoint
Viewpoint
public Viewpoint(String description)
- Constructor used when you wish to set the description field. All other
fields are left as default values
- Parameters:
- description - A string that you wish to use as the description of
this viewpoint.
Viewpoint
public Viewpoint(Browser b,
String description)
- Constructor used when you wish to set the description field and supply
a browser reference. All other fields are left as default values
- Parameters:
- b - A valid Browser reference
- description - A string that you wish to use as the description of
this viewpoint.
writeToStream
public void writeToStream(int indent)
- Prints the formatted contents of this node to the given stream.
- Parameters:
- indent - The number of spaces to indent this node in the string
- Overrides:
- writeToStream in class VrmlObject
set_fieldOfView
public void set_fieldOfView(float fov)
- Set the user's field of view
- Parameters:
- fov - The field of view in radians
get_fieldOfView
public float get_fieldOfView()
- Get the current user's field of view
- Returns:
- The field of view in radians
set_jump
public void set_jump(boolean on)
- Set the jump property. When true the viewpoint jumps to this point when
it is bound. If false then it will do a animated move to the new position.
- Parameters:
- on - Set true to jump between viewpoints
get_jump
public boolean get_jump()
- Get the current jump setting
- Returns:
- The jump setting
set_orientation
public void set_orientation(float orientation[])
- Set the user's orientation in the scene.
- Parameters:
- orientation - The user's orientation where
orientation[0] = x
orientation[1] = y
orientation[2] = z
orientation[3] = angle in radians
get_orientation
public float[] get_orientation()
- Get the current orientation of the viewpoint
- Returns:
- The current orientation
- See Also:
- set_orientation
set_position
public void set_position(float position[])
- Set the viewpoint's position.
- Parameters:
- position - The new position to be used where
position[0] = x, position[1] = y, position[2] = z
get_position
public float[] get_position()
- Get the viewpoint's current position.
- Returns:
- The current position where
position[0] = x, position[1] = y, position[2] = z
get_description
public String get_description()
- Get the viewpoint's description field value
- Returns:
- The current description string
get_bindTime_changed
public double get_bindTime_changed()
- Get the value of the bindTime_changed eventOut
- Returns:
- The last value on the bindTime_Changed eventOut in seconds.
clone
public Object clone()
- Make a clone of this object
- Returns:
- A deep clone copy of this object
- Overrides:
- clone in class VrmlObject
All Packages Class Hierarchy This Package Previous Next Index