Classes | Public Member Functions | Protected Member Functions | Protected Attributes
edu.tum.cs.ias.knowrob.vis.items.GenericItem< T extends DrawingTransformation > Class Reference
Inheritance diagram for edu.tum.cs.ias.knowrob.vis.items.GenericItem< T extends DrawingTransformation >:
Inheritance graph
[legend]

List of all members.

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>()

Detailed Description

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

Author:
jain

Definition at line 22 of file GenericItem.java.


Constructor & Destructor Documentation

edu.tum.cs.ias.knowrob.vis.items.GenericItem< T extends DrawingTransformation >.GenericItem ( transform) [inline]

Definition at line 26 of file GenericItem.java.


Member Function Documentation

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]
Parameters:
cthe canvas to draw to
stepthe 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

Returns:

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

Parameters:
untilFrame0-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,
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,
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

Parameters:
from0-based index of the first frame to be changed
tolast 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).

Parameters:
from0-based index of the first frame to be changed
tolast frame to be changed; -1 for "until the end".

Definition at line 89 of file GenericItem.java.


Member Data Documentation

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.


The documentation for this class was generated from the following file:


mod_vis
Author(s): Moritz Tenorth, Jakob Engel
autogenerated on Mon Oct 6 2014 01:30:01