Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes
edu.tum.cs.ias.knowrob.vis.items.ItemBase Class Reference
Inheritance diagram for edu.tum.cs.ias.knowrob.vis.items.ItemBase:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

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.


Member Function Documentation

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.

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.

the maximum frame (0-based index) that can be drawn

Returns:

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,
int  start,
int  end 
) [inline]
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.


Member Data Documentation

Reimplemented in edu.tum.cs.ias.knowrob.vis.items.BodyPoseSequence.

Definition at line 42 of file ItemBase.java.

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.

Definition at line 24 of file ItemBase.java.

Definition at line 19 of file ItemBase.java.

a transformation matrix to apply before drawing TODO should describe ordering (rows, columns).

Definition at line 36 of file ItemBase.java.

Definition at line 38 of file ItemBase.java.

Definition at line 39 of file ItemBase.java.

Definition at line 40 of file ItemBase.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