GCOP  1.0
Public Member Functions | Public Attributes
gcop::MbsView Class Reference

#include <mbsview.h>

Inheritance diagram for gcop::MbsView:
Inheritance graph
[legend]
Collaboration diagram for gcop::MbsView:
Collaboration graph
[legend]

List of all members.

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 Mbssys
GLUquadricObj * qobj
double dirSize
vector< Geom3dView * > geomViews

Constructor & Destructor Documentation

MbsView::MbsView ( const Mbs sys,
vector< MbsState > *  xs = 0,
vector< VectorXd > *  us = 0 
)

Create a particle view of trajectory traj

Parameters:
sysparticle
xstrajectory

References gcop::SystemView< MbsState, VectorXd >::lineWidth, qobj, and gcop::SystemView< MbsState, VectorXd >::rgba.

MbsView::~MbsView ( ) [virtual]

References qobj.


Member Function Documentation

void MbsView::Render ( const MbsState x,
const VectorXd *  u = 0 
) [virtual]
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

Parameters:
trajtrajectory
rsrender state
isstart index
ieend index
disindex step for rendering bodies along trajectory
ditindex step for rendering states(points) along trajectory
dlalways 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().


Member Data Documentation

GLUquadricObj* gcop::MbsView::qobj

Referenced by MbsView(), and ~MbsView().


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