public class CappedEllipticalCylinder extends AbstractAirspace
AbstractAirspace.AirspaceInfo
Modifier and Type | Field and Description |
---|---|
protected LatLon |
center |
protected static int |
DEFAULT_LOOPS |
protected static int |
DEFAULT_SLICES |
protected static int |
DEFAULT_STACKS |
protected boolean |
enableCaps |
protected Angle |
heading |
protected double |
innerMajorRadius |
protected double |
innerMinorRadius |
protected int |
loops |
protected static int |
MINIMAL_GEOMETRY_LOOPS |
protected static int |
MINIMAL_GEOMETRY_SLICES |
protected double |
outerMajorRadius |
protected double |
outerMinorRadius |
protected int |
slices |
protected int |
stacks |
activeAttributes, airspaceInfo, alwaysOnTop, ARC_SLICES, attributes, currentInfo, DEFAULT_HIGHLIGHT_MATERIAL, DEFAULT_INTERIOR_MATERIAL, DEFAULT_OUTLINE_MATERIAL, DEFAULT_OUTLINE_PICK_WIDTH, defaultAttributes, delegateOwner, detailLevels, DISABLE_TERRAIN_CONFORMANCE, dragEnabled, draggableSupport, drawSurfaceShape, elevationMap, enableBatchPicking, enableBatchRendering, enableDepthOffset, enableLevelOfDetail, EXPIRY_TIME, expiryTime, frameTimeStamp, GEOMETRY_CACHE_KEY, GEOMETRY_CACHE_NAME, geometryBuilder, GLOBE_KEY, groundReference, highlightAttributes, highlighted, LENGTH_SLICES, LOOPS, lowerAltitude, lowerAltitudeDatum, lowerTerrainConforming, maxExpiryTime, minExpiryTime, mustRegenerateSurfaceShape, outlinePickWidth, outlineShapeRenderer, pickLayer, pickSupport, PILLARS, rand, SLICES, SPLIT_THRESHOLD, STACKS, SUBDIVISIONS, surfaceShape, upperAltitude, upperAltitudeDatum, upperTerrainConforming, VERTICAL_EXAGGERATION, visible
DRAW_STYLE_FILL, DRAW_STYLE_OUTLINE
Constructor and Description |
---|
CappedEllipticalCylinder() |
CappedEllipticalCylinder(AirspaceAttributes attributes) |
CappedEllipticalCylinder(CappedEllipticalCylinder source) |
CappedEllipticalCylinder(LatLon location,
double minorRadius,
double majorRadius,
Angle heading) |
Modifier and Type | Method and Description |
---|---|
protected Extent |
computeExtent(Globe globe,
double verticalExaggeration) |
protected List<Vec4> |
computeMinimalGeometry(Globe globe,
double verticalExaggeration) |
protected Vec4 |
computeReferenceCenter(DrawContext dc) |
protected SurfaceShape |
createSurfaceShape()
Returns a
SurfaceShape that corresponds to this Airspace and is used for drawing on 2D globes. |
protected void |
doGetRestorableState(RestorableSupport rs,
RestorableSupport.StateObject context) |
protected void |
doMoveTo(Globe globe,
Position oldRef,
Position newRef) |
protected void |
doMoveTo(Position oldRef,
Position newRef) |
protected void |
doRenderGeometry(DrawContext dc,
String drawStyle) |
protected void |
doRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context) |
LatLon |
getCenter()
Returns the geographic location of the cylinder's center.
|
Angle |
getHeading()
Returns this cylinder's heading, in degrees.
|
int |
getLoops() |
double[] |
getRadii()
Returns the cylinder's radii, in meters.
|
Position |
getReferencePosition()
A position associated with the object that indicates its aggregate geographic position.
|
int |
getSlices() |
int |
getStacks() |
boolean |
isEnableCaps() |
protected void |
regenerateSurfaceShape(DrawContext dc,
SurfaceShape shape)
Regenerates surface shape geometry prior to picking and rendering the 2D shape used to represent this Airspace on
2D globes.
|
void |
setCenter(LatLon location)
Sets the cylinder's center.
|
void |
setEnableCaps(boolean enable) |
void |
setHeading(Angle heading)
Sets this cylinder's heading, in degrees.
|
void |
setLoops(int loops) |
void |
setRadii(double outerMinorRadius,
double outerMajorRadius)
Sets the cylinder's outer radii.
|
void |
setRadii(double innerMinorRadius,
double innerMajorRadius,
double outerMinorRadius,
double outerMajorRadius)
Sets the cylinder's radii.
|
void |
setSlices(int slices) |
protected void |
updateSurfaceShape(DrawContext dc,
SurfaceShape shape)
Sets surface shape parameters prior to picking and rendering the 2D shape used to represent this Airspace on 2D
globes.
|
addDetailLevels, adjustForGroundReference, beginRendering, clearElevationMap, computeDetailLevel, computeElevationAt, computeExtent, computeEyeDistance, computeMinimalGeometry, computePointFromPosition, computeReferencePosition, createPickedObject, determineActiveAttributes, doDrag, doDrawOrderedRenderable, drag, drawBatched, drawGeometry, drawInterior, drawOrderedRenderable, drawOutline, endRendering, getActiveAttributes, getAirspaceInfo, getAltitudeDatum, getAltitudes, getAltitudes, getAttributes, getDelegateOwner, getDetailLevels, getDistanceFromEye, getExpiryRange, getExpiryTime, getExtent, getExtent, getGeometryBuilder, getGeometryCache, getGroundReference, getHighlightAttributes, getOutlinePickWidth, getRestorableState, invalidateAirspaceData, isAirspaceCollapsed, isAirspaceVisible, isAlwaysOnTop, isDragEnabled, isDrawSurfaceShape, isEnableBatchPicking, isEnableBatchRendering, isEnableDepthOffset, isEnableLevelOfDetail, isExpired, isHighlighted, isTerrainConforming, isVisible, makeExtremePoints, makeOrderedRenderable, move, moveTo, moveTo, mustDrawInterior, mustDrawOutline, nextExpiryTime, pick, preRender, render, restoreState, setAltitude, setAltitudeDatum, setAltitudes, setAlwaysOnTop, setAttributes, setAttributes, setDelegateOwner, setDetailLevels, setDragEnabled, setDrawSurfaceShape, setEnableBatchPicking, setEnableBatchRendering, setEnableDepthOffset, setEnableLevelOfDetail, setExpiryRange, setExpiryTime, setGeometryBuilder, setGroundReference, setHighlightAttributes, setHighlightAttributes, setHighlighted, setOutlinePickWidth, setTerrainConforming, setTerrainConforming, setVisible, updateExpiryCriteria
onMessage, propertyChange
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
protected LatLon center
protected static final int DEFAULT_LOOPS
protected static final int DEFAULT_SLICES
protected static final int DEFAULT_STACKS
protected boolean enableCaps
protected Angle heading
protected double innerMajorRadius
protected double innerMinorRadius
protected int loops
protected static final int MINIMAL_GEOMETRY_LOOPS
protected static final int MINIMAL_GEOMETRY_SLICES
protected double outerMajorRadius
protected double outerMinorRadius
protected int slices
protected final int stacks
public CappedEllipticalCylinder()
public CappedEllipticalCylinder(AirspaceAttributes attributes)
public CappedEllipticalCylinder(CappedEllipticalCylinder source)
protected Extent computeExtent(Globe globe, double verticalExaggeration)
computeExtent
in class AbstractAirspace
protected List<Vec4> computeMinimalGeometry(Globe globe, double verticalExaggeration)
computeMinimalGeometry
in class AbstractAirspace
protected Vec4 computeReferenceCenter(DrawContext dc)
protected SurfaceShape createSurfaceShape()
AbstractAirspace
SurfaceShape
that corresponds to this Airspace and is used for drawing on 2D globes.createSurfaceShape
in class AbstractAirspace
protected void doGetRestorableState(RestorableSupport rs, RestorableSupport.StateObject context)
doGetRestorableState
in class AbstractAirspace
protected void doMoveTo(Globe globe, Position oldRef, Position newRef)
doMoveTo
in class AbstractAirspace
protected void doMoveTo(Position oldRef, Position newRef)
doMoveTo
in class AbstractAirspace
protected void doRenderGeometry(DrawContext dc, String drawStyle)
doRenderGeometry
in class AbstractAirspace
protected void doRestoreState(RestorableSupport rs, RestorableSupport.StateObject context)
doRestoreState
in class AbstractAirspace
public LatLon getCenter()
public Angle getHeading()
public int getLoops()
public double[] getRadii()
public Position getReferencePosition()
Movable
public int getSlices()
public int getStacks()
public boolean isEnableCaps()
protected void regenerateSurfaceShape(DrawContext dc, SurfaceShape shape)
AbstractAirspace
regenerateSurfaceShape
in class AbstractAirspace
dc
- the current drawing context.shape
- the surface shape to regenerate.public void setCenter(LatLon location)
location
- the geographic position (latitude and longitude) of the cylinder's center.IllegalArgumentException
- if the location is null.public void setEnableCaps(boolean enable)
public void setHeading(Angle heading)
heading
- This cylinder's heading, in degrees.public void setLoops(int loops)
public void setRadii(double outerMinorRadius, double outerMajorRadius)
outerMinorRadius
- the cylinder's outer minor radius, in meters.outerMajorRadius
- the cylinder's outer major radius, in meters.IllegalArgumentException
- if either radius is less than zero.public void setRadii(double innerMinorRadius, double innerMajorRadius, double outerMinorRadius, double outerMajorRadius)
innerMinorRadius
- the cylinder's inner minor radius, in meters.innerMajorRadius
- The cylinder's inner major radius, in meters.outerMinorRadius
- the cylinder's outer minor radius, in meters.outerMajorRadius
- The cylinder's outer major radius, in meters.IllegalArgumentException
- if either radius is less than zero.public void setSlices(int slices)
protected void updateSurfaceShape(DrawContext dc, SurfaceShape shape)
AbstractAirspace
updateSurfaceShape
in class AbstractAirspace
dc
- the current drawing context.shape
- the surface shape to update.