All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vlc.vrml.external.geometry.Viewpoint

java.lang.Object
   |
   +----vlc.vrml.generic.geometry.VrmlObject
           |
           +----vlc.vrml.external.geometry.VrmlObject
                   |
                   +----vlc.vrml.external.geometry.ChildrenNode
                           |
                           +----vlc.vrml.external.geometry.BindableNode
                                   |
                                   +----vlc.vrml.external.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 Anchor node please see the VRML 97 Anchor specification

Author:
Justin Couch justin@vlc.com.au

Constructor Index

 o Viewpoint()
Default Constructor.
 o Viewpoint(Browser)
Default Constructor when you wish to supply your own Browser reference.
 o Viewpoint(Browser, String)
Constructor used when you wish to set the description field and supply a browser reference.
 o Viewpoint(String)
Constructor used when you wish to set the description field.

Method Index

 o clone()
Make a clone of this object
 o get_bindTime_changed()
Get the value of the bindTime_changed eventOut
 o get_description()
Get the viewpoint's description field value
 o get_fieldOfView()
Get the current user's field of view
 o get_jump()
Get the current jump setting
 o get_orientation()
Get the current orientation of the viewpoint
 o get_position()
Get the viewpoint's current position.
 o set_fieldOfView(float)
Set the user's field of view
 o set_jump(boolean)
Set the jump property.
 o set_orientation(float[])
Set the user's orientation in the scene.
 o set_position(float[])
Set the viewpoint's position.
 o writeToStream(int)
Prints the formatted contents of this node to the given stream.

Constructors

 o Viewpoint
 public Viewpoint()
Default Constructor. Creates a default Viewpoint

 o Viewpoint
 public Viewpoint(Browser b)
Default Constructor when you wish to supply your own Browser reference. Creates a default Viewpoint

 o 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.
 o 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.

Methods

 o 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
 o set_fieldOfView
 public void set_fieldOfView(float fov)
Set the user's field of view

Parameters:
fov - The field of view in radians
 o get_fieldOfView
 public float get_fieldOfView()
Get the current user's field of view

Returns:
The field of view in radians
 o 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
 o get_jump
 public boolean get_jump()
Get the current jump setting

Returns:
The jump setting
 o 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
 o get_orientation
 public float[] get_orientation()
Get the current orientation of the viewpoint

Returns:
The current orientation
See Also:
set_orientation
 o 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
 o 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
 o get_description
 public String get_description()
Get the viewpoint's description field value

Returns:
The current description string
 o 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.
 o 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