|
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.render.AbstractShape
gov.nasa.worldwindx.applications.antenna.AntennaAxes
public class AntennaAxes
Provides axes for AntennaModel. The axes are positioned by a Position, an azimuth and ane elevation
angle. The azimuth orients the axes clockwise from north. The elevation angle rotates the axes vertically
counterclockwise from the horizon.
| Nested Class Summary | |
|---|---|
protected static class |
AntennaAxes.ShapeData
This class holds globe-specific data for this shape. |
| Nested classes/interfaces inherited from class gov.nasa.worldwind.render.AbstractShape |
|---|
AbstractShape.AbstractShapeData |
| Field Summary | |
|---|---|
protected Angle |
azimuth
|
static int |
DISPLAY_MODE_FILL
|
static int |
DISPLAY_MODE_LINE
|
protected Angle |
elevationAngle
|
protected Font |
labelFont
|
protected double |
length
|
protected int |
nHeightIntervals
|
protected int |
nThetaIntervals
|
protected Position |
position
|
protected double |
radius
|
protected String |
xAxisLabel
|
protected String |
yAxisLabel
|
protected String |
zAxisLabel
|
| Fields inherited from interface gov.nasa.worldwind.Exportable |
|---|
FORMAT_NOT_SUPPORTED, FORMAT_PARTIALLY_SUPPORTED, FORMAT_SUPPORTED |
| Constructor Summary | |
|---|---|
AntennaAxes()
|
|
| Method Summary | |
|---|---|
protected AbstractShape.AbstractShapeData |
createCacheEntry(DrawContext dc)
Creates and returns a new cache entry specific to the subclass. |
protected void |
doDrawInterior(DrawContext dc)
Draws this shape's interior. |
protected void |
doDrawOutline(DrawContext dc)
Draws this shape's outline. |
protected void |
doExportAsKML(XMLStreamWriter xmlWriter)
Exports shape-specific fields. |
protected boolean |
doMakeOrderedRenderable(DrawContext dc)
Produces the geometry and other state necessary to represent this shape as an ordered renderable. |
void |
drawAxes(DrawContext dc)
|
protected void |
drawCone(DrawContext dc,
AntennaAxes.ShapeData shapeData)
|
protected void |
drawCylinder(DrawContext dc,
AntennaAxes.ShapeData shapeData)
|
protected void |
drawLabel(TextRenderer textRenderer,
String text,
Vec4 screenPoint,
Color textColor,
Color bgColor)
|
protected void |
drawLabels(DrawContext dc)
|
protected void |
fillVBO(DrawContext dc)
Fill this shape's vertex buffer objects. |
Angle |
getAzimuth()
|
protected AntennaAxes.ShapeData |
getCurrent()
Returns the current shape data cache entry. |
Angle |
getElevationAngle()
|
Extent |
getExtent(Globe globe,
double verticalExaggeration)
Returns the objects enclosing volume as an Extent in model coordinates, given a
specified Globe and vertical exaggeration (see SceneController.getVerticalExaggeration(). |
Font |
getLabelFont()
|
double |
getLength()
|
Position |
getPosition()
|
double |
getRadius()
|
Position |
getReferencePosition()
A position associated with the object that indicates its aggregate geographic position. |
Sector |
getSector()
Returns the object's geographic extent. |
String |
getXAxisLabel()
|
String |
getYAxisLabel()
|
String |
getZAxisLabel()
|
protected void |
initialize()
Called during construction to establish any subclass-specific state such as different default values than those set by this class. |
List<Intersection> |
intersect(Line line,
Terrain terrain)
Compute the intersections of a specified line with this shape. |
String |
isExportFormatSupported(String mimeType)
Does this object support a certain export format? |
protected boolean |
isOrderedRenderableValid(DrawContext dc)
Determines whether this shape's ordered renderable state is valid and can be rendered. |
protected void |
makeCone()
|
protected void |
makeCylinderIndices()
|
protected void |
makeCylinderNormals()
|
protected void |
makeCylinderVertices(DrawContext dc)
|
void |
moveTo(Position position)
Move the shape over the globe's surface while maintaining its original azimuth, its orientation relative to North. |
protected boolean |
mustApplyTexture(DrawContext dc)
Indicates whether texture should be applied to this shape. |
protected boolean |
mustDrawOutline()
Indicates whether this shape's outline must be drawn. |
protected boolean |
mustRegenerateGeometry(DrawContext dc)
Indicates whether this shape's renderable geometry must be recomputed, either as a result of an attribute or property change or the expiration of the geometry regeneration interval. |
void |
render(DrawContext dc)
Causes this Renderable to render itself using the provided draw context. |
void |
setAzimuth(Angle azimuth)
Specifies an angle clockwise from north by which to rotate the axes. |
void |
setElevationAngle(Angle elevationAngle)
Specifies an angle to rotate the axes vertically counterclockwise from the horizon. |
void |
setLabelFont(Font labelFont)
|
void |
setLength(double length)
Specifies the length of the axes, in meters. |
void |
setPosition(Position position)
Specifies the position of the axes' origin. |
void |
setRadius(double radius)
|
void |
setXAxisLabel(String xAxisLabel)
|
void |
setYAxisLabel(String yAxisLabel)
|
void |
setZAxisLabel(String zAxisLabel)
|
protected boolean |
shouldUseVBOs(DrawContext dc)
Indicates whether this shape should use OpenGL vertex buffer objects. |
| 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.avlist.AVList |
|---|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
| Field Detail |
|---|
protected Angle azimuth
public static final int DISPLAY_MODE_FILL
public static final int DISPLAY_MODE_LINE
protected Angle elevationAngle
protected Font labelFont
protected double length
protected int nHeightIntervals
protected int nThetaIntervals
protected Position position
protected double radius
protected String xAxisLabel
protected String yAxisLabel
protected String zAxisLabel
| Constructor Detail |
|---|
public AntennaAxes()
| Method Detail |
|---|
protected AbstractShape.AbstractShapeData createCacheEntry(DrawContext dc)
AbstractShape
createCacheEntry in class AbstractShapedc - the current draw context.
protected void doDrawInterior(DrawContext dc)
AbstractShapeAbstractShape.prepareToDrawInterior(DrawContext,
ShapeAttributes, ShapeAttributes), which establishes OpenGL state for lighting, blending, pick color and
interior attributes. Subclasses should execute the drawing commands specific to the type of shape.
A AbstractShape.AbstractShapeData must be current when this method is called.
doDrawInterior in class AbstractShapedc - the current draw context.protected void doDrawOutline(DrawContext dc)
AbstractShapeAbstractShape.prepareToDrawOutline(DrawContext,
ShapeAttributes, ShapeAttributes), which establishes OpenGL state for lighting, blending, pick color and line
attributes. Subclasses should execute the drawing commands specific to the type of shape.
A AbstractShape.AbstractShapeData must be current when this method is called.
doDrawOutline in class AbstractShapedc - the current draw context.
protected void doExportAsKML(XMLStreamWriter xmlWriter)
throws IOException,
XMLStreamException
AbstractShape
doExportAsKML in class AbstractShapexmlWriter - the export writer to write to.
IOException - if an IO error occurs while writing to the output destination.
XMLStreamException - if an exception occurs converting this shape's fields to XML.protected boolean doMakeOrderedRenderable(DrawContext dc)
AbstractShapeAbstractShape.pick(DrawContext, java.awt.Point) and AbstractShape.render(DrawContext) when it's been determined that the shape is
likely to be visible.
doMakeOrderedRenderable in class AbstractShapedc - the current draw context.
AbstractShape.pick(DrawContext, java.awt.Point),
AbstractShape.render(DrawContext)public void drawAxes(DrawContext dc)
protected void drawCone(DrawContext dc,
AntennaAxes.ShapeData shapeData)
protected void drawCylinder(DrawContext dc,
AntennaAxes.ShapeData shapeData)
protected void drawLabel(TextRenderer textRenderer,
String text,
Vec4 screenPoint,
Color textColor,
Color bgColor)
protected void drawLabels(DrawContext dc)
protected void fillVBO(DrawContext dc)
AbstractShapeAbstractShape.AbstractShapeData must be current when this method is called.
fillVBO in class AbstractShapedc - the current draw context.public Angle getAzimuth()
protected AntennaAxes.ShapeData getCurrent()
public Angle getElevationAngle()
public Extent getExtent(Globe globe,
double verticalExaggeration)
ExtentHolderExtent in model coordinates, given a
specified Globe and vertical exaggeration (see SceneController.getVerticalExaggeration().
getExtent in interface ExtentHoldergetExtent in class AbstractShapeglobe - the Globe the object is related to.verticalExaggeration - the vertical exaggeration of the scene containing this object.
public Font getLabelFont()
public double getLength()
public Position getPosition()
public double getRadius()
public Position getReferencePosition()
Movable
public Sector getSector()
GeographicExtent
public String getXAxisLabel()
public String getYAxisLabel()
public String getZAxisLabel()
protected void initialize()
AbstractShape
initialize in class AbstractShape
public List<Intersection> intersect(Line line,
Terrain terrain)
throws InterruptedException
AbstractShapeWorldWind.ABSOLUTE, the shape's geometry is created relative to the specified terrain rather than the terrain
used during rendering, which may be at lower level of detail than required for accurate intersection
determination.
intersect in class AbstractShapeline - the line to intersect.terrain - the Terrain to use when computing the shape's geometry.
InterruptedException - if the operation is interrupted.Terrainpublic String isExportFormatSupported(String mimeType)
Exportable
isExportFormatSupported in interface ExportableisExportFormatSupported in class AbstractShapemimeType - Desired export format.
Exportable.FORMAT_SUPPORTED, Exportable.FORMAT_NOT_SUPPORTED, or Exportable.FORMAT_PARTIALLY_SUPPORTED.Exportable.export(String, Object)protected boolean isOrderedRenderableValid(DrawContext dc)
AbstractShapeAbstractShape.makeOrderedRenderable(DrawContext)just prior to adding the shape to the ordered renderable list.
isOrderedRenderableValid in class AbstractShapedc - the current draw context.
protected void makeCone()
protected void makeCylinderIndices()
protected void makeCylinderNormals()
protected void makeCylinderVertices(DrawContext dc)
public void moveTo(Position position)
Movable
position - the new position of the shape's reference position.protected boolean mustApplyTexture(DrawContext dc)
AbstractShape
mustApplyTexture in class AbstractShapedc - the current draw context
protected boolean mustDrawOutline()
AbstractShape
mustDrawOutline in class AbstractShapeprotected boolean mustRegenerateGeometry(DrawContext dc)
AbstractShapeAbstractShape.AbstractShapeData must be current when this method is called.
mustRegenerateGeometry in class AbstractShapedc - the current draw context.
public void render(DrawContext dc)
RenderableRenderable to render itself using the provided draw context.
render in interface Renderablerender in class AbstractShapedc - the DrawContext to be usedDrawContextpublic void setAzimuth(Angle azimuth)
azimuth - the angle from north.public void setElevationAngle(Angle elevationAngle)
elevationAngle - the elevation angle.public void setLabelFont(Font labelFont)
public void setLength(double length)
length - the axes length in meters.public void setPosition(Position position)
position - the position of the axes' origin.public void setRadius(double radius)
public void setXAxisLabel(String xAxisLabel)
public void setYAxisLabel(String yAxisLabel)
public void setZAxisLabel(String zAxisLabel)
protected boolean shouldUseVBOs(DrawContext dc)
AbstractShape
shouldUseVBOs in class AbstractShapedc - the current draw context.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||