NASA World Wind

gov.nasa.worldwind.render
Class SurfaceSquare

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.WWObjectImpl
          extended by gov.nasa.worldwind.render.AbstractSurfaceObject
              extended by gov.nasa.worldwind.render.AbstractSurfaceShape
                  extended by gov.nasa.worldwind.render.SurfaceQuad
                      extended by gov.nasa.worldwind.render.SurfaceSquare
All Implemented Interfaces:
AVList, MessageListener, Exportable, ExtentHolder, MeasurableArea, MeasurableLength, Movable, Highlightable, OrderedRenderable, PreRenderable, Renderable, SurfaceObject, SurfaceShape, Restorable, WWObject, PropertyChangeListener, EventListener

public class SurfaceSquare
extends SurfaceQuad


Nested Class Summary
 
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.AbstractSurfaceShape
AbstractSurfaceShape.GeometryKey, AbstractSurfaceShape.SurfaceShapeStateKey
 
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject
AbstractSurfaceObject.CacheEntry, AbstractSurfaceObject.SurfaceObjectStateKey
 
Field Summary
 
Fields inherited from class gov.nasa.worldwind.render.SurfaceQuad
center, heading, height, width
 
Fields inherited from class gov.nasa.worldwind.render.AbstractSurfaceShape
activeAttrs, activeGeometry, activeOutlineGeometry, areaMeasurer, areaMeasurerLastModifiedTime, DEFAULT_HIGHLIGHT_MATERIAL, DEFAULT_INTERIOR_MATERIAL, DEFAULT_MAX_EDGE_INTERVALS, DEFAULT_MIN_EDGE_INTERVALS, DEFAULT_OUTLINE_MATERIAL, DEFAULT_PATH_TYPE, DEFAULT_TEXELS_PER_EDGE_INTERVAL, defaultAttrs, geometryCache, highlightAttrs, highlighted, maxEdgeIntervals, minEdgeIntervals, normalAttrs, pathType, sectorCache, stackHandler, texelsPerEdgeInterval, texture, vertexBuffer
 
Fields inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject
delegateOwner, drawBoundingSectors, enableBatchPicking, extentCache, lastModifiedTime, nextUniqueId, pickLayer, pickSupport, pickTileBuilder, pickTiles, uniqueId, visible
 
Fields inherited from interface gov.nasa.worldwind.Exportable
FORMAT_NOT_SUPPORTED, FORMAT_PARTIALLY_SUPPORTED, FORMAT_SUPPORTED
 
Constructor Summary
SurfaceSquare()
          Constructs a new surface square with the default attributes, default center location, default size, and default heading.
SurfaceSquare(LatLon center, double size)
          Constructs a new surface square with the default attributes, the specified center location and size (in meters).
SurfaceSquare(LatLon center, double size, Angle heading)
          Constructs a new surface square with the default attributes, the specified center location, size (in meters), and heading clockwise from North.
SurfaceSquare(ShapeAttributes normalAttrs)
          Constructs a new surface square with the specified normal (as opposed to highlight) attributes, default center location, default size, and default heading.
SurfaceSquare(ShapeAttributes normalAttrs, LatLon center, double size)
          Constructs a new surface square with the specified normal (as opposed to highlight) attributes, the specified center location and size (in meters).
SurfaceSquare(ShapeAttributes normalAttrs, LatLon center, double size, Angle heading)
          Constructs a new surface square with the specified normal (as opposed to highlight) attributes, the specified center location and dimensions (in meters).
 
Method Summary
 double getSize()
           
 void setSize(double size)
           
 
Methods inherited from class gov.nasa.worldwind.render.SurfaceQuad
createGeometry, doGetRestorableState, doMoveTo, doRestoreState, exportAsKML, getCenter, getHeading, getHeight, getLocations, getReferencePosition, getStateKey, getWidth, legacyRestoreState, setCenter, setHeading, setHeight, setSize, setWidth
 
