AnimatLab
2
Test
|
A common class for all rigid body data specific to vortex. More...
#include <OsgRigidBody.h>
Public Member Functions | |
virtual bool | AddOsgNodeToParent () |
virtual void | BuildLocalMatrix () |
Builds the local matrix. More... | |
virtual void | EndGripDrag () |
virtual osg::Matrix | GetComMatrix (bool bInvert=false) |
virtual void | Initialize () |
virtual osg::MatrixTransform * | ParentOSG () |
Gets the parent osg node. More... | |
virtual float * | Physics_GetDataPointer (const std::string &strDataType) |
virtual void | Physics_Resize () |
virtual void | Physics_ResizeSelectedReceptiveFieldVertex () |
virtual void | Physics_SelectedVertex (float fltXPos, float fltYPos, float fltZPos) |
virtual void | Physics_SetColor () |
virtual void | Physics_TextureChanged () |
virtual void | Physics_UpdateMatrix () |
virtual void | SetupPhysics () |
virtual void | StartGripDrag () |
Public Member Functions inherited from OsgAnimatSim::Environment::OsgBody | |
OsgBody () | |
Default constructor. More... | |
virtual | ~OsgBody () |
Destructor. More... | |
virtual void | Physics_ChildBodyAdded (RigidBody *lpChild) |
virtual void | Physics_ChildBodyRemoved (bool bHasStaticJoint) |
virtual void | Physics_ContactSensorAdded (ContactSensor *lpSensor) |
virtual void | Physics_ContactSensorRemoved () |
virtual void | Physics_DeleteStickyLock () |
virtual void | Physics_FluidDataChanged () |
virtual float | Physics_GetDensity () |
virtual float | Physics_GetMass () |
virtual bool | Physics_HasCollisionGeometry () |
virtual void | Physics_SetCenterOfMass (float fltTx, float fltTy, float fltTz) |
virtual void | Physics_SetDensity (float fltVal) |
virtual void | Physics_SetFreeze (bool bVal) |
virtual void | Physics_SetMass (float fltVal) |
virtual void | Physics_SetMaterialID (std::string strID) |
virtual void | Physics_SetVelocityDamping (float fltLinear, float fltAngular) |
virtual void | Physics_StepHydrodynamicSimulation () |
virtual void | Physics_UpdateNode () |
virtual void | Physics_WakeDynamics () |
Public Member Functions inherited from OsgAnimatSim::Environment::OsgMovableItem | |
virtual void | BuildLocalMatrix (CStdFPoint vLocalOffset) |
virtual void | BuildLocalMatrix (CStdFPoint localPos, CStdFPoint vLocalOffset, CStdFPoint localRot, std::string strName) |
virtual void | CreateItem () |
virtual void | DeleteGraphics () |
virtual void | DeletePhysics (bool bIncludeChildren)=0 |
virtual osg::Matrix | FinalMatrix () |
virtual void | FinalMatrix (osg::Matrix vFinal) |
virtual osg::MatrixTransform * | GetCameraMatrixTransform () |
Gets the matrix transform used by the camera for the mouse spring. More... | |
virtual osg::MatrixTransform * | GetMatrixTransform () |
virtual OsgSimulator * | GetOsgSimulator () |
virtual CStdFPoint | GetOSGWorldCoords () |
virtual osg::Matrix | GetOSGWorldMatrix (bool bUpdate=false) |
virtual osg::Matrix | GetParentComMatrix (bool bInvert=false) |
virtual osg::Matrix | GetParentPhysicsWorldMatrix () |
virtual osg::Matrix | GetParentWorldMatrix () |
virtual osg::Matrix | GetPhysicsWorldMatrix () |
virtual osg::Matrix | GetWorldMatrix () |
virtual osg::Matrix | LocalMatrix () |
virtual osg::Group * | NodeGroup () |
virtual void | Physics_AfterResetSimulation () |
virtual bool | Physics_CalculateLocalPosForWorldPos (float fltWorldX, float fltWorldY, float fltWorldZ, CStdFPoint &vLocalPos) |
virtual void | Physics_CollectData () |
virtual void | Physics_CollectExtraData () |
virtual BoundingBox | Physics_GetBoundingBox () |
virtual float | Physics_GetBoundingRadius () |
virtual std::string | Physics_GetLocalTransformMatrixString () |
virtual std::string | Physics_ID () |
virtual void | Physics_LoadLocalTransformMatrix (CStdXml &oXml) |
virtual void | Physics_OrientNewPart (float fltXPos, float fltYPos, float fltZPos, float fltXNorm, float fltYNorm, float fltZNorm) |
virtual void | Physics_PositionChanged () |
virtual void | Physics_ResetGraphicsAndPhysics () |
virtual void | Physics_ResetSimulation () |
virtual void | Physics_ResizeDragHandler (float fltRadius) |
virtual void | Physics_RotationChanged () |
virtual void | Physics_SaveLocalTransformMatrix (CStdXml &oXml) |
virtual void | Physics_Selected (bool bValue, bool bSelectMultiple) |
virtual void | Physics_SetChild (MovableItem *lpParent) |
virtual void | Physics_SetParent (MovableItem *lpParent) |
virtual void | Physics_UpdateAbsolutePosition () |
virtual osg::Group * | RootGroup () |
virtual void | SetAlpha () |
virtual void | SetColor (CStdColor &vAmbient, CStdColor &vDiffuse, CStdColor &vSpecular, float fltShininess) |
virtual void | SetCulling () |
virtual void | SetMaterialAlpha (osg::Material *osgMat, osg::StateSet *ss, float fltAlpha) |
virtual void | SetTexture (std::string strTexture) |
virtual void | SetupGraphics () |
virtual void | SetVisible (bool bVisible) |
virtual void | SetVisible (osg::Node *osgNode, bool bVisible) |
virtual OsgMovableItem * | VsParent () |
Public Member Functions inherited from AnimatSim::Environment::IPhysicsMovableItem | |
virtual void | Physics_SetChild (MovableItem *lpChild)=0 |
virtual void | Physics_SetParent (MovableItem *lpParent)=0 |
Public Member Functions inherited from AnimatSim::Environment::IPhysicsBody | |
virtual void | Physics_AddBodyForceAtLocalPos (float fltPx, float fltPy, float fltPz, float fltFx, float fltFy, float fltFz, bool bScaleUnits)=0 |
virtual void | Physics_AddBodyForceAtWorldPos (float fltPx, float fltPy, float fltPz, float fltFx, float fltFy, float fltFz, bool bScaleUnits)=0 |
virtual void | Physics_AddBodyTorque (float fltTx, float fltTy, float fltTz, bool bScaleUnits)=0 |
virtual void | Physics_ChildBodyAdded (RigidBody *lpChild)=0 |
virtual void | Physics_ContactSensorAdded (ContactSensor *lpSensor)=0 |
virtual void | Physics_DisableCollision (RigidBody *lpBody)=0 |
virtual void | Physics_EnableCollision (RigidBody *lpBody)=0 |
virtual CStdFPoint | Physics_GetVelocityAtPoint (float x, float y, float z)=0 |
virtual bool | Physics_IsDefined ()=0 |
virtual bool | Physics_IsGeometryDefined ()=0 |
Protected Member Functions | |
virtual void | CreateDynamicPart ()=0 |
virtual void | CreateGeometry (bool bOverrideStatic=false) |
virtual void | CreateSensorPart ()=0 |
virtual void | DeleteChildGraphics (bool bRoot) |
virtual void | GetBaseValues ()=0 |
virtual void | HideSelectedVertex () |
virtual void | ProcessContacts ()=0 |
virtual void | SetThisPointers () |
virtual void | SetupChildGraphics (bool bRoot) |
virtual void | ShowSelectedVertex () |
virtual void | UpdatePositionAndRotationFromMatrix () |
Protected Member Functions inherited from OsgAnimatSim::Environment::OsgMovableItem | |
virtual void | AttachedPartMovedOrRotated (std::string strID) |
virtual osg::Matrix | CalculateTransformRelativeToParent (osg::Matrix osgLocalMatrix) |
virtual void | CreateDragger (std::string strName) |
virtual void | CreateGraphicsGeometry () |
virtual void | CreatePhysicsGeometry () |
virtual void | CreateSelectedGraphics (std::string strName) |
virtual void | CreateSelectedVertex (std::string strName) |
virtual void | DeleteSelectedVertex () |
virtual void | GeometryRotationMatrix (osg::Matrix osgGeometryMT) |
virtual void | InitializeGraphicsGeometry () |
virtual void | LocalMatrix (osg::Matrix osgLocalMT) |
virtual void | ResetPhyiscsAndChildJoints () |
virtual void | ResizePhysicsGeometry () |
virtual void | UpdatePositionAndRotationFromMatrix (osg::Matrix osgMT) |
virtual void | UpdateWorldMatrix () |
Protected Attributes | |
RigidBody * | m_lpThisRB |
float | m_vAngularAcceleration [3] |
float | m_vAngularVelocity [3] |
float | m_vForce [3] |
float | m_vLinearAcceleration [3] |
float | m_vLinearVelocity [3] |
CStdFPoint | m_vPos |
float | m_vTorque [3] |
Protected Attributes inherited from OsgAnimatSim::Environment::OsgBody | |
DynamicsControlType | m_eControlType |
BodyPart * | m_lpThisBP |
Protected Attributes inherited from OsgAnimatSim::Environment::OsgMovableItem | |
bool | m_bCullBackfaces |
osg::StateAttribute::GLMode | m_eTextureMode |
OsgSimulator * | m_lpOsgSim |
OsgMovableItem * | m_lpParentVsMI |
AnimatBase * | m_lpThisAB |
MovableItem * | m_lpThisMI |
OsgMovableItem * | m_lpThisVsMI |
osg::ref_ptr< osg::CullFace > | m_osgCull |
osg::ref_ptr< osg::Node > | m_osgDebugNode |
osg::ref_ptr< OsgDragger > | m_osgDragger |
osg::Matrix | m_osgFinalMatrix |
osg::ref_ptr< osg::Geometry > | m_osgGeometry |
osg::ref_ptr< osg::MatrixTransform > | m_osgGeometryRotationMT |
osg::Matrix | m_osgLocalMatrix |
osg::ref_ptr< osg::Material > | m_osgMaterial |
osg::ref_ptr< osgManipulator::Selection > | m_osgMT |
osg::ref_ptr< osg::Node > | m_osgNode |
osg::ref_ptr< osg::Group > | m_osgNodeGroup |
osg::ref_ptr< osg::MatrixTransform > | m_osgParent |
osg::ref_ptr< osg::Group > | m_osgRoot |
osg::ref_ptr< osg::Group > | m_osgSelectedGroup |
osg::ref_ptr< osg::MatrixTransform > | m_osgSelVertexMT |
osg::ref_ptr< osg::Geode > | m_osgSelVertexNode |
osg::ref_ptr< osg::StateSet > | m_osgStateSet |
osg::ref_ptr< osg::Texture2D > | m_osgTexture |
osg::Matrix | m_osgWorldMatrix |
A common class for all rigid body data specific to vortex.
Definition at line 50 of file OsgRigidBody.h.
|
virtual |
Builds the local matrix.
If this is the root object then use the world coordinates of the structure instead of the local coordinates of the rigid body.
Reimplemented from OsgAnimatSim::Environment::OsgMovableItem.
Definition at line 321 of file OsgRigidBody.cpp.
|
virtual |
Gets the parent osg node.
If this is the root object then attach it directly to the OSG root node because we are building its local matrix using the structures absolute position. This is so the vortex stuff works correctly, and so that you can move the structure by moving the root body.
Implements OsgAnimatSim::Environment::OsgMovableItem.
Definition at line 345 of file OsgRigidBody.cpp.