4 #include <KrisLibrary/GLdraw/GLColor.h> 5 #include <KrisLibrary/GLdraw/GLDisplayList.h> 6 #include <KrisLibrary/GLdraw/GeometryAppearance.h> 7 #include <Klampt/Modeling/Robot.h> 28 void DrawCenterOfMass(Real radius = 0.05);
29 void DrawLinkCenterOfMass(
int i,Real radius = 0.05);
30 void DrawLinkFrames(Real size = 0.1);
31 void DrawLinkSkeleton();
32 void DrawTorques(
const Vector& t);
33 void SetColors(
const GLDraw::GLColor& c);
34 void SetColor(
int i,
const GLDraw::GLColor& c);
35 void SetTintColors(
const GLDraw::GLColor& c,Real fraction);
36 void SetTintColor(
int i,
const GLDraw::GLColor& c,Real fraction);
40 void SetTorqueColors(
const Vector& t);
42 GLDraw::GeometryAppearance&
Appearance(
int link);
54 void SetAppearance(
const vector<GLDraw::GeometryAppearance>& );
57 vector< vector<GLDraw::GeometryAppearance> > appearanceStack;
Draws the robot (potentially color-coded)
Definition: ViewRobot.h:14
void DrawLink_Local(int i, bool keepAppearance=true)
draws link i's geometry in its local frame
void Draw()
Draws the whole robot.
void PushAppearance()
pushes a new active appearance
void DrawOpaque(bool opaque)
Draws opaque / transparent parts of the robot.
void RestoreAppearance()
restores the base appearance
GLDraw::GeometryAppearance & Appearance(int link)
gets the currently active appearance
GLDraw::GeometryAppearance & LastAppearance(int link)
gets the appearance that you'd get if you would run PopAppearance()
The main robot type used in RobotSim.
Definition: Robot.h:83
void PopAppearance()
pops the last active appearance
void SetAppearance(const vector< GLDraw::GeometryAppearance > &)
easy way to save/restore appearance
vector< GLDraw::GeometryAppearance > GetAppearance()
easy way to save/restore appearance
void DrawLink_World(int i, bool keepAppearance=true)
draws link i's geometry in the world frame
Definition: ContactDistance.h:6