gov.nasa.worldwind.render
Class SurfaceQuad
java.lang.Object
gov.nasa.worldwind.render.AbstractSurfaceObject
gov.nasa.worldwind.render.AbstractSurfaceShape
gov.nasa.worldwind.render.SurfaceConvexShape
gov.nasa.worldwind.render.SurfaceQuad
- All Implemented Interfaces:
- MeasurableArea, MeasurableLength, Movable, PreRenderable, Renderable, SurfaceObject, SurfaceShape, Restorable
- Direct Known Subclasses:
- SurfaceSquare
public class SurfaceQuad
- extends SurfaceConvexShape
| Methods inherited from class gov.nasa.worldwind.render.AbstractSurfaceShape |
getArea, getArea, getAttributes, getDrawLocations, getEdgeIntervalsPerDegree, getHeight, getLength, getLocations, getPathType, getPerimeter, getRenderer, getRestorableState, getSectors, getSurfaceShapeSupport, getWidth, move, moveTo, onShapeChanged, pathTypeFromString, preRender, render, restoreState, setAttributes, setEdgeIntervalsPerDegree, setPathType, setupAreaMeasurer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
center
protected LatLon center
heading
protected Angle heading
height
protected double height
MIN_NUM_INTERVALS
protected static final int MIN_NUM_INTERVALS
- See Also:
- Constant Field Values
width
protected double width
SurfaceQuad
public SurfaceQuad()
SurfaceQuad
public SurfaceQuad(LatLon center,
double width,
double height,
Angle heading)
SurfaceQuad
public SurfaceQuad(ShapeAttributes attributes)
SurfaceQuad
public SurfaceQuad(ShapeAttributes attributes,
LatLon center,
double width,
double height,
Angle heading)
computeLocations
protected void computeLocations(Globe globe,
List<LatLon> locations)
- Specified by:
computeLocations in class AbstractSurfaceShape
doGetRestorableState
protected void doGetRestorableState(RestorableSupport rs,
RestorableSupport.StateObject context)
- Overrides:
doGetRestorableState in class AbstractSurfaceShape
doMoveTo
protected void doMoveTo(Position oldReferencePosition,
Position newReferencePosition)
- Specified by:
doMoveTo in class AbstractSurfaceShape
doRestoreState
protected void doRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context)
- Overrides:
doRestoreState in class AbstractSurfaceShape
getCenter
public LatLon getCenter()
getHeading
public Angle getHeading()
getHeight
public double getHeight()
getReferencePosition
public Position getReferencePosition()
- Specified by:
getReferencePosition in interface Movable- Specified by:
getReferencePosition in class AbstractSurfaceShape
getWidth
public double getWidth()
legacyRestoreState
protected void legacyRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context)
- Description copied from class:
AbstractSurfaceShape
- Restores state values from previous versions of the SurfaceShape state XML. These values are stored or named
differently than the current implementation. Those values which have not changed are ignored here, and will
restored in {# doRestoreState }.
- Overrides:
legacyRestoreState in class AbstractSurfaceShape
- Parameters:
rs - RestorableSupport object which contains the state value properties.context - active context in the RestorableSupport to read state from.
setCenter
public void setCenter(LatLon center)
setHeading
public void setHeading(Angle heading)
setHeight
public void setHeight(double height)
setSize
public void setSize(double width,
double height)
setWidth
public void setWidth(double width)