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

#include <kinbody2dview.h>

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

List of all members.

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 Kinbody2dsys
GLUquadricObj * qobj

Constructor & Destructor Documentation

Create a particle view of trajectory traj

Parameters:
sysparticle

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

Parameters:
sysparticle
xstrajectory

References gcop::SystemView< Matrix3d, Vector3d >::lineWidth, qobj, and gcop::SystemView< Matrix3d, Vector3d >::rgba.

References qobj.


Member Function Documentation

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

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< 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().


Member Data Documentation

GLUquadricObj* gcop::Kinbody2dView::qobj

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

Referenced by Render().


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