My Project: dynamics.mod/NewtonDynamics/source/physics/dgUpVectorConstraint.h Source File

My Project

dgUpVectorConstraint.h
Go to the documentation of this file.
1 /* Copyright (c) <2003-2011> <Julio Jerez, Newton Game Dynamics>
2 *
3 * This software is provided 'as-is', without any express or implied
4 * warranty. In no event will the authors be held liable for any damages
5 * arising from the use of this software.
6 *
7 * Permission is granted to anyone to use this software for any purpose,
8 * including commercial applications, and to alter it and redistribute it
9 * freely, subject to the following restrictions:
10 *
11 * 1. The origin of this software must not be misrepresented; you must not
12 * claim that you wrote the original software. If you use this software
13 * in a product, an acknowledgment in the product documentation would be
14 * appreciated but is not required.
15 *
16 * 2. Altered source versions must be plainly marked as such, and must not be
17 * misrepresented as being the original software.
18 *
19 * 3. This notice may not be removed or altered from any source distribution.
20 */
21
22 #if !defined(__DGUPVECTORCONSTRAINT_563GFT35684GT_H)
23 #define __DGUPVECTORCONSTRAINT_563GFT35684GT_H
24 #include "dgBilateralConstraint.h"
25
26 //template<class T> class dgPool;
27
28 class dgUpVectorConstraint;
29
30 typedef dgUnsigned32 (dgApi *dgUpVectorJointCallback) (const dgUpVectorConstraint& upVector);
31
32 class dgUpVectorConstraint: public dgBilateralConstraint
33 {
34 public:
35 void SetJointParameterCallback (dgUpVectorJointCallback callback);
36 void InitPinDir (const dgVector& pin);
37
38 dgVector GetPinDir () const;
39 void SetPinDir (const dgVector& pin);
40
41 virtual bool IsBilateral () const;
42
43 private:
44 dgUpVectorConstraint();
45 virtual ~dgUpVectorConstraint();
46 // virtual void Remove(dgWorld* world);
47
48 virtual dgUnsigned32 JacobianDerivative (dgContraintDescritor& params);
49 // static dgUpVectorConstraint* Create(dgWorld* world);
50
51 dgUpVectorJointCallback m_callBack;
52 // dgUnsigned32 m_reserve[3];
53
54 friend class dgWorld;
55 // friend class dgPool<dgUpVectorConstraint>;
56 };
57
58 /*
59 class dgUpVectorConstraintArray: public dgPoolContainer<dgUpVectorConstraint>
60 {
61 };
62 */
63
64 #endif // !defined(__DGUPVECTORCONSTRAINT_563GFT35684GT_H)
65
dgUpVectorConstraint::SetJointParameterCallback
void SetJointParameterCallback(dgUpVectorJointCallback callback)
Definition: dgUpVectorConstraint.cpp:107
dgApi
#define dgApi
Definition: dgTypes.h:263
dgUpVectorConstraint::GetPinDir
dgVector GetPinDir() const
Definition: dgUpVectorConstraint.cpp:101
dgUnsigned32
typedef dgUnsigned32(dgApi *dgUpVectorJointCallback)(const dgUpVectorConstraint &upVector)
dgVector
Definition: dgVector.h:639
dgContraintDescritor
Definition: dgConstraint.h:118
dgUpVectorConstraint::IsBilateral
virtual bool IsBilateral() const
Definition: dgUpVectorConstraint.cpp:81
dgBilateralConstraint
Definition: dgBilateralConstraint.h:29
dgUpVectorConstraint::SetPinDir
void SetPinDir(const dgVector &pin)
Definition: dgUpVectorConstraint.cpp:96
dgBilateralConstraint.h
dgUnsigned32
unsigned dgUnsigned32
Definition: dgTypes.h:219
dgUpVectorConstraint
Definition: dgUpVectorConstraint.h:32
dgWorld
Definition: dgWorld.h:129
dgUpVectorConstraint::InitPinDir
void InitPinDir(const dgVector &pin)
Definition: dgUpVectorConstraint.cpp:86