GCOP  1.0
Public Types | Public Member Functions | Public Attributes
gcop::Body2dView< c > Class Template Reference

#include <body2dview.h>

Inheritance diagram for gcop::Body2dView< c >:
Inheritance graph
[legend]
Collaboration diagram for gcop::Body2dView< c >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef Matrix< double, c, 1 > Vectorcd

Public Member Functions

 Body2dView (const Body2d< c > &sys)
 Body2dView (const Body2d< c > &sys, vector< Body2dState > *xs=0, vector< Vectorcd > *us=0)
virtual ~Body2dView ()
void Render (const pair< Matrix3d, Vector3d > *x, const Vectorcd *u=0)
void Render (const vector< pair< Matrix3d, Vector3d > > *xs, const vector< Vectorcd > *us=0, bool rs=true, int is=-1, int ie=-1, int dis=1, int dit=1, bool dl=false)

Public Attributes

const Body2d< c > & sys
GLUquadricObj * qobj
double forceScale
 force arrow scaling coefficient

template<int c = 3>
class gcop::Body2dView< c >


Member Typedef Documentation

template<int c = 3>
typedef Matrix<double, c, 1> gcop::Body2dView< c >::Vectorcd

Constructor & Destructor Documentation

template<int c>
gcop::Body2dView< c >::Body2dView ( const Body2d< c > &  sys)
template<int c>
gcop::Body2dView< c >::Body2dView ( const Body2d< c > &  sys,
vector< Body2dState > *  xs = 0,
vector< Vectorcd > *  us = 0 
)
template<int c>
gcop::Body2dView< c >::~Body2dView ( ) [virtual]

Member Function Documentation

template<int c>
void gcop::Body2dView< c >::Render ( const pair< Matrix3d, Vector3d > *  x,
const Vectorcd u = 0 
) [virtual]
template<int c>
void gcop::Body2dView< c >::Render ( const vector< pair< Matrix3d, Vector3d > > *  xs,
const vector< Vectorcd > *  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< Body2dState, Matrix< double, c, 1 > >.


Member Data Documentation

template<int c = 3>
double gcop::Body2dView< c >::forceScale

force arrow scaling coefficient

Referenced by gcop::Body2dView< c >::Body2dView().

template<int c = 3>
GLUquadricObj* gcop::Body2dView< c >::qobj
template<int c = 3>
const Body2d<c>& gcop::Body2dView< c >::sys

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