GCOP
1.0
|
#include <point3dview.h>
Public Member Functions | |
Point3dView (const Point3d &sys, vector< Point3dState > *xs=0, vector< Vector3d > *us=0) | |
virtual | ~Point3dView () |
void | Render (const Point3dState *x, const Vector3d *u=0) |
void | Render (const vector< Point3dState > *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 Point3d & | sys |
double | r |
radius |
Point3dView::Point3dView | ( | const Point3d & | sys, |
vector< Point3dState > * | xs = 0 , |
||
vector< Vector3d > * | us = 0 |
||
) |
Create a particle view of trajectory traj
sys | particle |
xs | trajectory |
References gcop::SystemView< Point3dState, Vector3d >::lineWidth, r, and gcop::SystemView< Point3dState, Vector3d >::rgba.
Point3dView::~Point3dView | ( | ) | [virtual] |
void Point3dView::Render | ( | const Point3dState * | x, |
const Vector3d * | u = 0 |
||
) | [virtual] |
Implements gcop::SystemView< Point3dState, Vector3d >.
References gcop::Point3dState::q, and r.
void Point3dView::Render | ( | const vector< Point3dState > * | 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
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 |
Implements gcop::SystemView< Point3dState, Vector3d >.
References gcop::SystemView< Point3dState, Vector3d >::dis, gcop::SystemView< Point3dState, Vector3d >::dit, gcop::SystemView< Point3dState, Vector3d >::lineWidth, gcop::Point3dState::q, gcop::SystemView< Point3dState, Vector3d >::Render(), gcop::SystemView< Point3dState, Vector3d >::rgba, and gcop::SystemView< Point3dState, Vector3d >::SetColor().
double gcop::Point3dView::r |
radius
Referenced by Point3dView(), and Render().
const Point3d& gcop::Point3dView::sys |