Classes | |
class | PartialTransformationReplacer< T extends DrawingTransformation > |
Public Member Functions | |
void | draw (Canvas c) |
void | draw (Canvas c, int step) |
GenericItem (T transform) | |
int | getMaxStep () |
boolean | isAnimated () |
void | setFrame (int frame, T transformation) |
void | setFrames (int from, int to, T transformation) |
void | setFrames (int from, int to, PartialTransformationReplacer< T > ptr) |
Protected Member Functions | |
abstract void | drawActualItem (Canvas c) |
void | makeAnimated (int untilFrame) |
Protected Attributes | |
Vector< T > | animation = new Vector<T>() |
a generic drawable item, which may be animated by changing the transformation that is applied to it over time. The transformation is assumed to be applicable prior to the rendering of the object itself, which may otherwise be drawn in the same fashion at all times
Definition at line 22 of file GenericItem.java.
edu.tum.cs.ias.knowrob.vis.items.GenericItem< T extends DrawingTransformation >.GenericItem | ( | T | transform | ) | [inline] |
Definition at line 26 of file GenericItem.java.
void edu.tum.cs.ias.knowrob.vis.items.GenericItem< T extends DrawingTransformation >.draw | ( | Canvas | c | ) | [inline] |
Implements edu.tum.cs.ias.knowrob.vis.Drawable.
Definition at line 34 of file GenericItem.java.
void edu.tum.cs.ias.knowrob.vis.items.GenericItem< T extends DrawingTransformation >.draw | ( | Canvas | c, |
int | step | ||
) | [inline] |
c | the canvas to draw to |
step | the animation step/frame to draw (0-based index) |
Implements edu.tum.cs.ias.knowrob.vis.DrawableAnimated.
Definition at line 38 of file GenericItem.java.
abstract void edu.tum.cs.ias.knowrob.vis.items.GenericItem< T extends DrawingTransformation >.drawActualItem | ( | Canvas | c | ) | [protected, pure virtual] |
int edu.tum.cs.ias.knowrob.vis.items.GenericItem< T extends DrawingTransformation >.getMaxStep | ( | ) | [inline] |
the maximum frame (0-based index) that can be drawn
Implements edu.tum.cs.ias.knowrob.vis.DrawableAnimated.
Definition at line 52 of file GenericItem.java.
boolean edu.tum.cs.ias.knowrob.vis.items.GenericItem< T extends DrawingTransformation >.isAnimated | ( | ) | [inline] |
Definition at line 30 of file GenericItem.java.
void edu.tum.cs.ias.knowrob.vis.items.GenericItem< T extends DrawingTransformation >.makeAnimated | ( | int | untilFrame | ) | [inline, protected] |
ensures that the animation for this item is defined up to the given frame by repeating the current last frame's transformation (by reference) as many times as necessary
untilFrame | 0-based index up to which the animation must be defined |
Definition at line 131 of file GenericItem.java.
void edu.tum.cs.ias.knowrob.vis.items.GenericItem< T extends DrawingTransformation >.setFrame | ( | int | frame, |
T | transformation | ||
) | [inline] |
Definition at line 58 of file GenericItem.java.
void edu.tum.cs.ias.knowrob.vis.items.GenericItem< T extends DrawingTransformation >.setFrames | ( | int | from, |
int | to, | ||
T | transformation | ||
) | [inline] |
sets the transformation for several frames. The frames being addressed need not exist already. If the first frame is beyond the current animation, the current last frame is repeated until firstFrame-1
from | 0-based index of the first frame to be changed |
to | last frame to be changed; -1 for "until the end". |
Definition at line 68 of file GenericItem.java.
void edu.tum.cs.ias.knowrob.vis.items.GenericItem< T extends DrawingTransformation >.setFrames | ( | int | from, |
int | to, | ||
PartialTransformationReplacer< T > | ptr | ||
) | [inline] |
sets the transformation for several frames by replacing the current transformation based on the replacer that is given. The interval specified need not exist already (if it doesn't the last frame is replicated by reference accordingly).
from | 0-based index of the first frame to be changed |
to | last frame to be changed; -1 for "until the end". |
Definition at line 89 of file GenericItem.java.
Vector<T> edu.tum.cs.ias.knowrob.vis.items.GenericItem< T extends DrawingTransformation >.animation = new Vector<T>() [protected] |
Definition at line 24 of file GenericItem.java.