|
GCOP
1.0
|
#include <mbsview.h>


Public Member Functions | |
| MbsView (const Mbs &sys, vector< MbsState > *xs=0, vector< VectorXd > *us=0) | |
| virtual | ~MbsView () |
| virtual void | Render (const MbsState *x, const VectorXd *u=0) |
| void | Render (const vector< MbsState > *xs, const vector< VectorXd > *us=0, bool rs=true, int is=-1, int ie=-1, int dis=1, int dit=1, bool dl=false) |
Public Attributes | |
| const Mbs & | sys |
| GLUquadricObj * | qobj |
| double | dirSize |
| vector< Geom3dView * > | geomViews |
| MbsView::MbsView | ( | const Mbs & | sys, |
| vector< MbsState > * | xs = 0, |
||
| vector< VectorXd > * | us = 0 |
||
| ) |
Create a particle view of trajectory traj
| sys | particle |
| xs | trajectory |
References gcop::SystemView< MbsState, VectorXd >::lineWidth, qobj, and gcop::SystemView< MbsState, VectorXd >::rgba.
| MbsView::~MbsView | ( | ) | [virtual] |
References qobj.
| void MbsView::Render | ( | const MbsState * | x, |
| const VectorXd * | u = 0 |
||
| ) | [virtual] |
Implements gcop::SystemView< MbsState, VectorXd >.
References geomViews, gcop::MbsState::gs, gcop::Mbs::nb, sys, and gcop::Geom3dView::Transform().
| void MbsView::Render | ( | const vector< MbsState > * | xs, |
| const vector< VectorXd > * | 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< MbsState, VectorXd >.
References gcop::SystemView< MbsState, VectorXd >::dis, gcop::SystemView< MbsState, VectorXd >::dit, gcop::MbsState::gs, gcop::SystemView< MbsState, VectorXd >::lineWidth, gcop::SystemView< MbsState, VectorXd >::Render(), gcop::SystemView< MbsState, VectorXd >::rgba, and gcop::SystemView< MbsState, VectorXd >::SetColor().
| double gcop::MbsView::dirSize |
| vector<Geom3dView*> gcop::MbsView::geomViews |
| GLUquadricObj* gcop::MbsView::qobj |
Referenced by MbsView(), and ~MbsView().
| const Mbs& gcop::MbsView::sys |
Referenced by Render(), and gcop::ChainView::~ChainView().
1.7.6.1