Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

physics::VisualDebugUtil Class Reference

Inheritance diagram for physics::VisualDebugUtil:

Inheritance graph
[legend]
Collaboration diagram for physics::VisualDebugUtil:

Collaboration graph
[legend]
List of all members.

Public Types

typedef Int Attributes
typedef Int VisualType
enum  AttributeFlags {
  ShowAxes = 1, ShowBounds = 2, ShowCollisions = 4, ShowCollisionModel = 8,
  ShowCollisionDetection = 16, ShowEdges = 32, ShowNormals = 64, VerticesOnly = 128
}

Public Member Functions

 VisualDebugUtil ()
virtual ~VisualDebugUtil ()
virtual String className () const
virtual bool visualTypeSupported (VisualType type) const
virtual osg::Node * createOSGVisual (Attributes visualAttributes=0) const
virtual osg::Node * createOSGVisual (Visual::Attributes visualAttributes=0) const
virtual bool isSameKindAs (const Object &) const

Static Public Member Functions

void addDebugObject (ref< const Shape > shape, const String &name, base::Transform worldConfiguration, const gfx::Color4 &color=gfx::Color4("lime green"))
void addDebugBoxObject (base::Dimension3 dimensions, const String &name, base::Transform worldConfiguration, const gfx::Color4 &color=gfx::Color4("lime green"))
void addDebugSphereObject (Real radius, const String &name, base::Transform worldConfiguration, const gfx::Color4 &color=gfx::Color4("lime green"))
void addDebugCylinderObject (Real height, Real radius, const String &name, base::Transform worldConfiguration, const gfx::Color4 &color=gfx::Color4("lime green"))
void addDebugCapsuleObject (Real height, Real radius, const String &name, base::Transform worldConfiguration, const gfx::Color4 &color=gfx::Color4("lime green"))
void setConfiguration (const String &name, const base::Transform &configuration)
void setColor (const String &name, const gfx::Color4 &color)
void setColorAll (gfx::Color4 &color)
void updateVisual ()

Static Public Attributes

const Int OSGVisual = 1

Protected Types

typedef std::map< String,
DebugObjectData
ObjectMap

Static Protected Attributes

ObjectMap debugObjects
Visual::Attributes attributes
ref_ptr< osg::Group > node

Member Typedef Documentation

typedef Int gfx::Visual::Attributes [inherited]
 

Definition at line 39 of file Visual.

Referenced by gfx::Visual::createOSGVisual().

typedef std::map< String, DebugObjectData > physics::VisualDebugUtil::ObjectMap [protected]
 

Definition at line 83 of file VisualDebugUtil.

typedef Int gfx::Visual::VisualType [inherited]
 

Definition at line 44 of file Visual.

Referenced by gfx::Visual::visualTypeSupported().


Member Enumeration Documentation

enum gfx::Visual::AttributeFlags [inherited]
 

Enumeration values:
ShowAxes 
ShowBounds 
ShowCollisions 
ShowCollisionModel 
ShowCollisionDetection 
ShowEdges 
ShowNormals 
VerticesOnly 

Definition at line 40 of file Visual.


Constructor & Destructor Documentation

physics::VisualDebugUtil::VisualDebugUtil  )  [inline]
 

Definition at line 49 of file VisualDebugUtil.

virtual physics::VisualDebugUtil::~VisualDebugUtil  )  [inline, virtual]
 

Definition at line 50 of file VisualDebugUtil.


Member Function Documentation

void physics::VisualDebugUtil::addDebugBoxObject base::Dimension3  dimensions,
const String &  name,
base::Transform  worldConfiguration,
const gfx::Color4 color = gfx::Color4("lime green")
[static]
 

void physics::VisualDebugUtil::addDebugCapsuleObject Real  height,
Real  radius,
const String &  name,
base::Transform  worldConfiguration,
const gfx::Color4 color = gfx::Color4("lime green")
[static]
 

void physics::VisualDebugUtil::addDebugCylinderObject Real  height,
Real  radius,
const String &  name,
base::Transform  worldConfiguration,
const gfx::Color4 color = gfx::Color4("lime green")
[static]
 

void physics::VisualDebugUtil::addDebugObject ref< const Shape shape,
const String &  name,
base::Transform  worldConfiguration,
const gfx::Color4 color = gfx::Color4("lime green")
[static]
 

void physics::VisualDebugUtil::addDebugSphereObject Real  radius,
const String &  name,
base::Transform  worldConfiguration,
const gfx::Color4 color = gfx::Color4("lime green")
[static]
 

virtual String physics::VisualDebugUtil::className  )  const [inline, virtual]
 

return the name of the object's class type. Must be defined by derived classes.

Implements base::Object.

Definition at line 52 of file VisualDebugUtil.

virtual osg::Node* gfx::Visual::createOSGVisual Visual::Attributes  visualAttributes = 0  )  const [inline, virtual, inherited]
 

Reimplemented in physics::GJKCollisionDetector, physics::OBBCollisionModel, physics::ODECollisionModel, physics::ODESolidSystem, physics::Solid, physics::SOLIDCollisionModel, and robot::sim::SimulatedBasicEnvironment.

Definition at line 49 of file Visual.

References gfx::Visual::Attributes, Logln, and NewObj.

virtual osg::Node* physics::VisualDebugUtil::createOSGVisual Attributes  visualAttributes = 0  )  const [virtual]
 

virtual bool base::Object::isSameKindAs const Object  )  const [inline, virtual, inherited]
 

Definition at line 47 of file Object.

void physics::VisualDebugUtil::setColor const String &  name,
const gfx::Color4 color
[static]
 

void physics::VisualDebugUtil::setColorAll gfx::Color4 color  )  [static]
 

void physics::VisualDebugUtil::setConfiguration const String &  name,
const base::Transform configuration
[static]
 

void physics::VisualDebugUtil::updateVisual  )  [static]
 

virtual bool physics::VisualDebugUtil::visualTypeSupported VisualType  type  )  const [inline, virtual]
 

Reimplemented from gfx::Visual.

Definition at line 66 of file VisualDebugUtil.


Member Data Documentation

Visual::Attributes physics::VisualDebugUtil::attributes [static, protected]
 

Definition at line 88 of file VisualDebugUtil.

ObjectMap physics::VisualDebugUtil::debugObjects [static, protected]
 

Definition at line 85 of file VisualDebugUtil.

ref_ptr<osg::Group> physics::VisualDebugUtil::node [static, protected]
 

Definition at line 89 of file VisualDebugUtil.

const Int gfx::Visual::OSGVisual = 1 [static, inherited]
 

Definition at line 45 of file Visual.


The documentation for this class was generated from the following file:
Generated on Thu Jul 29 16:41:45 2004 for OpenSim by doxygen 1.3.6