scalation.scala3d

Members list

Type members

Classlikes

class Clock extends Timeline

The Clock class maintasins the time for the ScalaFx animation.

The Clock class maintasins the time for the ScalaFx animation.

Attributes

Supertypes
class Timeline
class Animation
trait SFXDelegate[Timeline]
class Object
trait Matchable
class Any
Show all
object Road3d extends JFXApp3

The Road3d object implements a simple road animation.

The Road3d object implements a simple road animation.

runMain scalation.scala3d.Road3d

Attributes

Supertypes
trait JFXApp3
class Object
trait Matchable
class Any
Self type
Road3d.type
case class Sink(size: Int, name: String, location: Point3D, color: Color)

The Sink case class is used to remove/terminate vehicles in the animation.

The Sink case class is used to remove/terminate vehicles in the animation.

Value parameters

color

the color of the sink

location

the location of the sink in the scene

name

the name of the sink

size

the size of the sink

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Source(size: Int, name: String, location: Point3D, color: Color)

The Source case class is used to create vehicles in the animation.

The Source case class is used to create vehicles in the animation.

Value parameters

color

the color of the source

location

the location of the source in the scene

name

the name of the source

size

the size of the source

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Vehicle

The Vehicle companion object maintains a counter for making unique ids.

The Vehicle companion object maintains a counter for making unique ids.

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Vehicle.type
case class Vehicle(clock: Clock, color: Color, size: Int, location: Point3D, id: Int, speed: Double)

The Vehicle case class is used to for representing moveable objects.

The Vehicle case class is used to for representing moveable objects.

Value parameters

clock

the animation clock

color

the color of the vehicle

id

the vehicle's unique identifier

location

the location of the vehicle in the scene

size

the size of the vehicle

speed

the speed of the vehicle

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all