Package gov.nasa.worldwind.render
Class SurfaceSquare
- java.lang.Object
-
- All Implemented Interfaces:
AVList
,Draggable
,MessageListener
,Exportable
,ExtentHolder
,MeasurableArea
,MeasurableLength
,Movable
,Movable2
,Attributable
,Highlightable
,OrderedRenderable
,PreRenderable
,Renderable
,SurfaceObject
,SurfaceRenderable
,SurfaceShape
,Restorable
,Combinable
,WWObject
,java.beans.PropertyChangeListener
,java.util.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, dragEnabled, draggableSupport, 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, uniqueId, visible
-
Fields inherited from interface gov.nasa.worldwind.Exportable
FORMAT_NOT_SUPPORTED, FORMAT_PARTIALLY_SUPPORTED, FORMAT_SUPPORTED
-
-
Constructor Summary
Constructors Constructor Description 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).SurfaceSquare(SurfaceSquare source)
Creates a shallow copy of the specified source shape.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getSize()
void
setSize(double size)
-
Methods inherited from class gov.nasa.worldwind.render.SurfaceQuad
createGeometry, doGetRestorableState, doMoveTo, 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, combine, combineBounds, combineContours, computeEdgeIntervalsPerDegree, computeEdgeIntervalsPerDegree, computeSectors, computeSectors, containsPole, createActiveAttributes, createGeometry, createGeometryKey, cutAlongDateLine, determineActiveAttributes, determineActiveGeometry, doCombineContour, doCombineContours, doDrag, doDrawGeographic, doTessellateInterior, drag, drawGeographic, drawInterior, drawLineStrip, drawOutline, endDrawing, export, generateIntermediateLocations, getActiveAttributes, getActiveGeometry, getArea, getArea, getAttributes, getCachedGeometry, getExtent, getHeight, getHighlightAttributes, getInteriorTexture, getLength, getMinAndMaxEdgeIntervals, getPathType, getPerimeter, getRestorableState, getSectors, getTexelsPerEdgeInterval, getWidth, handleUnsuccessfulInteriorTessellation, isDragEnabled, isExportFormatSupported, isHighlighted, isSectorEmpty, makeOrderedPreRenderable, move, moveTo, moveTo, pathTypeFromString, repeatAroundDateline, restoreState, setAttributes, setDragEnabled, 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, onShapeChanged, 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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
Methods inherited from interface gov.nasa.worldwind.Exportable
export, isExportFormatSupported
-
Methods inherited from interface gov.nasa.worldwind.render.Renderable
render
-
Methods inherited from interface gov.nasa.worldwind.render.SurfaceObject
getDelegateOwner, getDistanceFromEye, getExtent, isEnableBatchPicking, isVisible, pick, preRender, setDelegateOwner, setEnableBatchPicking, setVisible
-
-
-
-
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(SurfaceSquare source)
Creates a shallow copy of the specified source shape.- Parameters:
source
- the shape to copy.
-
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(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:
java.lang.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:
java.lang.IllegalArgumentException
- if the center or heading are null, or if the size is negative.
-
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:
java.lang.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:
java.lang.IllegalArgumentException
- if the center or heading are null, or if the size is negative.
-
-