GCOP
1.0
|
#include <kinbody2dview.h>
Public Member Functions | |
Kinbody2dView (const Kinbody2d &sys) | |
Kinbody2dView (const Kinbody2d &sys, vector< Matrix3d > *xs, vector< Vector3d > *us=0) | |
virtual | ~Kinbody2dView () |
void | Render (const Matrix3d *x, const Vector3d *u=0) |
void | Render (const vector< Matrix3d > *xs, const vector< Vector3d > *us=0, bool rs=true, int is=-1, int ie=-1, int dis=1, int dit=1, bool dl=false) |
Public Attributes | |
const Kinbody2d & | sys |
GLUquadricObj * | qobj |
Kinbody2dView::Kinbody2dView | ( | const Kinbody2d & | sys | ) |
Create a particle view of trajectory traj
sys | particle |
References gcop::SystemView< Matrix3d, Vector3d >::lineWidth, qobj, and gcop::SystemView< Matrix3d, Vector3d >::rgba.
Kinbody2dView::Kinbody2dView | ( | const Kinbody2d & | sys, |
vector< Matrix3d > * | xs, | ||
vector< Vector3d > * | us = 0 |
||
) |
Create a particle view of trajectory traj
sys | particle |
xs | trajectory |
References gcop::SystemView< Matrix3d, Vector3d >::lineWidth, qobj, and gcop::SystemView< Matrix3d, Vector3d >::rgba.
Kinbody2dView::~Kinbody2dView | ( | ) | [virtual] |
References qobj.
void Kinbody2dView::Render | ( | const Matrix3d * | x, |
const Vector3d * | u = 0 |
||
) | [virtual] |
void Kinbody2dView::Render | ( | const vector< Matrix3d > * | xs, |
const vector< Vector3d > * | us = 0 , |
||
bool | rs = true , |
||
int | is = -1 , |
||
int | ie = -1 , |
||
int | dis = 1 , |
||
int | dit = 1 , |
||
bool | dl = false |
||
) | [virtual] |
Render a trajectory
traj | trajectory |
rs | render state |
is | start index |
ie | end index |
dis | index step for rendering bodies along trajectory |
dit | index step for rendering states(points) along trajectory |
dl | always draw last state |
Implements gcop::SystemView< Matrix3d, Vector3d >.
References gcop::SystemView< Matrix3d, Vector3d >::dis, gcop::SystemView< Matrix3d, Vector3d >::dit, gcop::SystemView< Matrix3d, Vector3d >::lineWidth, gcop::SystemView< Matrix3d, Vector3d >::Render(), gcop::SystemView< Matrix3d, Vector3d >::rgba, and gcop::SystemView< Matrix3d, Vector3d >::SetColor().
GLUquadricObj* gcop::Kinbody2dView::qobj |
Referenced by Kinbody2dView(), and ~Kinbody2dView().
Referenced by Render().