Class OrbitViewInputHandler.CollisionAwarePitchAccessor

    • Constructor Summary

      Constructors 
      Constructor Description
      CollisionAwarePitchAccessor​(OrbitView orbitView)
      Creates a new CollisionAwarePitchAccessor with the specified OrbitView, but otherwise does nothing.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Angle getAngle()
      Returns the pitch property value from this accessor's view.
      boolean setAngle​(Angle value)
      Sets the pitch property of this accessor's view to the specified value.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

    • Constructor Detail

      • CollisionAwarePitchAccessor

        public CollisionAwarePitchAccessor​(OrbitView orbitView)
        Creates a new CollisionAwarePitchAccessor with the specified OrbitView, but otherwise does nothing.
        Parameters:
        orbitView - the OrbitView who's pitch will be accessed.
        Throws:
        java.lang.IllegalArgumentException - if the orbitView is null.
    • Method Detail

      • setAngle

        public boolean setAngle​(Angle value)
        Sets the pitch property of this accessor's view to the specified value. If the value is null, setting the view's pitch causes a surface collision, or setting the view's pitch causes an exception, this returns false. Otherwise this returns true.
        Specified by:
        setAngle in interface PropertyAccessor.AngleAccessor
        Parameters:
        value - the value to set as this view's pitch property.
        Returns:
        true if the pitch property was successfully set, and false otherwise.