#include <MJointFactory.h>
Collaboration diagram for MJointFactory:

Public Member Functions | |
| virtual MJoint * | createJoint (const wxXmlNode &node, const MWorld &world) |
Static Public Member Functions | |
| static MJointFactory * | factory () |
| static void | factory (MJointFactory *factory) |
Static Protected Attributes | |
| static MJointFactory * | theFactory = NULL |
Definition at line 15 of file MJointFactory.h.
|
||||||||||||
|
The main function. Build a joint of the correct type based on the given <joint> node.
Definition at line 33 of file MJointFactory.cpp. References MObject::body(), XMLUtil::findChildWithName(), XMLUtil::findPropertyWithName(), MWorld::getObject(), traceId, verboseMsg, and warnMsg. Referenced by MWorld::handleJointNode(). Here is the call graph for this function: ![]() |
|
|
Set the "official" factory. Used by MWorld to build joints. See theFactory Definition at line 17 of file MJointFactory.cpp. References theFactory, and traceId. |
|
|
Get the "official" factory. Used by MWorld to build joints. See theFactory Definition at line 24 of file MJointFactory.cpp. References theFactory, and traceId. Referenced by MWorld::handleJointNode(). |
|
|
This pointer is used by MWorld to create joints. Assign this to an instance of a joint factory before loading a model from an xml file. If you derive a new type of MJointFactory, you can setup the "official" factory to point to your specialized factory Definition at line 36 of file MJointFactory.h. Referenced by factory(). |
1.4.5