edu.utexas.cs.sdao.reyes.anim

Timeline

case class Timeline(fps: Float = 24.0, startTime: Float = 0.0, endTime: Float = 0.0) extends Product with Serializable

A timeline that keeps track of the elapsed time in an animation.

Warning: timelines contain state, even though the state is not directly modifiable by an outsider. The state changes as an animated scene renders and the timeline advances.

Note: the start time does not correspond to frame 0. The time 0.0 seconds corresponds to frame 0; all other values will be interpolated based on the frame rate.

Use the default startTime and endTime parameters for a single-frame (static) sequence.

fps

the frame rate of the animation

startTime

the start time of the animation; the animation will begin at the closest frame to this time, which can be queried through the firstFrameTime value

endTime

the end time of the animation; the animation will end at the closest frame to this time, which can be queries through the lastFrameTime value

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Timeline
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Timeline(fps: Float = 24.0, startTime: Float = 0.0, endTime: Float = 0.0)

    fps

    the frame rate of the animation

    startTime

    the start time of the animation; the animation will begin at the closest frame to this time, which can be queried through the firstFrameTime value

    endTime

    the end time of the animation; the animation will end at the closest frame to this time, which can be queries through the lastFrameTime value

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val endTime: Float

    the end time of the animation; the animation will end at the closest frame to this time, which can be queries through the lastFrameTime value

  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. val firstFrame: Int

    The frame number of the first frame in this animation sequence.

  12. val firstFrameTime: Float

    The actual starting time of the animation; this is the time of the first frame.

  13. val fps: Float

    the frame rate of the animation

  14. def frame: Int

    Gets the current frame state of the clock.

    Gets the current frame state of the clock.

    returns

    the current frame number

  15. def frameToTime(frame: Int): Float

    Converts a frame number to the exact corresponding time.

    Converts a frame number to the exact corresponding time.

    frame

    a frame number

    returns

    the exact corresponding time

  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. val lastFrame: Int

    The frame number of the last frame in this animation sequence.

  19. val lastFrameTime: Float

    The actual ending time of the animation; this is the time of the last frame.

  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. def renderSequence(cam: Camera, sceneRoot: SurfaceNode, lights: Vector[ShadowMappedLight] = Vector.empty): Sequence

  24. def renderSequenceInteractive(cam: Camera, sceneRoot: SurfaceNode, lights: Vector[ShadowMappedLight] = Vector.empty): Sequence

  25. val startTime: Float

    the start time of the animation; the animation will begin at the closest frame to this time, which can be queried through the firstFrameTime value

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. def time: Float

    Gets the current time state of the clock.

    Gets the current time state of the clock.

    returns

    the current time, in seconds

  28. def timeToFrame(secs: Float): Int

    Converts a time to the closest frame number.

    Converts a time to the closest frame number.

    secs

    a time

    returns

    the closest frame number

  29. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped