|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--shout3d.core.Node | +--shout3d.core.TimeSensor
A TimeSensor
Constructor Summary | |
TimeSensor()
Constructs a default TimeSensor |
|
TimeSensor(Shout3DViewer viewer)
Constructs a default TimeSensor |
Method Summary | |
boolean |
isPaused()
Gets whether this timeSensor is paused or not |
void |
restart()
Stops, then starts this timeSensor. |
void |
setPaused(boolean nowPaused)
Pauses or unpauses this TimeSensor. |
void |
setViewer(Shout3DViewer viewer)
Overrides base class to additionally store the clock. |
void |
start()
Starts this timeSensor by setting startTime to the current time. |
void |
stop()
Stops this timeSensor by setting stopTime to the current time. |
void |
update()
Updates the outputs of the TimeSensor based on the values of its fields. |
Methods inherited from class shout3d.core.Node |
cleanUp,
getDEFName,
getField,
getFieldByIndex,
getFieldName,
getNumFields,
getTypeName,
getViewer,
isOfType,
setDEFName |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public final DoubleField cycleInterval
public final DoubleField cycleTime
public final DoubleField elapsedSeconds
public final BooleanField enabled
public final FloatField fraction
public final BooleanField isActive
public final BooleanField loop
public final IntField numLoops
public final DoubleField startTime
public final DoubleField stopTime
public final DoubleField time
Constructor Detail |
public TimeSensor()
public TimeSensor(Shout3DViewer viewer)
Method Detail |
public void setViewer(Shout3DViewer viewer)
public void start()
public void stop()
public void restart()
public void setPaused(boolean nowPaused)
setPaused(false)
on a TimeSensor which is not paused has no effect.nowPaused
- is this timeSensor paused nowpublic boolean isPaused()
public void update()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |