Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
om::physics::context::PhysicsContextObject Class Reference

The base class for objects that use a physics context to do simulation. More...

#include <omPhysicsContextObject.h>

Inheritance diagram for om::physics::context::PhysicsContextObject:
om::physics::context::PhysicsSceneObject om::physics::objects::PhysicsScene om::physics::constraints::Constraint om::physics::forces::Force om::physics::objects::PhysicsObject om::physics::constraints::ContactConstraint om::physics::constraints::SphericalJoint om::physics::forces::ForceField om::physics::forces::Spring om::physics::forces::Thruster om::physics::objects::CharacterController om::physics::objects::RigidObject om::physics::forces::GravityField

Public Member Functions

virtual ~PhysicsContextObject ()
 Destory this physics context object. More...
 
PhysicsContextgetContext () const
 Return a pointer to the physics context this context object is using to do simulation. More...
 
virtual Bool setContext (PhysicsContext *newContext)
 Set a pointer to the physics context this context object should use to do simulation. More...
 
Bool clearContext ()
 Clear the previous context from this object. More...
 

Protected Member Functions

 PhysicsContextObject ()
 Create a new physics context object that doesn't have an associated physics context. More...
 
 PhysicsContextObject (PhysicsContext *newContext)
 Create a new physics context object that uses the specified context for simulation. More...
 

Protected Attributes

PhysicsContextcontext
 A pointer to the physics context this object is using. More...
 

Detailed Description

The base class for objects that use a physics context to do simulation.

Constructor & Destructor Documentation

virtual om::physics::context::PhysicsContextObject::~PhysicsContextObject ( )
virtual

Destory this physics context object.

om::physics::context::PhysicsContextObject::PhysicsContextObject ( )
inlineprotected

Create a new physics context object that doesn't have an associated physics context.

om::physics::context::PhysicsContextObject::PhysicsContextObject ( PhysicsContext newContext)
inlineprotected

Create a new physics context object that uses the specified context for simulation.

Member Function Documentation

PhysicsContext* om::physics::context::PhysicsContextObject::getContext ( ) const
inline

Return a pointer to the physics context this context object is using to do simulation.

virtual Bool om::physics::context::PhysicsContextObject::setContext ( PhysicsContext newContext)
virtual

Set a pointer to the physics context this context object should use to do simulation.

The context object subclass should override this method to perform any initialization and configuration for the new context.

Reimplemented in om::physics::objects::RigidObject, om::physics::objects::PhysicsScene, om::physics::forces::Spring, om::physics::constraints::SphericalJoint, om::physics::objects::CharacterController, om::physics::forces::Thruster, and om::physics::forces::ForceField.

Bool om::physics::context::PhysicsContextObject::clearContext ( )
inline

Clear the previous context from this object.

Member Data Documentation

PhysicsContext* om::physics::context::PhysicsContextObject::context
protected

A pointer to the physics context this object is using.


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