GCOP
1.0
|
#include <systemview.h>
Public Member Functions | |
SystemView (const char *name=0, vector< Tx > *xs=0, vector< Tu > *us=0) | |
virtual | ~SystemView () |
virtual void | Render (const Tx *x, const Tu *u=0)=0 |
virtual void | Render (const vector< Tx > *xs, const vector< Tu > *us=0, bool rs=true, int is=-1, int ie=-1, int dis=1, int dit=1, bool dl=true)=0 |
virtual void | Render () |
virtual bool | RenderFrame (int i) |
void | SetColor (const double rgba[4]) |
Public Attributes | |
vector< Tx > * | xs |
trajectory to render | |
vector< Tu > * | us |
controls to render | |
int | dis |
when rendering a trajectory only render a body corresponding to every di-th state (default is 1) | |
int | dit |
when rendering a trajectory only put a point at every di-th state (default is 1) | |
double | rgba [4] |
color | |
double | lineWidth |
trajectory line width (default is 1) | |
bool | renderSystem |
whether to render the physical system (e.g. a body) | |
bool | renderForces |
whether to render forces |
Discrete Dynamical system view.
gcop::SystemView< Tx, Tu >::SystemView | ( | const char * | name = 0 , |
vector< Tx > * | xs = 0 , |
||
vector< Tu > * | us = 0 |
||
) |
Create a view for a single state s
name | name |
s | rigid body state |
References gcop::SystemView< Tx, Tu >::rgba.
gcop::SystemView< Tx, Tu >::~SystemView | ( | ) | [virtual] |
virtual void gcop::SystemView< Tx, Tu >::Render | ( | const Tx * | x, |
const Tu * | u = 0 |
||
) | [pure virtual] |
Implemented in gcop::Kinbody3dView< _nu >, gcop::Body3dView< c >, gcop::Body3dView< 4 >, gcop::UuvView< c >, gcop::Body2dView< c >, gcop::MbsView, gcop::Kinbody2dView, gcop::CarView, gcop::AirplaneView, gcop::GunicycleView, gcop::Particle2dView, gcop::Point3dView, gcop::RccarView, gcop::UnicycleView, and gcop::Normal2dView< _n >.
virtual void gcop::SystemView< Tx, Tu >::Render | ( | const vector< Tx > * | xs, |
const vector< Tu > * | us = 0 , |
||
bool | rs = true , |
||
int | is = -1 , |
||
int | ie = -1 , |
||
int | dis = 1 , |
||
int | dit = 1 , |
||
bool | dl = true |
||
) | [pure 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 |
Implemented in gcop::Kinbody3dView< _nu >, gcop::Body3dView< c >, gcop::Body3dView< 4 >, gcop::UuvView< c >, gcop::Body2dView< c >, gcop::MbsView, gcop::Kinbody2dView, gcop::CarView, gcop::AirplaneView, gcop::GunicycleView, gcop::Particle2dView, gcop::Point3dView, gcop::RccarView, gcop::UnicycleView, and gcop::Normal2dView< _n >.
void gcop::SystemView< Tx, Tu >::Render | ( | ) | [virtual] |
Render a view: all subclasses should provide this method
Reimplemented from gcop::View.
bool gcop::SystemView< Tx, Tu >::RenderFrame | ( | int | i | ) | [virtual] |
Render a view: all subclasses should provide this method
i | frame # |
Reimplemented from gcop::View.
void gcop::SystemView< Tx, Tu >::SetColor | ( | const double | rgba[4] | ) |
Set the rgb color of the trajectory
rgb | rgb vector |
int gcop::SystemView< Tx, Tu >::dis |
when rendering a trajectory only render a body corresponding to every di-th state (default is 1)
int gcop::SystemView< Tx, Tu >::dit |
when rendering a trajectory only put a point at every di-th state (default is 1)
double gcop::SystemView< Tx, Tu >::lineWidth |
trajectory line width (default is 1)
bool gcop::SystemView< Tx, Tu >::renderForces |
whether to render forces
bool gcop::SystemView< Tx, Tu >::renderSystem |
whether to render the physical system (e.g. a body)
double gcop::SystemView< Tx, Tu >::rgba[4] |
color
Referenced by gcop::SystemView< Tx, Tu >::SystemView().
vector<Tu>* gcop::SystemView< Tx, Tu >::us |
controls to render
vector<Tx>* gcop::SystemView< Tx, Tu >::xs |
trajectory to render