Public Member Functions | |
void | draw (Canvas c) |
int | getMaxStep () |
void | setColor (int color) |
void | setColor (int color, int start, int end) |
void | setDimensions (float xdim, float ydim, float zdim) |
void | setOverrideColor (Color overrideColor) |
void | setPose (Matrix4d pose) |
void | setPose (double[] pose) |
void | setPose (float[] pose) |
void | setPose (float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23, float m30, float m31, float m32, float m33) |
void | setPosition (float x, float y, float z) |
Static Public Member Functions | |
static int | convertColor (int red, int green, int blue, int alpha) |
Public Attributes | |
int | defaultColor = SemanticMapVisApplet.convertColor(220, 220, 220, 255) |
String | name |
Protected Attributes | |
int | color |
DrawSettings | drawSettings = null |
float[] | trafoMatrix = null |
float | xdim |
float | ydim |
float | zdim |
Abstract base class for items (animated or not) that have a default color and may have a general transformation matrix applied to them
Definition at line 18 of file ItemBase.java.
static int edu.tum.cs.ias.knowrob.vis.items.ItemBase.convertColor | ( | int | red, |
int | green, | ||
int | blue, | ||
int | alpha | ||
) | [inline, static] |
Definition at line 51 of file ItemBase.java.
void edu.tum.cs.ias.knowrob.vis.items.ItemBase.draw | ( | Canvas | c | ) | [inline] |
Implements edu.tum.cs.ias.knowrob.vis.Drawable.
Reimplemented in edu.tum.cs.ias.knowrob.vis.items.Item.
Definition at line 44 of file ItemBase.java.
int edu.tum.cs.ias.knowrob.vis.items.ItemBase.getMaxStep | ( | ) | [inline] |
the maximum frame (0-based index) that can be drawn
Implements edu.tum.cs.ias.knowrob.vis.DrawableAnimated.
Reimplemented in edu.tum.cs.ias.knowrob.vis.items.BodyPoseSequence.
Definition at line 48 of file ItemBase.java.
void edu.tum.cs.ias.knowrob.vis.items.ItemBase.setColor | ( | int | color | ) | [inline] |
Reimplemented in edu.tum.cs.ias.knowrob.vis.items.BodyPoseSequence, and edu.tum.cs.ias.knowrob.vis.items.MultiEllipse.
Definition at line 55 of file ItemBase.java.
void edu.tum.cs.ias.knowrob.vis.items.ItemBase.setColor | ( | int | color, |
int | start, | ||
int | end | ||
) | [inline] |
Reimplemented in edu.tum.cs.ias.knowrob.vis.items.BodyPoseSequence, and edu.tum.cs.ias.knowrob.vis.items.MultiEllipse.
Definition at line 59 of file ItemBase.java.
void edu.tum.cs.ias.knowrob.vis.items.ItemBase.setDimensions | ( | float | xdim, |
float | ydim, | ||
float | zdim | ||
) | [inline] |
Definition at line 98 of file ItemBase.java.
void edu.tum.cs.ias.knowrob.vis.items.ItemBase.setOverrideColor | ( | Color | overrideColor | ) | [inline] |
Definition at line 26 of file ItemBase.java.
void edu.tum.cs.ias.knowrob.vis.items.ItemBase.setPose | ( | Matrix4d | pose | ) | [inline] |
Definition at line 63 of file ItemBase.java.
void edu.tum.cs.ias.knowrob.vis.items.ItemBase.setPose | ( | double[] | pose | ) | [inline] |
Definition at line 73 of file ItemBase.java.
void edu.tum.cs.ias.knowrob.vis.items.ItemBase.setPose | ( | float[] | pose | ) | [inline] |
Definition at line 77 of file ItemBase.java.
void edu.tum.cs.ias.knowrob.vis.items.ItemBase.setPose | ( | float | m00, |
float | m01, | ||
float | m02, | ||
float | m03, | ||
float | m10, | ||
float | m11, | ||
float | m12, | ||
float | m13, | ||
float | m20, | ||
float | m21, | ||
float | m22, | ||
float | m23, | ||
float | m30, | ||
float | m31, | ||
float | m32, | ||
float | m33 | ||
) | [inline] |
Definition at line 81 of file ItemBase.java.
void edu.tum.cs.ias.knowrob.vis.items.ItemBase.setPosition | ( | float | x, |
float | y, | ||
float | z | ||
) | [inline] |
Definition at line 92 of file ItemBase.java.
int edu.tum.cs.ias.knowrob.vis.items.ItemBase.color [protected] |
Reimplemented in edu.tum.cs.ias.knowrob.vis.items.BodyPoseSequence.
Definition at line 42 of file ItemBase.java.
int edu.tum.cs.ias.knowrob.vis.items.ItemBase.defaultColor = SemanticMapVisApplet.convertColor(220, 220, 220, 255) |
FIXME It is bad practice to use a static method of a class that is completely unrelated to this class. It destroys modularity. The static method convertColor should probably be moved here or some place else that is neutral.
Definition at line 23 of file ItemBase.java.
DrawSettings edu.tum.cs.ias.knowrob.vis.items.ItemBase.drawSettings = null [protected] |
Definition at line 24 of file ItemBase.java.
Definition at line 19 of file ItemBase.java.
float [] edu.tum.cs.ias.knowrob.vis.items.ItemBase.trafoMatrix = null [protected] |
a transformation matrix to apply before drawing TODO should describe ordering (rows, columns).
Definition at line 36 of file ItemBase.java.
float edu.tum.cs.ias.knowrob.vis.items.ItemBase.xdim [protected] |
Definition at line 38 of file ItemBase.java.
float edu.tum.cs.ias.knowrob.vis.items.ItemBase.ydim [protected] |
Definition at line 39 of file ItemBase.java.
float edu.tum.cs.ias.knowrob.vis.items.ItemBase.zdim [protected] |
Definition at line 40 of file ItemBase.java.