Class

it.unibo.scafi.renderer3d.util.RichScalaFx

RichNode

Related Doc: package RichScalaFx

Permalink

implicit class RichNode extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RichNode
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RichNode(node: Node)

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  9. final def getLookAtAngleOnXZPlane(point: Point3D): Double

    Permalink

    Retrieves the angle between the X axis and the vector from the node's position and the specified 3d position.

    Retrieves the angle between the X axis and the vector from the node's position and the specified 3d position.

    point

    the specified 3d position used to calculate the angle

    returns

    the rotation angle on the Y axis

  10. final def getPosition: Point3D

    Permalink

    Gets the node's position in the 3D scene.

    Gets the node's position in the 3D scene. ATTENTION: Don't use this on Group objects such as SimpleNetworkNode, since it would always return Point3D(0, 0, 0)

    returns

    the node's position

  11. final def getScreenPosition: Point2D

    Permalink

    Gets the node's 2D position, from the point of view of the camera.

    Gets the node's 2D position, from the point of view of the camera. Using it on Group instances may not be ideal.

    returns

    the node's 2D position

  12. final def getYRotationAngle: Double

    Permalink

    Retrieves the euler angle on the Y axis of the current node.

    Retrieves the euler angle on the Y axis of the current node.

    returns

    the angle on the Y axis, in the range from -180 to 180.

  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def isIntersectingWith(otherNode: Node): Boolean

    Permalink

    Checks if the node is intersecting with the other node.

    Checks if the node is intersecting with the other node. ATTENTION: this is not accurate if the nodes are rotated.

    otherNode

    the node to check for intersection with the current one

    returns

    whether the two nodes are intersecting

  16. final def lookAt(point: Point3D, currentPosition: Point3D): Unit

    Permalink

    Rotates the node around itself so that it faces the point.

    Rotates the node around itself so that it faces the point. ATTENTION: this resets the node's transformations.

    point

    the point that the node will face

    currentPosition

    the current position of the node

  17. final def lookAtOnXZPlane(point: Point3D): Unit

    Permalink

    Rotates the node around itself but only on the Y axis, so that it faces the specified point.

    Rotates the node around itself but only on the Y axis, so that it faces the specified point.

    point

    the point that the node will face

  18. final def moveTo(position: Point3D): Unit

    Permalink

    Moves the node to another 3D position.

    Moves the node to another 3D position. ATTENTION: Using this on Group objects such as SimpleNetworkNode adds the position to the current position of the object, instead of actually moving the node at the specified position.

    position

    the new position of the node

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

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  22. final def rotateOnSelf(angle: Double, axis: Point3D): Unit

    Permalink

    Rotates the node around itself, with the specified rotation axis

    Rotates the node around itself, with the specified rotation axis

    angle

    the rotation angle

    axis

    the rotation axis

  23. final def setScale(scale: Double): Unit

    Permalink

    Sets the scale of the node.

    Sets the scale of the node.

    scale

    the new scale of the node

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

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(arg0: Long, arg1: Int): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped