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

#include <body2dgraphview.h>

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

List of all members.

Public Member Functions

 Body2dGraphView (const Body2dGraph &pg)
virtual void Render ()
virtual bool RenderFrame (int i)

Public Attributes

const Body2dGraphpg
float rgba [4]
bool drawLandmarks

Detailed Description

Rigid body view. Supports rendering either a single state or a whole trajectory of states.


Constructor & Destructor Documentation

Create a view for a single state s

Parameters:
namename
srigid body state

References drawLandmarks, and rgba.


Member Function Documentation

void Body2dGraphView::Render ( ) [virtual]

Render a view: all subclasses should provide this method

Reimplemented from gcop::View.

References RenderFrame().

bool Body2dGraphView::RenderFrame ( int  i) [virtual]

Render a view: all subclasses should provide this method

Parameters:
iframe #
Returns:
return true if more frames should be rendered

Reimplemented from gcop::View.

References gcop::Viewer::DrawArrow(), drawLandmarks, gcop::Viewer::DrawText(), gcop::Body2dGraph::extforce, gcop::Body2dGraph::Js, gcop::Body2dGraph::p, pg, rgba, gcop::Body2dGraph::us, and gcop::Body2dGraph::xs.

Referenced by Render().


Member Data Documentation

Referenced by Body2dGraphView(), and RenderFrame().

Referenced by RenderFrame().

Referenced by Body2dGraphView(), and RenderFrame().


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