Robotsystem from Robot Group Leipzig: InvisibleCapsule Class Reference

- Main Page
- Modules
- Namespaces
- Classes
- Files
- Directories
- Examples

- Class List
- Alphabetical List
- Class Hierarchy
- Class Members

# InvisibleCapsule Class Reference

`#include <invisibleprimitive.h>`

Inheritance diagram for InvisibleCapsule:

[legend]
Collaboration diagram for InvisibleCapsule:

[legend]
List of all members.

## Detailed Description

Definition at line 78 of file invisibleprimitive.h.

## Public Member Functions
| InvisibleCapsule (float radius, float height)
virtual void | init (const OdeHandle &odeHandle, double mass, const OsgHandle &osgHandle, char mode=Body|Geom|Draw)
| registers primitive in ODE and OSG.
virtual void | update ()
| Updates the OSG nodes with ODE coordinates.
virtual OSGPrimitive * | getOSGPrimitive ()
| returns the assoziated osg primitive if there or 0
## Protected Attributes
OSGCapsule * | osgcapsule
float | radius
float | height

## Constructor & Destructor Documentation

InvisibleCapsule | ( | float | radius,
|  | float | height
| ) |

| Definition at line 90 of file invisibleprimitive.cpp.

## Member Function Documentation

virtual OSGPrimitive* getOSGPrimitive | ( |  | ) | `[inline, virtual]`

| returns the assoziated osg primitive if there or 0 Implements Primitive. Definition at line 86 of file invisibleprimitive.h.

void init | ( | const OdeHandle & | odeHandle,
|  | double | mass,
|  | const OsgHandle & | osgHandle,
|  | char | mode = `Body|Geom|Draw`
| ) | `[virtual]`

  | registers primitive in ODE and OSG. Parameters:
  | osgHandle | scruct with ODE variables inside (to specify space, world...)
  | mass | Mass of the object in ODE (if withBody = true)
  | osgHandle | scruct with OSG variables inside (scene node, color ...)
  | mode | is a conjuction of Modes.
Implements Primitive. Definition at line 94 of file invisibleprimitive.cpp.

virtual void update | ( |  | ) | `[inline, virtual]`

| Updates the OSG nodes with ODE coordinates. This function must be overloaded (usually calls setMatrix of OsgPrimitives) Implements Primitive. Definition at line 85 of file invisibleprimitive.h.

## Member Data Documentation

float height`[protected]`

| Definition at line 91 of file invisibleprimitive.h.

OSGCapsule* osgcapsule`[protected]`

| Definition at line 89 of file invisibleprimitive.h.

float radius`[protected]`

| Definition at line 90 of file invisibleprimitive.h.