Methods inherited from class gov.nasa.worldwind.render.AbstractSurfaceShape
addIntermediateLocations, applyInteriorState, applyInteriorTextureState, applyModelviewTransform, applyOutlineState, beginDrawing, canContainPole, clearCaches, computeEdgeIntervalsPerDegree, computeSectors, computeSectors, containsPole, createActiveAttributes, createGeometryKey, cutAlongDateLine, determineActiveAttributes, determineActiveGeometry, doDrawGeographic, doTessellateInterior, drawGeographic, drawInterior, drawOutline, endDrawing, export, generateIntermediateLocations, getActiveAttributes, getActiveGeometry, getArea, getArea, getAttributes, getCachedGeometry, getExtent, getHeight, getHighlightAttributes, getInteriorTexture, getLength, getMinAndMaxEdgeIntervals, getPathType, getPerimeter, getRestorableState, getSectors, getTexelsPerEdgeInterval, getWidth, handleUnsuccessfulInteriorTessellation, intersectionWithMeridian, isExportFormatSupported, isHighlighted, isSectorEmpty, makeOrderedPreRenderable, move, moveTo, onShapeChanged, pathTypeFromString, repeatAroundDateline, restoreState, setAttributes, setHighlightAttributes, setHighlighted, setMinAndMaxEdgeIntervals, setPathType, setTexelsPerEdgeInterval, setupAreaMeasurer, tessellateInterior, tessellateInteriorVertices
 
Methods inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject
buildPickRepresentation, computeExtent, computeExtent, createPickedObject, createPickTileBuilder, drawBoundingSectors, drawOrderedRenderable, drawPickRepresentation, getDelegateOwner, getDistanceFromEye, getExtent, getUniqueId, intersectsFrustum, intersectsPickFrustum, intersectsVisibleSector, isDrawBoundingSectors, isEnableBatchPicking, isVisible, makeOrderedRenderable, nextUniqueId, pick, pickBatched, pickOrderedRenderable, preRender, render, setDelegateOwner, setDrawBoundingSectors, setEnableBatchPicking, setVisible, updateModifiedTime
 
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
onMessage, propertyChange
 
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.nasa.worldwind.Exportable
export, isExportFormatSupported
 
Methods inherited from interface gov.nasa.worldwind.render.SurfaceObject
getDelegateOwner, getDistanceFromEye, getExtent, isVisible, pick, preRender, render, setDelegateOwner, setVisible
 
Methods inherited from interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 

Constructor Detail

SurfaceSquare

public SurfaceSquare()
Constructs a new surface square with the default attributes, default center location, default size, and default heading.


SurfaceSquare

public SurfaceSquare(LatLon center,
                     double size)
Constructs a new surface square with the default attributes, the specified center location and size (in meters).

Parameters:
center - the square's center location.
size - the square's width and height, in meters.
Throws:
IllegalArgumentException - if the center is null, or if the size is negative.

SurfaceSquare

public SurfaceSquare(LatLon center,
                     double size,
                     Angle heading)
Constructs a new surface square with the default attributes, the specified center location, size (in meters), and heading clockwise from North.

Parameters:
center - the square's center location.
size - the square's width and height, in meters.
heading - the square's heading, clockwise from North.
Throws:
IllegalArgumentException - if the center or heading are null, or if the size is negative.

SurfaceSquare

public SurfaceSquare(ShapeAttributes normalAttrs)
Constructs a new surface square with the specified normal (as opposed to highlight) attributes, default center location, default size, and default heading. Modifying the attribute reference after calling this constructor causes this shape's appearance to change accordingly.

Parameters:
normalAttrs - the normal attributes. May be null, in which case default attributes are used.

SurfaceSquare

public SurfaceSquare(ShapeAttributes normalAttrs,
                     LatLon center,
                     double size)
Constructs a new surface square with the specified normal (as opposed to highlight) attributes, the specified center location and size (in meters). Modifying the attribute reference after calling this constructor causes this shape's appearance to change accordingly.

Parameters:
normalAttrs - the normal attributes. May be null, in which case default attributes are used.
center - the square's center location.
size - the square's width and height, in meters.
Throws:
IllegalArgumentException - if the center is null, or if the size is negative.

SurfaceSquare

public SurfaceSquare(ShapeAttributes normalAttrs,
                     LatLon center,
                     double size,
                     Angle heading)
Constructs a new surface square with the specified normal (as opposed to highlight) attributes, the specified center location and dimensions (in meters). Modifying the attribute reference after calling this constructor causes this shape's appearance to change accordingly.

Parameters:
normalAttrs - the normal attributes. May be null, in which case default attributes are used.
center - the square's center location.
size - the square's width and height, in meters.
heading - the square's heading, clockwise from North.
Throws:
IllegalArgumentException - if the center or heading are null, or if the size is negative.
Method Detail

getSize

public double getSize()

setSize

public void setSize(double size)

NASA World Wind