edu.utexas.cs.sdao.reyes.anim

Sequence

case class Sequence(frames: Vector[Texture], timeline: Timeline) extends Product with Serializable

Represents a sequence of rendered textures in an animation.

frames

the vector of frames in the sequence

timeline

the timeline associated with the sequence

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Sequence
  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 Sequence(frames: Vector[Texture], timeline: Timeline)

    frames

    the vector of frames in the sequence

    timeline

    the timeline associated with the sequence

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. def apply(secs: Float): Texture

    Gets the frame closest to the specified time, if it exists.

    Gets the frame closest to the specified time, if it exists. Otherwise, throws an IndexOutOfBoundException.

    secs

    the time to get

    returns

    the frame requested

  7. def apply(frame: Int): Texture

    Gets the specified frame, if it exists.

    Gets the specified frame, if it exists. Otherwise, throws an IndexOutOfBoundException.

    frame

    the number of the frame to get

    returns

    the frame requested

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def firstFrame: Texture

    Gets the first frame in the sequence.

    Gets the first frame in the sequence. Useful for single-sequence frames.

    returns

  13. val frames: Vector[Texture]

    the vector of frames in the sequence

  14. def get(secs: Float): Option[Texture]

    Gets the frame closest to the specified time, if it exists.

    Gets the frame closest to the specified time, if it exists. Otherwise, returns None.

    secs

    the time to get

    returns

    the frame requested, or None

  15. def get(frame: Int): Option[Texture]

    Gets the specified frame, if it exists.

    Gets the specified frame, if it exists. Otherwise, returns None.

    frame

    the number of the frame to get

    returns

    the frame requested, or None

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

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

    Definition Classes
    Any
  18. val lastFrameAvailable: Int

  19. def length: Int

    Gets the number of rendered frames in the sequence.

    Gets the number of rendered frames in the sequence. This may differ from the length of the timeline, depending on how many frames are actually rendered.

    returns

    the number of frames in the sequence

  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. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  24. val timeline: Timeline

    the timeline associated with the sequence

  25. def toIndexedSeq: Vector[(Int, Texture)]

    Gets an indexed-sequence representation of the sequence.

    Gets an indexed-sequence representation of the sequence.

    returns

    an indexed sequence of tuples; the first item is the frame number and the second item is the actual frame

  26. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. def writeFirstFrameFile(name: String): Boolean

    Writes the first frame in the sequence to a PNG file.

    Writes the first frame in the sequence to a PNG file.

    name

    the name of the image file, preferably ending in ".png"

    returns

    whether the write succeeded

  30. def writeSequenceFiles(name: String): Unit

    Writes the entire rendered sequence to a series of files.

    Writes the entire rendered sequence to a series of files.

    name

    the name of the image files, preferably ending in ".png"; the name must contain the placeholder "%d" for the frame number

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped