field.kit.p5

AdvancedCamera

class AdvancedCamera extends Camera

Implements more intuitive camera manipulation methods

Inherited

  1. Hide All
  2. Show all
  1. Camera
  2. Logger
  3. Renderable
  4. GLUser
  5. AnyRef
  6. Any

Visibility

  1. Public
  2. All

Instance constructors

  1. new AdvancedCamera(width: Int, height: Int)

Value Members

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

    attributes: final
    definition classes: AnyRef
  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

    o != arg0 is the same as !(o == (arg0)).

    arg0

    the object to compare against this object for dis-equality .

    returns

    false if the receiver object is equivalent to the argument; true otherwise.

    attributes: final
    definition classes: Any
  3. def ##(): Int

    attributes: final
    definition classes: AnyRef → Any
  4. def $asInstanceOf[T0](): T0

    attributes: final
    definition classes: AnyRef
  5. def $isInstanceOf[T0](): Boolean

    attributes: final
    definition classes: AnyRef
  6. def :=(c: AdvancedCamera): AdvancedCamera

  7. def :=(c: Camera): Camera

    Sets this camera to the values of a given camera

    Sets this camera to the values of a given camera

    returns

    itself

    definition classes: Camera
  8. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    arg0

    the object to compare against this object for equality .

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: AnyRef
  9. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

    o == arg0 is the same as o.equals(arg0).

    arg0

    the object to compare against this object for equality .

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: Any
  10. val TOL: Float

    attributes: protected
  11. val _direction: Vec3

    Direction the camera is facing .

    Direction the camera is facing .

    attributes: protected
    definition classes: Camera
  12. val _left: Vec3

    Direction of camera's 'left'

    Direction of camera's 'left'

    attributes: protected
    definition classes: Camera
  13. val _location: Vec3

    Camera's location

    Camera's location

    attributes: protected
    definition classes: Camera
  14. val _modelView: Mat4

    attributes: protected
    definition classes: Camera
  15. val _modelViewProjection: Mat4

    attributes: protected
    definition classes: Camera
  16. val _modelViewProjectionInverse: Mat4

    attributes: protected
    definition classes: Camera
  17. val _projection: Mat4

    attributes: protected
    definition classes: Camera
  18. val _transMatrix: Mat4

    attributes: protected
    definition classes: Camera
  19. val _up: Vec3

    Direction of 'up' for camera .

    Direction of 'up' for camera .

    attributes: protected
    definition classes: Camera
  20. def aim(target: Vec3): Unit

  21. def applyDepthRange: Unit

    attributes: protected
    definition classes: Camera
  22. def applyModelViewMatrix: Unit

    Apply the camera's modelview matrix

    Apply the camera's modelview matrix

    attributes: protected
    definition classes: Camera
  23. def applyProjectionMatrix: Unit

    Apply the camera's projection matrix

    Apply the camera's projection matrix

    attributes: protected
    definition classes: Camera
  24. def applyViewport: Unit

    Apply the camera's viewport

    Apply the camera's viewport

    attributes: protected
    definition classes: Camera
  25. def arc(elevationOffset: Float): Unit

    Arc the camera over (under) a center of interest along a set azimuth

    Arc the camera over (under) a center of interest along a set azimuth

  26. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

    This method is used to cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expressionList(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    the receiver object .

    attributes: final
    definition classes: Any
  27. var azimuth: Float

    attributes: protected
  28. def boom(amount: Float): Unit

    Move the camera and target simultaneously along the camera's Y axis

    Move the camera and target simultaneously along the camera's Y axis

  29. def circle(azimuthOffset: Float): Unit

    Circle the camera around a center of interest at a set elevation

    Circle the camera around a center of interest at a set elevation

  30. def clone(): AdvancedCamera

    This method creates and returns a copy of the receiver object .

    This method creates and returns a copy of the receiver object .

    The default implementation of the clone method is platform dependent.

    returns

    a copy of the receiver object .

    definition classes: AdvancedCameraCamera → AnyRef
  31. val delta: Vec3

    distance differences between camera and target

    distance differences between camera and target

    attributes: protected
  32. var depthRangeDirty: Boolean

    attributes: protected
    definition classes: Camera
  33. var depthRangeFar: Float

    The far range for mapping depth values from normalized device coordinates to window coordinates .

    The far range for mapping depth values from normalized device coordinates to window coordinates .

    attributes: protected
    definition classes: Camera
  34. var depthRangeNear: Float

    The near range for mapping depth values from normalized device coordinates to window coordinates .

    The near range for mapping depth values from normalized device coordinates to window coordinates .

    attributes: protected
    definition classes: Camera
  35. def direction: Vec3

    definition classes: Camera
  36. def direction_=(v: Vec3): Unit

    definition classes: Camera
  37. def dolly(amount: Float): Unit

    Move the camera and target along the view vector

    Move the camera and target along the view vector

  38. var elevation: Float

    attributes: protected
  39. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    The eq method implements an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation] on non-null instances of AnyRef: * It is reflexive: for any non-null instance x of type AnyRef, x.eq(x) returns true. * It is symmetric: for any non-null instances x and y of type AnyRef, x.eq(y) returns true if and only if y.eq(x) returns true. * It is transitive: for any non-null instances x, y, and z of type AnyRef if x.eq(y) returns true and y.eq(z) returns true, then x.eq(z) returns true.

    Additionally, the eq method has three other properties. * It is consistent: for any non-null instances x and y of type AnyRef, multiple invocations of x.eq(y) consistently returns true or consistently returns false. * For any non-null instance x of type AnyRef, x.eq(null) and null.eq(x) returns false. * null.eq(null) returns true.

    When overriding the equals or hashCode methods, it is important to ensure that their behavior is consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).

    arg0

    the object to compare against this object for reference equality .

    returns

    true if the argument is a reference to the receiver object; false otherwise.

    attributes: final
    definition classes: AnyRef
  40. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation]: * It is reflexive: for any instance x of type Any, x.equals(x) should return true. * It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true. * It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same scala.Int (o1.hashCode.equals(o2.hashCode)).

    arg0

    the object to compare against this object for equality .

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    definition classes: AnyRef → Any
  41. def error(m: Any*): Unit

    definition classes: Logger
  42. def fatal(code: Int, m: Any*): Unit

    definition classes: Logger
  43. def fatal(m: Any*): Unit

    definition classes: Logger
  44. def feed(app: PApplet): Unit

  45. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object .

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object .

    The details of when and if the finalize method are invoked, as well as the interaction between finalizeand non-local returns and exceptions, are all platform dependent.

    attributes: protected
    definition classes: AnyRef
  46. def fine(m: Any*): Unit

    definition classes: Logger
  47. var fovY: Float

    Convenience store for fovY .

    Convenience store for fovY . Only set during setFrustumPerspective and never used.

    definition classes: Camera
  48. def frame(eyeX: Float, eyeY: Float, eyeZ: Float, centerX: Float, centerY: Float, centerZ: Float, upX: Float, upY: Float, upZ: Float): Unit

    definition classes: Camera
  49. var frameDirty: Boolean

    attributes: protected
    definition classes: Camera
  50. def frustum(left: Float, right: Float, bottom: Float, top: Float, near: Float, far: Float): Unit

    definition classes: Camera
  51. var frustumBottom: Float

    Distance from camera to bottom frustum plane .

    Distance from camera to bottom frustum plane .

    attributes: protected
    definition classes: Camera
  52. var frustumDirty: Boolean

    attributes: protected
    definition classes: Camera
  53. var frustumFar: Float

    Distance from camera to far frustum plane .

    Distance from camera to far frustum plane .

    attributes: protected
    definition classes: Camera
  54. var frustumLeft: Float

    Distance from camera to left frustum plane .

    Distance from camera to left frustum plane .

    attributes: protected
    definition classes: Camera
  55. var frustumNear: Float

    Distance from camera to near frustum plane .

    Distance from camera to near frustum plane .

    attributes: protected
    definition classes: Camera
  56. var frustumRight: Float

    Distance from camera to right frustum plane .

    Distance from camera to right frustum plane .

    attributes: protected
    definition classes: Camera
  57. var frustumTop: Float

    Distance from camera to top frustum plane .

    Distance from camera to top frustum plane .

    attributes: protected
    definition classes: Camera
  58. def getClass(): java.lang.Class[_]

    Returns a representation that corresponds to the dynamic class of the receiver object .

    Returns a representation that corresponds to the dynamic class of the receiver object .

    The nature of the representation is platform dependent.

    returns

    a representation that corresponds to the dynamic class of the receiver object .

    attributes: final
    definition classes: AnyRef
  59. def gl: GL

    definition classes: GLUser
  60. def glu: GLU

    definition classes: GLUser
  61. def hashCode(): Int

    Returns a hash code value for the object .

    Returns a hash code value for the object .

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    returns

    the hash code value for the object .

    definition classes: AnyRef → Any
  62. def info(m: Any*): Unit

    definition classes: Logger
  63. def init(fovY: Float, width: Int, height: Int): Unit

    no summary matey

    fovY

    field of view in radians

    width

    of the viewport

    height

    of the viewport

    definition classes: Camera
  64. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

    This method is used to test whether the dynamic type of the receiver object is T0.

    Note that the test result of the test is modulo Scala's erasure semantics. Therefore the expression1.isInstanceOf[String] will return false, while the expression List(1).isInstanceOf[List[String]] will return true. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    true if the receiver object is an instance of erasure of type T0; false otherwise.

    attributes: final
    definition classes: Any
  65. def location: Vec3

    definition classes: Camera
  66. def location_=(v: Vec3): Unit

    definition classes: Camera
  67. def logName: String

    definition classes: Logger
  68. def logName_=(name: String): Unit

    definition classes: Logger
  69. def modelView: Mat4

    no summary matey

    returns

    this cameras model view matrix (updated if necessary)

    definition classes: Camera
  70. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

    o.ne(arg0) is the same as !(o.eq(arg0)).

    arg0

    the object to compare against this object for reference dis-equality .

    returns

    false if the argument is not a reference to the receiver object; true otherwise.

    attributes: final
    definition classes: AnyRef
  71. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor .

    Wakes up a single thread that is waiting on the receiver object's monitor .

    attributes: final
    definition classes: AnyRef
  72. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor .

    Wakes up all threads that are waiting on the receiver object's monitor .

    attributes: final
    definition classes: AnyRef
  73. def onDepthRangeChange: Unit

    attributes: protected
    definition classes: Camera
  74. def onFrameChange: Unit

    Updates the values of the world planes associated with this camera .

    Updates the values of the world planes associated with this camera .

    attributes: protected
    definition classes: Camera
  75. def onFrustumChange: Unit

    Updates internal frustum coefficient values to reflect the current frustum plane values .

    Updates internal frustum coefficient values to reflect the current frustum plane values .

    attributes: protected
    definition classes: Camera
  76. def onViewportChange: Unit

    attributes: protected
    definition classes: Camera
  77. var parallelProjection: Boolean

    Defines wether this view is a parallel or perspective projection

    Defines wether this view is a parallel or perspective projection

    attributes: protected
    definition classes: Camera
  78. def perspective(fovY: Float, aspect: Float, zNear: Float, zFar: Float): Unit

    definition classes: Camera
  79. def projection: Mat4

    no summary matey

    returns

    this cameras projection matrix (updated if necessary)

    definition classes: Camera
  80. def render: Unit

    Applies this cameras matrices and settings to the GL view

    Applies this cameras matrices and settings to the GL view

    definition classes: CameraRenderable
  81. def resize(width: Int, height: Int): Unit

    definition classes: Camera
  82. var roll: Float

    attributes: protected
  83. var shotLength: Float

    attributes: protected
  84. def synchronized[T0](arg0: T0): T0

    attributes: final
    definition classes: AnyRef
  85. val target: Vec3

    target position

    target position

    attributes: protected
  86. def toString(): String

    Returns a string representation of the object .

    Returns a string representation of the object .

    The default representation is platform dependent.

    returns

    a string representation of the object .

    definition classes: AdvancedCamera → AnyRef → Any
  87. def track(offsetX: Float, offsetY: Float): Unit

    Moves the camera and target simultaneously in the camera's X-Y plane

    Moves the camera and target simultaneously in the camera's X-Y plane

  88. def truck(amount: Float): Unit

    Move the camera and target simultaneously along the camera's X axis

    Move the camera and target simultaneously along the camera's X axis

  89. def tumble(azimuthOffset: Float, elevationOffset: Float): Unit

  90. def up: Vec3

    definition classes: Camera
  91. def up_=(v: Vec3): Unit

    definition classes: Camera
  92. def update: Unit

    Forces all aspect of the camera to be updated from internal values, and sets all dirty flags to true so that the next render() call will fully set this camera to the render context .

    Forces all aspect of the camera to be updated from internal values, and sets all dirty flags to true so that the next render() call will fully set this camera to the render context .

    definition classes: Camera
  93. def updateCamera: Unit

    Update camera and related information

    Update camera and related information

    attributes: protected
  94. def updateDelta: Unit

    Update deltas and related information

    Update deltas and related information

    attributes: protected
  95. var updateInverseMVPMatrix: Boolean

    attributes: protected
    definition classes: Camera
  96. var updateMVMatrix: Boolean

    attributes: protected
    definition classes: Camera
  97. var updateMVPMatrix: Boolean

    attributes: protected
    definition classes: Camera
  98. var updatePMatrix: Boolean

    attributes: protected
    definition classes: Camera
  99. def updateUp: Unit

    Update the up direction and related information

    Update the up direction and related information

    attributes: protected
  100. var viewportBottom: Float

    Percent value on display where vertical viewing begins for this camera .

    Percent value on display where vertical viewing begins for this camera .

    attributes: protected
    definition classes: Camera
  101. var viewportDirty: Boolean

    attributes: protected
    definition classes: Camera
  102. var viewportLeft: Float

    Percent value on display where horizontal viewing starts for this camera .

    Percent value on display where horizontal viewing starts for this camera .

    attributes: protected
    definition classes: Camera
  103. var viewportRight: Float

    Percent value on display where horizontal viewing ends for this camera .

    Percent value on display where horizontal viewing ends for this camera .

    attributes: protected
    definition classes: Camera
  104. var viewportTop: Float

    Percent value on display where vertical viewing ends for this camera .

    Percent value on display where vertical viewing ends for this camera .

    attributes: protected
    definition classes: Camera
  105. def wait(): Unit

    attributes: final
    definition classes: AnyRef
  106. def wait(arg0: Long, arg1: Int): Unit

    attributes: final
    definition classes: AnyRef
  107. def wait(arg0: Long): Unit

    attributes: final
    definition classes: AnyRef
  108. def warn(m: Any*): Unit

    definition classes: Logger