vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BaseJoint.h
Go to the documentation of this file.
1 #ifndef BaseJoint_h
2 #define BaseJoint_h
3 
4 
5 #include "BasePhysXObject.h"
6 #include "PhysXVreckoMessages.h"
7 
8 
9 using namespace vrecko;
10 
11 namespace PhysXPlugin
12 {
13  class BaseJoint : public BasePhysXObject
14  {
15  private:
16  std::string _strGetJointedActor;
17  public:
18  BaseJoint(const char * abName, NxJointDesc *descripter):BasePhysXObject(abName)
19  {
20  _pBaseDescripter = descripter;
21  }
22  virtual ~BaseJoint(){}
23 
24  virtual bool loadXMLParameters(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *parametersNode);
25  virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *getXMLParameters(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *);
26 
27 
28 
29  virtual void Create();
30 
31  protected:
32  // globalAnchor, globalAxis, that sets the members localAnchor, localAxis, localNormal
33  // by transforming the passed world space vector into actor1 resp.
34  // actor2's local space. The actor pointers must already be set!
35  // [PhysX help]
36  NxVec3 _globalAnchor, _globalAxis;
37  std::string _ID[2];
38 
39  NxJointDesc* _pBaseDescripter;
40 
41  DECLARE_REQUEST_OUTPUT(GetJointedActor, MessageString, MessageNxActorPtr);
42  };
43 }
44 
45 #endif