public class BasicMarker extends java.lang.Object implements Marker
Modifier and Type | Field and Description |
---|---|
protected MarkerAttributes |
attributes |
protected Angle |
heading |
protected Angle |
pitch |
protected Position |
position |
protected Angle |
roll |
Constructor and Description |
---|
BasicMarker(Position position,
MarkerAttributes attrs) |
BasicMarker(Position position,
MarkerAttributes attrs,
Angle heading) |
Modifier and Type | Method and 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.
|
protected MarkerAttributes attributes
protected Angle heading
protected Angle pitch
protected Position position
protected Angle roll
public BasicMarker(Position position, MarkerAttributes attrs)
public BasicMarker(Position position, MarkerAttributes attrs, Angle heading)
public MarkerAttributes getAttributes()
getAttributes
in interface Marker
public Angle getHeading()
getHeading
in interface Marker
public Angle getPitch()
public Position getPosition()
getPosition
in interface Marker
public Angle getRoll()
public void render(DrawContext dc, Vec4 point, double radius)
public void render(DrawContext dc, Vec4 point, double radius, boolean isRelative)
public void setAttributes(MarkerAttributes attributes)
setAttributes
in interface Marker
public void setHeading(Angle heading)
setHeading
in interface Marker
heading
- the marker heading in degrees clockwise from North. May be null, in which case no heading is
applied.public void setPitch(Angle pitch)
public void setPosition(Position position)
setPosition
in interface Marker
public void setRoll(Angle roll)