NASA World Wind

gov.nasa.worldwind.render.markers
Class BasicMarker

java.lang.Object
  extended by gov.nasa.worldwind.render.markers.BasicMarker
All Implemented Interfaces:
Marker
Direct Known Subclasses:
ExtrudedPolygonEditor.ControlPointMarker, MarkersOrder.AppFrame.TimedMarker, RigidShapeEditor.ControlPointMarker, SurfaceImageEditor.ControlPointMarker

public class BasicMarker
extends Object
implements Marker


Field Summary
protected  MarkerAttributes attributes
           
protected  Angle heading
           
protected  Angle pitch
           
protected  Position position
           
protected  Angle roll
           
 
Constructor Summary
BasicMarker(Position position, MarkerAttributes attrs)
           
BasicMarker(Position position, MarkerAttributes attrs, Angle heading)
           
 
Method Summary
 MarkerAttributes getAttributes()
           
 Angle getHeading()
          Indicates heading of this marker.
 Angle getPitch()
          Indicates pitch this marker.
 Position getPosition()
           
 Angle getRoll()
          Indicates the roll of this marker.
 void render(DrawContext dc, Vec4 point, double radius)
           
 void render(DrawContext dc, Vec4 point, double radius, boolean isRelative)
           
 void setAttributes(MarkerAttributes attributes)
           
 void setHeading(Angle heading)
          Specifies the heading of this marker.
 void setPitch(Angle pitch)
          Specifies the pitch of this marker.
 void setPosition(Position position)
           
 void setRoll(Angle roll)
          Specifies the roll of this marker.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attributes

protected MarkerAttributes attributes

heading

protected Angle heading

pitch

protected Angle pitch

position

protected Position position

roll

protected Angle roll
Constructor Detail

BasicMarker

public BasicMarker(Position position,
                   MarkerAttributes attrs)

BasicMarker

public BasicMarker(Position position,
                   MarkerAttributes attrs,
                   Angle heading)
Method Detail

getAttributes

public MarkerAttributes getAttributes()
Specified by:
getAttributes in interface Marker

getHeading

public Angle getHeading()
Indicates heading of this marker. Not all implementations support heading. If the implementation does not support heading, the heading will be ignored.

Specified by:
getHeading in interface Marker
Returns:
The marker heading in degrees clockwise from North. May be null, in which case no heading is applied.

getPitch

public Angle getPitch()
Indicates pitch this marker. Not all implementations support pitch. If the implementation does not support pitch, the pitch will be ignored.

Specified by:
getPitch in interface Marker
Returns:
The marker pitch in degrees from a surface normal. May be null, in which case no heading is applied.

getPosition

public Position getPosition()
Specified by:
getPosition in interface Marker

getRoll

public Angle getRoll()
Indicates the roll of this marker. Not all implementations support roll. If the implementation does not support roll, the roll will be ignored.

Specified by:
getRoll in interface Marker
Returns:
The marker roll in degrees clockwise. May be null, in which case no roll is applied.

render

public void render(DrawContext dc,
                   Vec4 point,
                   double radius)
Specified by:
render in interface Marker

render

public void render(DrawContext dc,
                   Vec4 point,
                   double radius,
                   boolean isRelative)
Specified by:
render in interface Marker

setAttributes

public void setAttributes(MarkerAttributes attributes)
Specified by:
setAttributes in interface Marker

setHeading

public void setHeading(Angle heading)
Specifies the heading of this marker.

Specified by:
setHeading in interface Marker
Parameters:
heading - the marker heading in degrees clockwise from North. May be null, in which case no heading is applied.

setPitch

public void setPitch(Angle pitch)
Specifies the pitch of this marker. Not all implementations support pitch. If the implementation does not support pitch, the pitch will be ignored.

Specified by:
setPitch in interface Marker
Parameters:
pitch - the marker pitch in degrees from a surface normal. Positive values result in a rotation toward the marker heading, or toward North if there is no heading. May be null, in which case no pitch is applied.

setPosition

public void setPosition(Position position)
Specified by:
setPosition in interface Marker

setRoll

public void setRoll(Angle roll)
Specifies the roll of this marker. Not all implementations support roll. If the implementation does not support roll, the roll will be ignored.

Specified by:
setRoll in interface Marker
Parameters:
roll - the marker roll in degrees clockwise. May be null, in which case no roll is applied.

NASA World Wind