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 MarkerAttributes
attributes
protected Angle
heading
protected Angle
pitch
protected Position
position
protected Angle
roll
-
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 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.
-
-
-
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:
getPosition
in interfaceMarker
-
setPosition
public void setPosition(Position position)
- Specified by:
setPosition
in 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:
getHeading
in 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:
setHeading
in 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:
getAttributes
in interfaceMarker
-
setAttributes
public void setAttributes(MarkerAttributes attributes)
- Specified by:
setAttributes
in interfaceMarker
-
render
public void render(DrawContext dc, Vec4 point, double radius, boolean isRelative)
-
render
public void render(DrawContext dc, Vec4 point, double radius)
-
-