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

#include <rccarview.h>

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

List of all members.

Public Member Functions

 RccarView (const Rccar &sys, vector< Vector4d > *xs=0, vector< Vector2d > *us=0)
virtual ~RccarView ()
void Render (const Vector4d *x, const Vector2d *u=0)
void Render (const vector< Vector4d > *xs, const vector< Vector2d > *us=0, bool rs=true, int is=-1, int ie=-1, int dis=1, int dit=1, bool dl=false)

Public Attributes

const Rccarsys
GLUquadricObj * qobj

Constructor & Destructor Documentation

RccarView::RccarView ( const Rccar sys,
vector< Vector4d > *  xs = 0,
vector< Vector2d > *  us = 0 
)

Create a particle view of trajectory traj

Parameters:
sysparticle
xstrajectory

References gcop::SystemView< Vector4d, Vector2d >::lineWidth, qobj, and gcop::SystemView< Vector4d, Vector2d >::rgba.

RccarView::~RccarView ( ) [virtual]

References qobj.


Member Function Documentation

void RccarView::Render ( const Vector4d *  x,
const Vector2d *  u = 0 
) [virtual]
void RccarView::Render ( const vector< Vector4d > *  xs,
const vector< Vector2d > *  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< Vector4d, Vector2d >.

References gcop::SystemView< Vector4d, Vector2d >::dis, gcop::SystemView< Vector4d, Vector2d >::dit, gcop::SystemView< Vector4d, Vector2d >::lineWidth, gcop::SystemView< Vector4d, Vector2d >::Render(), gcop::SystemView< Vector4d, Vector2d >::rgba, and gcop::SystemView< Vector4d, Vector2d >::SetColor().


Member Data Documentation

GLUquadricObj* gcop::RccarView::qobj

Referenced by RccarView(), Render(), and ~RccarView().

Referenced by Render().


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