protected static class OrbitViewInputHandler.CollisionAwarePitchAccessor extends java.lang.Object implements PropertyAccessor.AngleAccessor
PropertyAccessor.AngleAccessor
interface onto the pitch property of an OrbitView
. In addition to accessing
the pitch property, this implementation is aware of view-surface collisions caused by setting the pitch property.
If a call to setAngle(gov.nasa.worldwind.geom.Angle)
causes the view to collide with the surface, then
the call returns false indicating to the caller that the set operation was not entirely successful.Constructor and Description |
---|
CollisionAwarePitchAccessor(OrbitView orbitView)
Creates a new CollisionAwarePitchAccessor with the specified OrbitView, but otherwise does nothing.
|
Modifier and Type | Method and 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.
|
protected OrbitView orbitView
public CollisionAwarePitchAccessor(OrbitView orbitView)
orbitView
- the OrbitView who's pitch will be accessed.java.lang.IllegalArgumentException
- if the orbitView is null.public Angle getAngle()
getAngle
in interface PropertyAccessor.AngleAccessor
public boolean setAngle(Angle value)
setAngle
in interface PropertyAccessor.AngleAccessor
value
- the value to set as this view's pitch property.