ConstraintSolverSimple Class Reference

#include <rimPhysicsConstraintSolverSimple.h>

Inheritance diagram for ConstraintSolverSimple:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 ConstraintSolverSimple ()
 Create a new empty default simple constraint solver.
 ConstraintSolverSimple (int numberOfIterations)
 Create a new simple constraint solver which performs the specified number of iterations.
virtual ~ConstraintSolverSimple ()
 Destroy this constraint solver.
virtual void solveConstraints (Real dt)
 Solve all constraints in this constraint solver.
int getNumberOfIterations () const
 Get the number of constraint solver iterations performed.
void setNumberOfIterations (int newNumberOfIterations)
 Set the number of constraint solver iterations performed.
virtual void addConstraint (Constraint *aConstraint)
 Add a constraint to this constraint solver.
virtual bool removeConstraint (Constraint *aConstraint)
 Remove a constraint from this constraint solver.
virtual bool containsConstraint (Constraint *aConstraint) const
 Return whether or not this constraint solver contains a constraint.
virtual void clearConstraints ()
 Remove all constraints from this constraint solver.
virtual int getNumberOfConstraints () const
 Get the number of constraints in this constraint solver.

Private Attributes

ArrayList< Constraint * > constraints
 The constraints that this solver is solving.
int numberOfIterations
 The number of solver iterations that the solver will perform.

Static Private Attributes

static const int DEFAULT_NUMBER_OF_ITERATIONS = 3
 The default number of constraint solver iterations to perform.


Constructor & Destructor Documentation

RIM_PHYSICS_NAMESPACE_START ConstraintSolverSimple::ConstraintSolverSimple (  ) 

Create a new empty default simple constraint solver.

ConstraintSolverSimple::ConstraintSolverSimple ( int  numberOfIterations  ) 

Create a new simple constraint solver which performs the specified number of iterations.

ConstraintSolverSimple::~ConstraintSolverSimple (  )  [virtual]

Destroy this constraint solver.


Member Function Documentation

void ConstraintSolverSimple::solveConstraints ( Real  dt  )  [virtual]

Solve all constraints in this constraint solver.

Implements ConstraintSolver.

int ConstraintSolverSimple::getNumberOfIterations (  )  const [inline]

Get the number of constraint solver iterations performed.

void ConstraintSolverSimple::setNumberOfIterations ( int  newNumberOfIterations  )  [inline]

Set the number of constraint solver iterations performed.

void ConstraintSolverSimple::addConstraint ( Constraint aConstraint  )  [virtual]

Add a constraint to this constraint solver.

Implements ConstraintSolver.

bool ConstraintSolverSimple::removeConstraint ( Constraint aConstraint  )  [virtual]

Remove a constraint from this constraint solver.

Implements ConstraintSolver.

bool ConstraintSolverSimple::containsConstraint ( Constraint aConstraint  )  const [virtual]

Return whether or not this constraint solver contains a constraint.

Implements ConstraintSolver.

void ConstraintSolverSimple::clearConstraints (  )  [virtual]

Remove all constraints from this constraint solver.

Implements ConstraintSolver.

int ConstraintSolverSimple::getNumberOfConstraints (  )  const [virtual]

Get the number of constraints in this constraint solver.

Implements ConstraintSolver.


Member Data Documentation

ArrayList<Constraint*> ConstraintSolverSimple::constraints [private]

The constraints that this solver is solving.

int ConstraintSolverSimple::numberOfIterations [private]

The number of solver iterations that the solver will perform.

const int ConstraintSolverSimple::DEFAULT_NUMBER_OF_ITERATIONS = 3 [static, private]

The default number of constraint solver iterations to perform.


The documentation for this class was generated from the following files:
Generated on Tue Aug 26 00:03:20 2008 for Rim Physics by  doxygen 1.5.4