us.ihmc.plotting.shapes
Class ShapeArtifact
java.lang.Object
us.ihmc.plotting.Artifact
us.ihmc.plotting.shapes.ShapeArtifact
- All Implemented Interfaces:
- java.io.Serializable, Plottable
public class ShapeArtifact
- extends Artifact
- See Also:
- Serialized Form
Constructor Summary |
ShapeArtifact(java.lang.String id,
java.lang.String type,
double height,
double width,
Pose pose)
|
Method Summary |
void |
draw(java.awt.Graphics g,
int Xcenter,
int Ycenter,
double headingOffset,
double scaleFactor)
Must provide a draw method for plotter to render artifact |
void |
drawHistory(java.awt.Graphics g,
int Xcenter,
int Ycenter,
double scaleFactor)
|
void |
drawLegend(java.awt.Graphics g,
int Xcenter,
int Ycenter,
double scaleFactor)
|
Coordinate |
getCoordinate()
|
ShapeArtifact |
getCopy()
|
Pose |
getPose()
|
static ShapeArtifact |
load(java.io.BufferedReader bufferedReader)
|
void |
save(java.io.PrintWriter printWriter)
|
void |
setPose(Pose pose)
|
void |
takeHistorySnapshot()
|
Methods inherited from class us.ihmc.plotting.Artifact |
getColor, getDrawHistory, getID, getLevel, getRecordHistory, getShowID, getType, isVisible, setColor, setDrawHistory, setLevel, setRecordHistory, setShowID, setType, setVisible, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ShapeArtifact
public ShapeArtifact(java.lang.String id,
java.lang.String type,
double height,
double width,
Pose pose)
setPose
public void setPose(Pose pose)
getCoordinate
public Coordinate getCoordinate()
getPose
public Pose getPose()
draw
public void draw(java.awt.Graphics g,
int Xcenter,
int Ycenter,
double headingOffset,
double scaleFactor)
- Must provide a draw method for plotter to render artifact
- Specified by:
draw
in interface Plottable
- Specified by:
draw
in class Artifact
drawLegend
public void drawLegend(java.awt.Graphics g,
int Xcenter,
int Ycenter,
double scaleFactor)
- Specified by:
drawLegend
in class Artifact
save
public void save(java.io.PrintWriter printWriter)
load
public static ShapeArtifact load(java.io.BufferedReader bufferedReader)
getCopy
public ShapeArtifact getCopy()
drawHistory
public void drawHistory(java.awt.Graphics g,
int Xcenter,
int Ycenter,
double scaleFactor)
- Specified by:
drawHistory
in class Artifact
takeHistorySnapshot
public void takeHistorySnapshot()
- Specified by:
takeHistorySnapshot
in class Artifact