All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vlc.vrml.external.geometry.TimeSensor

java.lang.Object
   |
   +----vlc.vrml.generic.geometry.VrmlObject
           |
           +----vlc.vrml.external.geometry.VrmlObject
                   |
                   +----vlc.vrml.external.geometry.ChildrenNode
                           |
                           +----vlc.vrml.external.geometry.Sensor
                                   |
                                   +----vlc.vrml.external.geometry.TimeSensor

public class TimeSensor
extends Sensor
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 TimeSensor()
Default Constructor.
 o TimeSensor(Browser)
Default Constructor when you wish to supply your own Browser reference.

Method Index

 o clone()
Make a clone of this object
 o get_cycleInterval()
Set the cycleInterval for the sensor
 o get_cycleTime()
Get the value of the cycleTime eventOut
 o get_fraction_changed()
Get the value of the last fraction_changed eventOut
 o get_loop()
Get the current looping condition for this node
 o get_startTime()
Get the current starting time of this AudioClip
 o get_stopTime()
Get the current stopping time of this AudioClip
 o get_time()
Get the time eventOut values
 o set_cycleInterval(double)
Set the cycleInterval for the sensor
 o set_loop(boolean)
Set whether this clip should loop its output
 o set_startTime(double)
Set the time at which the AudioClip is to start running
 o set_stopTime(double)
Set the time at which the AudioClip is to stop running
 o writeToStream(int)
Prints the formatted contents of this node to the given stream.

Constructors

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

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

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_cycleInterval
 public void set_cycleInterval(double time)
Set the cycleInterval for the sensor

Parameters:
time - The time in seconds for a single cycle.
 o get_cycleInterval
 public double get_cycleInterval()
Set the cycleInterval for the sensor

Parameters:
time - The time in seconds for a single cycle.
 o set_startTime
 public void set_startTime(double pos)
Set the time at which the AudioClip is to start running

Parameters:
The - start time in seconds
 o get_startTime
 public double get_startTime()
Get the current starting time of this AudioClip

Returns:
The current start time in seconds
 o set_stopTime
 public void set_stopTime(double time)
Set the time at which the AudioClip is to stop running

Parameters:
The - stop time in seconds
 o get_stopTime
 public double get_stopTime()
Get the current stopping time of this AudioClip

Returns:
The current stop time in seconds
 o set_loop
 public void set_loop(boolean val)
Set whether this clip should loop its output

Parameters:
val - true if the output is to loop, false if not
 o get_loop
 public boolean get_loop()
Get the current looping condition for this node

Returns:
true if the node is set to loop, false if not.
 o get_cycleTime
 public double get_cycleTime()
Get the value of the cycleTime eventOut

Returns:
Last set cycleTime in seconds
 o get_fraction_changed
 public float get_fraction_changed()
Get the value of the last fraction_changed eventOut

Returns:
the fraction_changed value
 o get_time
 public double get_time()
Get the time eventOut values

Returns:
The time value is 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