NASA World Wind

gov.nasa.worldwind.render
Class ConformingQuad

java.lang.Object
  extended by gov.nasa.worldwind.render.ConformingShape
      extended by gov.nasa.worldwind.render.ConformingPolygon
          extended by gov.nasa.worldwind.render.ConformingQuad
All Implemented Interfaces:
Disposable, MeasurableArea, MeasurableLength, Movable, Renderable, Restorable
Direct Known Subclasses:
ConformingSquare

public class ConformingQuad
extends ConformingPolygon


Nested Class Summary
 
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.ConformingShape
ConformingShape.CacheKey
 
Field Summary
 
Fields inherited from class gov.nasa.worldwind.render.ConformingPolygon
globe
 
Fields inherited from class gov.nasa.worldwind.render.ConformingShape
borderColor, borderWidth, CONFORMINGSHAPE_CACHE_KEY, CONFORMINGSHAPE_CACHE_NAME, drawBorder, drawInterior, fillColor
 
Constructor Summary
ConformingQuad(Globe globe, LatLon center, double halfWidth, double halfHeight, Angle orientation)
           
ConformingQuad(Globe globe, LatLon center, double halfWidth, double halfHeight, Angle orientation, Color fillColor, Color borderColor)
           
 
Method Summary
protected  void doGetRestorableState(RestorableSupport rs, RestorableSupport.StateObject context)
           
protected  void doRestoreState(RestorableSupport rs, RestorableSupport.StateObject context)
           
 LatLon getCenter()
           
 double getHalfHeight()
           
 double getHalfWidth()
           
 Angle getOrientation()
           
static Iterable<LatLon> makePositions(Globe globe, LatLon center, double width, double height, Angle orientation)
           
 void setCenter(LatLon center)
           
 void setOrientation(Angle orientation)
           
 void setSize(double width, double height)
           
 
Methods inherited from class gov.nasa.worldwind.render.ConformingPolygon
getArea, getHeight, getLength, getPerimeter, getReferencePosition, getWidth, invalidateCache, moveTo, renderBoundary, renderInterior, setOriginalVertices
 
Methods inherited from class gov.nasa.worldwind.render.ConformingShape
dispose, getBorderColor, getBorderWidth, getInteriorColor, getRestorableState, getUniqueSerialNumber, getUseFrustumCull, isAntiAlias, isDrawBorder, isDrawInterior, isExpired, move, render, restoreState, setAntiAlias, setBorderColor, setBorderWidth, setDrawBorder, setDrawInterior, setInteriorColor, setUseFrustumCull, sizeInBytesOf, updateExpiryCriteria
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConformingQuad

public ConformingQuad(Globe globe,
                      LatLon center,
                      double halfWidth,
                      double halfHeight,
                      Angle orientation)

ConformingQuad

public ConformingQuad(Globe globe,
                      LatLon center,
                      double halfWidth,
                      double halfHeight,
                      Angle orientation,
                      Color fillColor,
                      Color borderColor)
Method Detail

doGetRestorableState

protected void doGetRestorableState(RestorableSupport rs,
                                    RestorableSupport.StateObject context)
Overrides:
doGetRestorableState in class ConformingPolygon

doRestoreState

protected void doRestoreState(RestorableSupport rs,
                              RestorableSupport.StateObject context)
Overrides:
doRestoreState in class ConformingPolygon

getCenter

public LatLon getCenter()

getHalfHeight

public double getHalfHeight()

getHalfWidth

public double getHalfWidth()

getOrientation

public Angle getOrientation()

makePositions

public static Iterable<LatLon> makePositions(Globe globe,
                                             LatLon center,
                                             double width,
                                             double height,
                                             Angle orientation)

setCenter

public void setCenter(LatLon center)

setOrientation

public void setOrientation(Angle orientation)

setSize

public void setSize(double width,
                    double height)

NASA World Wind