Class BasicMarker
- java.lang.Object
-
- gov.nasa.worldwind.render.markers.BasicMarker
-
- All Implemented Interfaces:
Marker
- Direct Known Subclasses:
ExtrudedPolygonEditor.ControlPointMarker,MarkersOrder.AppFrame.TimedMarker,RigidShapeEditor.ControlPointMarker,ShapeEditor.ControlPointMarker,SurfaceImageEditor.ControlPointMarker
public class BasicMarker extends java.lang.Object implements Marker
-
-
Field Summary
Fields Modifier and Type Field Description protected MarkerAttributesattributesprotected Angleheadingprotected Anglepitchprotected Positionpositionprotected Angleroll
-
Constructor Summary
Constructors Constructor Description BasicMarker(Position position, MarkerAttributes attrs)BasicMarker(Position position, MarkerAttributes attrs, Angle heading)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MarkerAttributesgetAttributes()AnglegetHeading()Indicates heading of this marker.AnglegetPitch()Indicates pitch this marker.PositiongetPosition()AnglegetRoll()Indicates the roll of this marker.voidrender(DrawContext dc, Vec4 point, double radius)voidrender(DrawContext dc, Vec4 point, double radius, boolean isRelative)voidsetAttributes(MarkerAttributes attributes)voidsetHeading(Angle heading)Specifies the heading of this marker.voidsetPitch(Angle pitch)Specifies the pitch of this marker.voidsetPosition(Position position)voidsetRoll(Angle roll)Specifies the roll of this marker.
-
-
-
Field Detail
-
position
protected Position position
-
heading
protected Angle heading
-
pitch
protected Angle pitch
-
roll
protected Angle roll
-
attributes
protected MarkerAttributes attributes
-
-
Constructor Detail
-
BasicMarker
public BasicMarker(Position position, MarkerAttributes attrs)
-
BasicMarker
public BasicMarker(Position position, MarkerAttributes attrs, Angle heading)
-
-
Method Detail
-
getPosition
public Position getPosition()
- Specified by:
getPositionin interfaceMarker
-
setPosition
public void setPosition(Position position)
- Specified by:
setPositionin interfaceMarker
-
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:
getHeadingin interfaceMarker- Returns:
- The marker heading in degrees clockwise from North. May be null, in which case no heading is applied.
-
setHeading
public void setHeading(Angle heading)
Specifies the heading of this marker.- Specified by:
setHeadingin interfaceMarker- Parameters:
heading- the marker heading in degrees clockwise from North. May be null, in which case no heading is applied.
-
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.
-
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.
-
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.
-
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.
-
getAttributes
public MarkerAttributes getAttributes()
- Specified by:
getAttributesin interfaceMarker
-
setAttributes
public void setAttributes(MarkerAttributes attributes)
- Specified by:
setAttributesin interfaceMarker
-
render
public void render(DrawContext dc, Vec4 point, double radius, boolean isRelative)
-
render
public void render(DrawContext dc, Vec4 point, double radius)
-
-