30 #pragma region DefaultBallGraphicsItems
57 virtual void SetThisPointers();
59 virtual void ResetDraggerOnResize();
60 virtual void DeleteJointGraphics();
61 virtual void CreateJointGraphics();
62 virtual osg::Vec3d NormalizeAxis(CStdFPoint vLocalRot);
63 virtual void UpdatePositionAndRotationFromMatrix();
69 virtual osg::MatrixTransform *ParentOSG();
70 virtual osg::MatrixTransform *ChildOSG();
71 virtual osg::Matrix GetChildWorldMatrix();
72 virtual osg::Matrix GetChildPhysicsWorldMatrix();
73 virtual osg::Matrix GetChildComMatrix(
bool bInvert =
false);
75 virtual void SetAlpha();
77 virtual void SetupGraphics();
78 virtual void DeleteGraphics();
79 virtual void SetupPhysics();
81 virtual void StartGripDrag();
82 virtual void EndGripDrag();
84 virtual void Initialize();
85 virtual bool Physics_SetData(
const std::string &strDataType,
const std::string &strValue);
86 virtual void Physics_QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
89 virtual void Physics_ResetGraphicsAndPhysics();
90 virtual bool Physics_IsGeometryDefined() {
return true;};
91 virtual void Physics_Resize();
92 virtual void Physics_ResetSimulation();
93 virtual void Physics_SetParent(MovableItem *lpParent);
94 virtual void Physics_SetChild(MovableItem *lpChild);
95 virtual void Physics_UpdateMatrix();
96 virtual void Physics_PositionChanged();
97 virtual void Physics_RotationChanged();
98 virtual void BuildLocalMatrix();
99 virtual void BuildLocalMatrix(CStdFPoint localPos, CStdFPoint vLocalOffset, CStdFPoint localRot, std::string strName);
100 virtual void Physics_EnableCollision(RigidBody *lpBody) {};
101 virtual void Physics_DisableCollision(RigidBody *lpBody) {};
102 virtual void Physics_AddBodyForceAtLocalPos(
float fltPx,
float fltPy,
float fltPz,
float fltFx,
float fltFy,
float fltFz,
bool bScaleUnits) {};
103 virtual void Physics_AddBodyForceAtWorldPos(
float fltPx,
float fltPy,
float fltPz,
float fltFx,
float fltFy,
float fltFz,
bool bScaleUnits) {};
104 virtual void Physics_AddBodyTorque(
float fltTx,
float fltTy,
float fltTz,
bool bScaleUnits) {};
105 virtual CStdFPoint Physics_GetVelocityAtPoint(
float x,
float y,
float z) {CStdFPoint v;
return v;};
106 virtual bool Physics_CalculateLocalPosForWorldPos(
float fltWorldX,
float fltWorldY,
float fltWorldZ, CStdFPoint &vLocalPos);
osg::ref_ptr< osg::Geometry > m_osgDefaultBall
The osg default ball geometry.
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
osg::ref_ptr< osg::StateSet > m_osgDefaultBallSS
The osg default ball state set.
CStdFPoint m_vJointGraphicsRotOffset
Rotational offset needed to make the joint graphics match the physics.
osg::ref_ptr< osg::MatrixTransform > m_osgJointMT
The osg joint matrix transform.
A common class for all joint data specific to vortex.
osg::ref_ptr< osg::Material > m_osgDefaultBallMat
The osg default ball material.
osg::ref_ptr< osg::MatrixTransform > m_osgDefaultBallMT
The osg default ball matrix transform.