Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: Camera

[14:7] extends: Node

Wraps JavaFX Camera, the abstract base class for scene cameras (PerspectiveCamera and ParallelCamera). Holds near and far clipping planes plus inherits all Node behavior such as translation and rotation, which is how a camera is positioned in the scene. Camera has no constructor (it is abstract). Use PerspectiveCamera or ParallelCamera.

Methods

  • setNearClip (double Distance)

    Sets the near clipping plane distance. Geometry closer than this is not rendered.

    • @p Distance is a double with the near clip distance.
    • @r this object
  • setFarClip (double Distance)

    Sets the far clipping plane distance. Geometry farther than this is not rendered.

    • @p Distance is a double with the far clip distance.
    • @r this object
  • getNearClip ()

    Returns the near clipping plane distance.

    • @r A double with the near clip.
  • getFarClip ()

    Returns the far clipping plane distance.

    • @r A double with the far clip.
  • nearClipProperty ()

    Returns the property that holds the near clipping plane distance. Bind or attach listeners to react when the value changes.

    • @r A DoubleProperty AJO holding the near clip distance.
  • farClipProperty ()

    Returns the property that holds the far clipping plane distance. Bind or attach listeners to react when the value changes.

    • @r A DoubleProperty AJO holding the far clip distance.