|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.WWObjectImpl
gov.nasa.worldwind.symbology.AbstractTacticalSymbol
public abstract class AbstractTacticalSymbol
| Nested Class Summary | |
|---|---|
protected static class |
AbstractTacticalSymbol.IconAtlasElement
|
protected static class |
AbstractTacticalSymbol.IconSource
|
protected static class |
AbstractTacticalSymbol.IconTexture
|
protected static class |
AbstractTacticalSymbol.Label
|
protected static class |
AbstractTacticalSymbol.Line
|
| Field Summary | |
|---|---|
protected TacticalSymbolAttributes |
activeAttrs
Indicates this symbol's currently active attributes. |
protected WWTexture |
activeIconTexture
|
protected AVList |
activeModifiers
Modifiers active this frame. |
protected int |
altitudeMode
Indicates this symbol's altitude mode. |
protected OGLStackHandler |
BEogsh
Support for setting up and restoring OpenGL state during rendering. |
protected List<AbstractTacticalSymbol.IconAtlasElement> |
currentGlyphs
|
protected List<AbstractTacticalSymbol.Label> |
currentLabels
|
protected List<AbstractTacticalSymbol.Line> |
currentLines
|
protected static double |
DEFAULT_DEPTH_OFFSET
The default depth offset in device independent depth units: -8200. |
protected static TextureAtlas |
DEFAULT_GLYPH_ATLAS
The default glyph texture atlas. |
protected static int |
DEFAULT_LABEL_LINES
The default number of label lines to expect when computing the minimum size of the text layout rectangle. |
protected static long |
DEFAULT_MAX_TIME_SINCE_LAST_USED
|
static UnitsFormat |
DEFAULT_UNITS_FORMAT
Default unit format. |
protected static TacticalSymbolAttributes |
defaultAttrs
The attributes used if attributes are not specified. |
protected Object |
delegateOwner
Indicates an object to attach to the picked object list instead of this symbol. |
protected Double |
depthOffset
|
protected double |
dx
Per-frame screen offset indicating this symbol's x-offset relative to the screenPoint. |
protected double |
dy
Per-frame screen offset indicating this symbol's y-offset relative to the screenPoint. |
protected boolean |
enableBatchPicking
|
protected boolean |
enableBatchRendering
|
protected double |
eyeDistance
Per-frame distance corresponding to the distance between the placePoint and the View's eye point. |
protected String |
formattedPosition
Current symbol position, formatted using the current unit format. |
protected long |
frameNumber
The frame used to calculate this symbol's per-frame values. |
protected TextureAtlas |
glyphAtlas
|
protected Map<String,AbstractTacticalSymbol.IconAtlasElement> |
glyphMap
|
protected TacticalSymbolAttributes |
highlightAttrs
Indicates this symbol's highlight attributes. |
protected boolean |
highlighted
Indicates whether this symbol is highlighted. |
protected Offset |
iconOffset
|
protected Rectangle |
iconRect
|
protected Rectangle |
iconRectScaled
iconRect with scaling applied, used to lay out text. |
protected IconRetriever |
iconRetriever
|
protected Size |
iconSize
|
protected WWTexture |
iconTexture
|
protected static String |
LAYOUT_ABSOLUTE
|
protected static String |
LAYOUT_NONE
|
protected static String |
LAYOUT_RELATIVE
|
protected Rectangle |
layoutRect
|
protected Rectangle |
layoutRectScaled
layoutRect with scaling applied, used to lay out text. |
static String |
LOADING_IMAGE_PATH
The image file displayed while the icon is loading. |
protected static int |
MAX_SYMBOL_DIMENSION
Maximum expected size of a symbol, used to estimate screen bounds for view frustum culling. |
protected long |
maxTimeSinceLastUsed
|
protected IconRetriever |
modifierRetriever
|
protected AVList |
modifiers
Indicates the current text and graphic modifiers assigned to this symbol. |
protected TacticalSymbolAttributes |
normalAttrs
Indicates this symbol's normal (as opposed to highlight) attributes. |
protected Offset |
offset
|
protected Layer |
pickLayer
Per-frame layer indicating this symbol's layer when its ordered renderable was created. |
protected PickSupport |
pickSupport
Support for setting up and restoring picking state, and resolving the picked object. |
protected Vec4 |
placePoint
Per-frame Cartesian point corresponding to this symbol's position. |
protected Position |
position
Indicates this symbol's geographic position. |
protected Vec4 |
screenPoint
Per-frame screen point corresponding to the projection of the placePoint in the viewport (on the screen). |
protected Rectangle |
screenRect
|
protected boolean |
showGraphicModifiers
Indicates whether this symbol draws its supplemental graphic modifiers. |
protected boolean |
showHostileIndicator
Indicates whether or not to display the implicit hostile indicator modifier. |
protected boolean |
showLocation
Indicates whether or not to display the implicit location modifier. |
protected boolean |
showTextModifiers
Indicates whether this symbol draws its supplemental text modifiers. |
protected Rectangle |
staticLayoutRect
Layout rect computed from the icon and static modifiers. |
protected Rectangle |
staticScreenRect
Screen rect computed from the icon and static modifiers. |
protected double |
sx
Per-frame screen scale indicating this symbol's x-scale relative to the screen offset. |
protected double |
sy
Per-frame screen scale indicating this symbol's y-scale relative to the screen offset. |
protected UnitsFormat |
unitsFormat
Unit format used to format location and altitude for text modifiers. |
protected boolean |
unresolvedGlyph
Indicates that one or more glyphs have not been resolved. |
protected boolean |
visible
Indicates whether this symbol is drawn when in view. |
| Constructor Summary | |
|---|---|
protected |
AbstractTacticalSymbol()
Constructs a new symbol with no position. |
protected |
AbstractTacticalSymbol(Position position)
Constructs a new symbol with the specified position. |
| Method Summary | |
|---|---|
protected void |
addGlyph(DrawContext dc,
Offset offset,
Offset hotspot,
String modifierCode)
|
protected void |
addGlyph(DrawContext dc,
Offset offset,
Offset hotspot,
String modifierCode,
AVList retrieverParams,
Object layoutMode)
|
protected void |
addLabel(DrawContext dc,
Offset offset,
Offset hotspot,
String modifierText)
|
protected void |
addLabel(DrawContext dc,
Offset offset,
Offset hotspot,
String modifierText,
Font font,
Color color,
Object layoutMode)
|
protected void |
addLine(DrawContext dc,
Offset offset,
List<? extends Point2D> points)
|
protected void |
addLine(DrawContext dc,
Offset offset,
List<? extends Point2D> points,
Object layoutMode,
int numPointsInLayout)
|
protected void |
applyImplicitModifiers(AVList modifiers)
Add implicit modifiers to the modifier list. |
protected AVList |
assembleIconRetrieverParameters(AVList params)
|
protected void |
beginDrawing(DrawContext dc,
int attrMask)
|
protected Dimension |
computeMinTextLayout(DrawContext dc,
AVList modifiers)
Compute the dimension of the minimum layout rectangle for the text modifiers. |
protected void |
computeScale()
|
protected void |
computeScaledBounds(DrawContext dc,
AVList modifiers)
Compute the bounds of symbol after the scale has been applied. |
protected Rectangle |
computeScaledRect(Rectangle rect,
Dimension maxDimension,
double scaleX,
double scaleY)
|
protected Rectangle |
computeScreenExtent()
|
protected void |
computeSymbolPoints(DrawContext dc)
|
protected void |
computeTransform(DrawContext dc)
|
protected PickedObject |
createPickedObject(int colorCode)
|
protected void |
determineActiveAttributes()
|
protected void |
doDrawOrderedRenderable(DrawContext dc,
PickSupport pickCandidates)
|
protected void |
draw(DrawContext dc)
|
protected void |
drawBatched(DrawContext dc)
|
protected void |
drawGlyphs(DrawContext dc)
|
protected void |
drawGraphicModifiers(DrawContext dc)
|
protected void |
drawIcon(DrawContext dc)
|
protected void |
drawLabels(DrawContext dc)
|
protected void |
drawLines(DrawContext dc)
|
protected void |
drawOrderedRenderable(DrawContext dc)
|
protected void |
drawTextModifiers(DrawContext dc)
|
protected void |
endDrawing(DrawContext dc)
|
protected TacticalSymbolAttributes |
getActiveAttributes()
|
int |
getAltitudeMode()
Indicates this symbol's altitude mode. |
TacticalSymbolAttributes |
getAttributes()
Returns this symbol's normal (as opposed to highlight) attributes. |
Object |
getDelegateOwner()
Indicates the delegate owner of this symbol. |
protected Double |
getDepthOffset()
|
double |
getDistanceFromEye()
Returns the ordered renderable's distance from the current view's eye point. |
protected String |
getFormattedPosition()
Indicates the symbol's current position, formatted according to the current UnitsFormat. |
protected AbstractTacticalSymbol.IconAtlasElement |
getGlyph(String modifierCode,
AVList retrieverParams)
|
protected TextureAtlas |
getGlyphAtlas()
|
TacticalSymbolAttributes |
getHighlightAttributes()
Returns this symbol's highlight attributes. |
protected IconRetriever |
getIconRetriever()
|
protected int |
getMaxLabelLines(AVList modifiers)
|
protected int |
getMaxSymbolDimension()
Indicates the maximum expected size of a rendered tactical symbol. |
Object |
getModifier(String modifier)
Indicates the current value of a text or graphic modifier. |
protected IconRetriever |
getModifierRetriever()
|
Offset |
getOffset()
Indicates a location within the symbol to align with the symbol point. |
Position |
getPosition()
Indicates this symbol's geographic position. |
Position |
getReferencePosition()
A position associated with the object that indicates its aggregate geographic position. |
UnitsFormat |
getUnitsFormat()
Indicates the unit format used to format values in text modifiers. |
protected boolean |
intersectsFrustum(DrawContext dc)
|
boolean |
isEnableBatchPicking()
|
boolean |
isEnableBatchRendering()
|
boolean |
isHighlighted()
Indicates whether to highlight the shape. |
boolean |
isShowGraphicModifiers()
Indicates whether this symbol draws its supplemental graphic modifiers. |
boolean |
isShowHostileIndicator()
Indicates whether or not to display an indicator when the symbol represents a hostile entity. |
boolean |
isShowLocation()
Indicates whether or not to display this symbol's location as a text modifier. |
boolean |
isShowTextModifiers()
Indicates whether this symbol draws its supplemental text modifiers. |
boolean |
isVisible()
Indicates whether this symbol is drawn when in view. |
protected void |
layout(DrawContext dc)
|
protected void |
layoutDynamicModifiers(DrawContext dc,
AVList modifiers)
Layout dynamic modifiers around the symbol. |
protected void |
layoutGraphicModifiers(DrawContext dc,
AVList modifiers)
Layout static graphic modifiers around the symbol. |
protected void |
layoutIcon(DrawContext dc,
AbstractTacticalSymbol.IconSource source)
|
protected Rectangle |
layoutLabelRect(Offset offset,
Offset hotspot,
Dimension size,
Object layoutMode)
Layout a label rectangle relative to the current layout. |
protected List<? extends Point2D> |
layoutPoints(Offset offset,
List<? extends Point2D> points,
Object layoutMode,
int numPointsInLayout)
|
protected Rectangle |
layoutRect(Offset offset,
Offset hotspot,
Dimension size,
Object layoutMode)
Layout a rectangle relative to the current layout. |
protected void |
layoutStaticModifiers(DrawContext dc,
AVList modifiers)
Layout static modifiers around the symbol. |
protected void |
layoutTextModifiers(DrawContext dc,
AVList modifiers)
Layout static text modifiers around the symbol. |
protected void |
makeOrderedRenderable(DrawContext dc)
|
void |
move(Position delta)
Shift the shape over the globe's surface while maintaining its original azimuth, its orientation relative to North. |
void |
moveTo(Position position)
Move the shape over the globe's surface while maintaining its original azimuth, its orientation relative to North. |
protected boolean |
mustDrawGraphicModifiers(DrawContext dc)
|
protected boolean |
mustDrawIcon(DrawContext dc)
|
protected boolean |
mustDrawTextModifiers(DrawContext dc)
|
protected boolean |
mustLayout(AbstractTacticalSymbol.IconSource iconSource,
AVList modifiers)
Determines if the icon layout or static modifier layout must be computed. |
void |
pick(DrawContext dc,
Point pickPoint)
Executes a pick of the ordered renderable. |
protected void |
prepareToDraw(DrawContext dc)
|
protected void |
removeDeadModifiers(long now)
|
void |
render(DrawContext dc)
Causes this Renderable to render itself using the provided draw context. |
protected void |
reset()
Invalidate the symbol layout, causing it to be recomputed on the next frame. |
void |
setAltitudeMode(int altitudeMode)
Specifies this symbol's altitude mode. |
void |
setAttributes(TacticalSymbolAttributes normalAttrs)
Specifies this symbol's normal (as opposed to highlight) attributes. |
void |
setDelegateOwner(Object owner)
Specifies the delegate owner of this symbol. |
protected void |
setDepthOffset(Double depthOffset)
|
void |
setEnableBatchPicking(boolean enableBatchPicking)
|
void |
setEnableBatchRendering(boolean enableBatchRendering)
|
protected void |
setGlyphAtlas(TextureAtlas atlas)
|
void |
setHighlightAttributes(TacticalSymbolAttributes highlightAttrs)
Specifies this symbol's highlight attributes. |
void |
setHighlighted(boolean highlighted)
Specifies whether to highlight the shape. |
protected void |
setIconRetriever(IconRetriever retriever)
|
void |
setModifier(String modifier,
Object value)
Specifies the value of a text or graphic modifier. |
protected void |
setModifierRetriever(IconRetriever retriever)
|
void |
setOffset(Offset offset)
Specifies a location within the tactical symbol to align with the symbol point. |
void |
setPosition(Position position)
Specifies this symbol's geographic position. |
void |
setShowGraphicModifiers(boolean showGraphicModifiers)
Specifies whether to draw this symbol's supplemental graphic modifiers. |
void |
setShowHostileIndicator(boolean show)
Specifies whether or not to display an indicator when the symbol represents a hostile entity. |
void |
setShowLocation(boolean show)
Specifies whether or not to display this symbol's location as a text modifier. |
void |
setShowTextModifiers(boolean showTextModifiers)
Specifies whether to draw this symbol's supplemental text modifiers. |
void |
setUnitsFormat(UnitsFormat unitsFormat)
Specifies the unit format used to format values in text modifiers. |
void |
setVisible(boolean visible)
Specifies whether this symbol is drawn when in view. |
| 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.symbology.TacticalSymbol |
|---|
getIdentifier |
| 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 java.beans.PropertyChangeListener |
|---|
propertyChange |
| Methods inherited from interface gov.nasa.worldwind.event.MessageListener |
|---|
onMessage |
| Field Detail |
|---|
protected TacticalSymbolAttributes activeAttrs
determineActiveAttributes(). Initialized
to a new BasicTacticalSymbolAttributes.
protected WWTexture activeIconTexture
protected AVList activeModifiers
modifiers, and applying changings in
applyImplicitModifiers(gov.nasa.worldwind.avlist.AVList).
protected int altitudeMode
setAltitudeMode(int) for a description of the valid altitude
modes. Initially Worldwind.ABSOLUTE.
protected OGLStackHandler BEogsh
beginDrawing(gov.nasa.worldwind.render.DrawContext, int) and endDrawing(gov.nasa.worldwind.render.DrawContext).
protected List<AbstractTacticalSymbol.IconAtlasElement> currentGlyphs
protected List<AbstractTacticalSymbol.Label> currentLabels
protected List<AbstractTacticalSymbol.Line> currentLines
protected static final double DEFAULT_DEPTH_OFFSET
protected static final TextureAtlas DEFAULT_GLYPH_ATLAS
layoutGlyphModifier. Initialized with initial dimensions of 1024x128 and maximum dimensions of
2048x2048. Configured to remove the least recently used texture elements when more space is needed.
protected static final int DEFAULT_LABEL_LINES
protected static final long DEFAULT_MAX_TIME_SINCE_LAST_USED
public static final UnitsFormat DEFAULT_UNITS_FORMAT
protected static TacticalSymbolAttributes defaultAttrs
protected Object delegateOwner
protected Double depthOffset
protected double dx
computeTransform(gov.nasa.worldwind.render.DrawContext). Initially 0.
protected double dy
computeTransform(gov.nasa.worldwind.render.DrawContext). Initially 0.
protected boolean enableBatchPicking
protected boolean enableBatchRendering
protected double eyeDistance
computeSymbolPoints(gov.nasa.worldwind.render.DrawContext). Initially 0.
protected String formattedPosition
protected long frameNumber
protected TextureAtlas glyphAtlas
protected Map<String,AbstractTacticalSymbol.IconAtlasElement> glyphMap
protected TacticalSymbolAttributes highlightAttrs
null, indicating that the default attributes
are used. Initially null.
protected boolean highlighted
true if this symbol is highlighted, otherwise
false. Initially false.
protected Offset iconOffset
protected Rectangle iconRect
protected Rectangle iconRectScaled
protected IconRetriever iconRetriever
protected Size iconSize
protected WWTexture iconTexture
protected static final String LAYOUT_ABSOLUTE
protected static final String LAYOUT_NONE
protected static final String LAYOUT_RELATIVE
protected Rectangle layoutRect
protected Rectangle layoutRectScaled
public static final String LOADING_IMAGE_PATH
protected static final int MAX_SYMBOL_DIMENSION
protected long maxTimeSinceLastUsed
protected IconRetriever modifierRetriever
protected AVList modifiers
setModifier(String, Object). Initialized to a new AVListImpl, and populated during construction from values in
the string identifier and the modifiers list.
protected TacticalSymbolAttributes normalAttrs
null, indicating that
the default attributes are used. Initially null.
protected Offset offset
protected Layer pickLayer
makeOrderedRenderable(gov.nasa.worldwind.render.DrawContext). Used to define the picked object's layer
during pick resolution. Initially null.
protected PickSupport pickSupport
pick(gov.nasa.worldwind.render.DrawContext, java.awt.Point).
protected Vec4 placePoint
computeSymbolPoints(gov.nasa.worldwind.render.DrawContext). Initially null.
protected Position position
setPosition(gov.nasa.worldwind.geom.Position) for a
description of how tactical symbols interpret their position. Must be non-null, and is initialized during
construction.
protected Vec4 screenPoint
computeSymbolPoints(gov.nasa.worldwind.render.DrawContext). Initially
null.
protected Rectangle screenRect
protected boolean showGraphicModifiers
true if this symbol draws
its graphic modifiers, otherwise false. Initially true.
protected boolean showHostileIndicator
protected boolean showLocation
protected boolean showTextModifiers
true if this symbol draws its
text modifiers, otherwise false. Initially true.
protected Rectangle staticLayoutRect
protected Rectangle staticScreenRect
protected double sx
computeTransform(gov.nasa.worldwind.render.DrawContext). Initially 0.
protected double sy
computeTransform(gov.nasa.worldwind.render.DrawContext). Initially 0.
protected UnitsFormat unitsFormat
protected boolean unresolvedGlyph
protected boolean visible
true if this symbol is drawn when in view,
otherwise false. Initially true.
| Constructor Detail |
|---|
protected AbstractTacticalSymbol()
protected AbstractTacticalSymbol(Position position)
position - the latitude, longitude, and altitude where the symbol is drawn.
IllegalArgumentException - if the position is null.| Method Detail |
|---|
protected void addGlyph(DrawContext dc,
Offset offset,
Offset hotspot,
String modifierCode)
protected void addGlyph(DrawContext dc,
Offset offset,
Offset hotspot,
String modifierCode,
AVList retrieverParams,
Object layoutMode)
protected void addLabel(DrawContext dc,
Offset offset,
Offset hotspot,
String modifierText)
protected void addLabel(DrawContext dc,
Offset offset,
Offset hotspot,
String modifierText,
Font font,
Color color,
Object layoutMode)
protected void addLine(DrawContext dc,
Offset offset,
List<? extends Point2D> points)
protected void addLine(DrawContext dc,
Offset offset,
List<? extends Point2D> points,
Object layoutMode,
int numPointsInLayout)
protected void applyImplicitModifiers(AVList modifiers)
modifiers - List of modifiers. This method may modify this list by adding implicit modifiers.protected AVList assembleIconRetrieverParameters(AVList params)
protected void beginDrawing(DrawContext dc,
int attrMask)
protected Dimension computeMinTextLayout(DrawContext dc,
AVList modifiers)
dc - Current draw context.
protected void computeScale()
protected void computeScaledBounds(DrawContext dc,
AVList modifiers)
iconRectScaled and
layoutRectScaled.
dc - Current draw context.modifiers - Current modifiers.
protected Rectangle computeScaledRect(Rectangle rect,
Dimension maxDimension,
double scaleX,
double scaleY)
protected Rectangle computeScreenExtent()
protected void computeSymbolPoints(DrawContext dc)
protected void computeTransform(DrawContext dc)
protected PickedObject createPickedObject(int colorCode)
protected void determineActiveAttributes()
protected void doDrawOrderedRenderable(DrawContext dc,
PickSupport pickCandidates)
protected void draw(DrawContext dc)
protected void drawBatched(DrawContext dc)
protected void drawGlyphs(DrawContext dc)
protected void drawGraphicModifiers(DrawContext dc)
protected void drawIcon(DrawContext dc)
protected void drawLabels(DrawContext dc)
protected void drawLines(DrawContext dc)
protected void drawOrderedRenderable(DrawContext dc)
protected void drawTextModifiers(DrawContext dc)
protected void endDrawing(DrawContext dc)
protected TacticalSymbolAttributes getActiveAttributes()
public int getAltitudeMode()
TacticalSymbol.setAltitudeMode(int) for a description of the valid altitude
modes.
getAltitudeMode in interface TacticalSymbolpublic TacticalSymbolAttributes getAttributes()
getAttributes in interface TacticalSymbolnull, indicating that the default highlight
attributes are used.public Object getDelegateOwner()
getDelegateOwner in interface TacticalSymbolprotected Double getDepthOffset()
public double getDistanceFromEye()
getDistanceFromEye in interface OrderedRenderableprotected String getFormattedPosition()
protected AbstractTacticalSymbol.IconAtlasElement getGlyph(String modifierCode,
AVList retrieverParams)
protected TextureAtlas getGlyphAtlas()
public TacticalSymbolAttributes getHighlightAttributes()
getHighlightAttributes in interface TacticalSymbolnull, indicating that the default attributes are
used.protected IconRetriever getIconRetriever()
protected int getMaxLabelLines(AVList modifiers)
protected int getMaxSymbolDimension()
public Object getModifier(String modifier)
TacticalSymbol.setModifier(String, Object) for a
description of how modifiers values are interpreted.
getModifier in interface TacticalSymbolmodifier - the modifier key.
null, indicating that this symbol does not display the specified
modifier.protected IconRetriever getModifierRetriever()
public Offset getOffset()
setOffset for more information.
public Position getPosition()
TacticalSymbol.setPosition(gov.nasa.worldwind.geom.Position) for a
description of how tactical symbols interpret their position.
getPosition in interface TacticalSymbolpublic Position getReferencePosition()
getReferencePosition in interface Movablepublic UnitsFormat getUnitsFormat()
getUnitsFormat in interface TacticalSymbolprotected boolean intersectsFrustum(DrawContext dc)
public boolean isEnableBatchPicking()
public boolean isEnableBatchRendering()
public boolean isHighlighted()
isHighlighted in interface Highlightablepublic boolean isShowGraphicModifiers()
isShowGraphicModifiers in interface TacticalSymbolpublic boolean isShowHostileIndicator()
setShowHostileIndicator for more information.
isShowHostileIndicator in interface TacticalSymbolpublic boolean isShowLocation()
isShowLocation in interface TacticalSymbolpublic boolean isShowTextModifiers()
isShowTextModifiers in interface TacticalSymbolpublic boolean isVisible()
isVisible in interface TacticalSymbolprotected void layout(DrawContext dc)
protected void layoutDynamicModifiers(DrawContext dc,
AVList modifiers)
dc - Current draw context.modifiers - Current modifiers.layoutStaticModifiers(gov.nasa.worldwind.render.DrawContext, gov.nasa.worldwind.avlist.AVList)
protected void layoutGraphicModifiers(DrawContext dc,
AVList modifiers)
dc - Current draw context.modifiers - Current modifiers.layoutDynamicModifiers(gov.nasa.worldwind.render.DrawContext, gov.nasa.worldwind.avlist.AVList)
protected void layoutIcon(DrawContext dc,
AbstractTacticalSymbol.IconSource source)
protected Rectangle layoutLabelRect(Offset offset,
Offset hotspot,
Dimension size,
Object layoutMode)
offset - Offset into either the iconRect or layoutRect at which to align the hot spot.hotspot - Offset into the rectangle of the hot spot.size - Size of the rectangle.layoutMode - One of LAYOUT_ABSOLUTE, LAYOUT_RELATIVE, or LAYOUT_NONE.
protected List<? extends Point2D> layoutPoints(Offset offset,
List<? extends Point2D> points,
Object layoutMode,
int numPointsInLayout)
protected Rectangle layoutRect(Offset offset,
Offset hotspot,
Dimension size,
Object layoutMode)
offset - Offset into either the iconRect or layoutRect at which to align the hot spot.hotspot - Offset into the rectangle of the hot spot.size - Size of the rectangle.layoutMode - One of LAYOUT_ABSOLUTE, LAYOUT_RELATIVE, or LAYOUT_NONE.
protected void layoutStaticModifiers(DrawContext dc,
AVList modifiers)
layoutGraphicModifiers and layoutTextModifiers.
dc - Current draw context.modifiers - Current modifiers.layoutDynamicModifiers(gov.nasa.worldwind.render.DrawContext, gov.nasa.worldwind.avlist.AVList),
layoutGraphicModifiers(gov.nasa.worldwind.render.DrawContext, gov.nasa.worldwind.avlist.AVList),
layoutTextModifiers(gov.nasa.worldwind.render.DrawContext, gov.nasa.worldwind.avlist.AVList)
protected void layoutTextModifiers(DrawContext dc,
AVList modifiers)
dc - Current draw context.modifiers - Current modifiers.layoutDynamicModifiers(gov.nasa.worldwind.render.DrawContext, gov.nasa.worldwind.avlist.AVList)protected void makeOrderedRenderable(DrawContext dc)
public void move(Position delta)
move in interface Movabledelta - the latitude and longitude to add to the shape's reference position.public void moveTo(Position position)
moveTo in interface Movableposition - the new position of the shape's reference position.protected boolean mustDrawGraphicModifiers(DrawContext dc)
protected boolean mustDrawIcon(DrawContext dc)
protected boolean mustDrawTextModifiers(DrawContext dc)
protected boolean mustLayout(AbstractTacticalSymbol.IconSource iconSource,
AVList modifiers)
iconSource - Current icon source.modifiers - Current modifiers.
public void pick(DrawContext dc,
Point pickPoint)
pick in interface OrderedRenderabledc - the current draw context.pickPoint - the pick point.protected void prepareToDraw(DrawContext dc)
protected void removeDeadModifiers(long now)
public void render(DrawContext dc)
Renderable to render itself using the provided draw context.
render in interface Renderabledc - the DrawContext to be usedDrawContextprotected void reset()
public void setAltitudeMode(int altitudeMode)
setAltitudeMode in interface TacticalSymbolaltitudeMode - this symbol's new altitude mode.public void setAttributes(TacticalSymbolAttributes normalAttrs)
setAttributes in interface TacticalSymbolnormalAttrs - the normal attributes. May be null, in which case default attributes are used.public void setDelegateOwner(Object owner)
setDelegateOwner in interface TacticalSymbolowner - the object to use as the pickable object returned during picking, or null to return the symbol.protected void setDepthOffset(Double depthOffset)
public void setEnableBatchPicking(boolean enableBatchPicking)
public void setEnableBatchRendering(boolean enableBatchRendering)
protected void setGlyphAtlas(TextureAtlas atlas)
public void setHighlightAttributes(TacticalSymbolAttributes highlightAttrs)
setHighlightAttributes in interface TacticalSymbolhighlightAttrs - the highlight attributes. May be null, in which case default highlight
attributes are used.public void setHighlighted(boolean highlighted)
setHighlighted in interface Highlightablehighlighted - true to highlight the shape, otherwise false.protected void setIconRetriever(IconRetriever retriever)
public void setModifier(String modifier,
Object value)
null, the modifier is removed from this symbol.
If the specified modifier represents a graphic or text modifier, its display is suppressed if
isShowGraphicModifiers or isShowTextModifiers, respectively, returns false.
setModifier in interface TacticalSymbolmodifier - the modifier key.value - the modifier value. May be null, indicating that the modifier should be removed from
this symbol.protected void setModifierRetriever(IconRetriever retriever)
public void setOffset(Offset offset)
setOffset(Offset.CENTER) aligns the center of the symbol with the symbol point, and setOffset(Offset.BOTTOM_CENTER) aligns the center of the bottom edge with the symbol point.
offset - the hot spot controlling the symbol's placement relative to the symbol point. May be null to
indicate default alignment.public void setPosition(Position position)
setPosition in interface TacticalSymbolposition - this symbol's new position.public void setShowGraphicModifiers(boolean showGraphicModifiers)
setShowGraphicModifiers in interface TacticalSymbolshowGraphicModifiers - true if this symbol should draw its graphic modifiers, otherwise false.public void setShowHostileIndicator(boolean show)
setShowHostileIndicator in interface TacticalSymbolshow - true if this symbol will display an indicator when this symbol represents a hostile entity and the
symbol specification supports such an indicator.public void setShowLocation(boolean show)
setShowLocation in interface TacticalSymbolshow - true if the symbol will display the location modifier. Note that not some symbols may not support
this modifier.public void setShowTextModifiers(boolean showTextModifiers)
setShowTextModifiers in interface TacticalSymbolshowTextModifiers - true if this symbol should draw its text modifiers, otherwise false.public void setUnitsFormat(UnitsFormat unitsFormat)
setUnitsFormat in interface TacticalSymbolunitsFormat - Format used to format text modifiers.public void setVisible(boolean visible)
setVisible in interface TacticalSymbolvisible - true if this symbol should be drawn when in view, otherwise false.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||