PhyFixed class. More...

Inheritance diagram for PhyFixed:

Public Member Functions

 PhyFixed (PhyObject *parent, PhyObject *child, bool cp=true)
 Constructor.
 
virtual wVector centre () const
 Return the centre of this joint in world coordinate.
 
virtual wVector getForceOnJoint () const
 Returns the force applied to this joint.
 
virtual void updateJointInfo ()
 Update the Joint informations (each PhyDOF will be updated)
 
- Public Member Functions inherited from PhyJoint
 PhyJoint (PhyObject *parent, PhyObject *child)
 Constructor.
 
virtual ~PhyJoint ()
 Destructor.
 
virtual PhyObjectchild ()
 Return the child object attached to this joint (see Newton Documentation)
 
virtual const PhyObjectchild () const
 Return the child object attached to this joint (see Newton Documentation) (const version)
 
virtual QVector< PhyDOF * > dofs ()
 Return descriptions of DOF.
 
void enable (bool b)
 enable/disable the joint
 
bool isEnabled () const
 Return true if the joint is enabled.
 
virtual unsigned int numDofs () const
 Return the number of DOF constrained by this joint.
 
virtual PhyObjectparent ()
 Return the parent object; (NULL means an object attached to static world; see Netwon Documentation)
 
virtual const PhyObjectparent () const
 Return the parent object; (NULL means an object attached to static world; see Netwon Documentation) (const version)
 
virtual void postUpdate ()
 postUpdate the PhyJoint this method is called at each step of the world just after the physic update
 
virtual void preUpdate ()
 preUpdate the PhyJoint this method is called at each step of the world just before the physic update
 
Worldworld ()
 Return the World.
 
const Worldworld () const
 Return the World (const version)
 
- Public Member Functions inherited from Ownable
 Ownable ()
 Constructor.
 
virtual ~Ownable ()
 Destructor.
 
const QList< Owned > & owned () const
 Returns the list of objects owned by this one.
 
Ownableowner () const
 Returns the owner of this object.
 
void setOwner (Ownable *owner, bool destroy=true)
 Sets the owner of this object.
 

Protected Member Functions

void createPrivateJoint ()
 Engine encapsulation.
 
virtual void updateJoint (real timestep)
 

Protected Attributes

wVector forceOnJoint
 The force applied to this joint.
 
wMatrix globalMatrixChild
 Global Matrix respect to Child.
 
wMatrix globalMatrixParent
 Global Matrix respect to Parent.
 
wMatrix localMatrixChild
 Local frame of the joint respect to the child matrix.
 
wMatrix localMatrixParent
 Local frame of the joint respect to the parent matrix.
 
- Protected Attributes inherited from PhyJoint
PhyObjectPrivate * childpriv
 
PhyObjectchildv
 child object
 
QVector< PhyDOF * > dofsv
 vector of DOF's joint
 
int dofv
 number of DOF
 
bool enabled
 true if is enabled, false otherwise
 
PhyObjectPrivate * parentpriv
 
PhyObjectparentv
 parent object
 
PhyJointPrivate * priv
 Engine encapsulation.
 
WorldPrivate * worldpriv
 
Worldworldv
 world
 

Additional Inherited Members

- Public Types inherited from Ownable
typedef QList< OwnedOwnedList
 The type for the list of owned objects.
 

Detailed Description

PhyFixed class.

\

Motivation
a 0-DOF Joint.
Description
This joint fix togheter two object
Warnings
Warnings

Definition at line 43 of file phyfixed.h.

Constructor & Destructor Documentation

Member Function Documentation

wVector centre ( ) const
virtual

Return the centre of this joint in world coordinate.

Implements PhyJoint.

Definition at line 59 of file phyfixed.cpp.

References PhyFixed::globalMatrixParent, PhyFixed::localMatrixParent, WObject::matrix(), and PhyJoint::parent().

void createPrivateJoint ( )
protected

Engine encapsulation.

Definition at line 72 of file phyfixed.cpp.

References PhyJoint::priv.

Referenced by PhyFixed::PhyFixed().

wVector getForceOnJoint ( ) const
virtual

Returns the force applied to this joint.

Implements PhyJoint.

Definition at line 67 of file phyfixed.cpp.

References PhyFixed::forceOnJoint.

void updateJointInfo ( )
virtual

Member Data Documentation

wVector forceOnJoint
protected

The force applied to this joint.

Definition at line 82 of file phyfixed.h.

Referenced by PhyFixed::getForceOnJoint(), and PhyFixed::PhyFixed().

wMatrix globalMatrixChild
protected

Global Matrix respect to Child.

This represent the local frame of joint in global coordinate starting from localMatrixParent representation.

Definition at line 78 of file phyfixed.h.

Referenced by PhyFixed::updateJointInfo().

wMatrix globalMatrixParent
mutableprotected

Global Matrix respect to Parent.

This represent the local frame of joint in global coordinate starting from localMatrixParent representation.

Note: The differences between globalMatrixParent and globalMatrixChild are due to numerical error on joint solver of physic engine used.

Definition at line 72 of file phyfixed.h.

Referenced by PhyFixed::centre(), PhyFixed::PhyFixed(), and PhyFixed::updateJointInfo().

wMatrix localMatrixChild
protected

Local frame of the joint respect to the child matrix.

Definition at line 62 of file phyfixed.h.

Referenced by PhyFixed::PhyFixed(), and PhyFixed::updateJointInfo().

wMatrix localMatrixParent
protected

Local frame of the joint respect to the parent matrix.

Definition at line 60 of file phyfixed.h.

Referenced by PhyFixed::centre(), PhyFixed::PhyFixed(), and PhyFixed::updateJointInfo().


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