SO3Engine
|
SO3NodeScol.cpp
Go to the documentation of this file.
393 OGRE_EXCEPT(Ogre::Exception::ERR_DUPLICATE_ITEM, "Can not add node named \""+ nodeName +"\", an element with the same name already exist!", "SNode::AddChildNode");
421 OGRE_EXCEPT(Ogre::Exception::ERR_ITEM_NOT_FOUND, "Can not remove Node named \""+ nodeName +"\", element not found!", "SNode::RemoveChildNode");
678 boneFather->GetParentSceneNode()->GetOgreSceneNodePointer()->setPosition(boneFather->GetParentSceneNode()->GetGlobalOrientation().Inverse() * (pos - boneFather->GetParentSceneNode()->GetGlobalPosition() / boneFather->GetParentSceneNode()->GetGlobalScale()));
697 O3SceneNode->setPosition((m_nodeParent->_getDerivedOrientation().Inverse() * (pos - m_nodeParent->_getDerivedPosition()) / gscale));
741 boneFather->GetParentSceneNode()->GetOgreSceneNodePointer()->setOrientation(boneFather->GetParentSceneNode()->GetGlobalOrientation().Inverse() * quat);
756 O3SceneNode->setOrientation((m_nodeParent->_getDerivedOrientation()).Inverse() * quat * Ogre::Quaternion(0.0f, 0.0f, 1.0f, 0.0f));
843void SNode::SetAutoTracking(const bool& autoTrack, SNode* targetNode, const Ogre::Vector3& localDirectionVector, const Ogre::Vector3& offset)
859 O3SceneNode->pitch(Ogre::Radian(radianAngle), static_cast <Ogre::Node::TransformSpace> (static_cast<int>(relativeTo)));
866 O3SceneNode->yaw(Ogre::Radian(radianAngle), static_cast <Ogre::Node::TransformSpace> (static_cast<int>(relativeTo)));
873 O3SceneNode->roll(Ogre::Radian(radianAngle), static_cast <Ogre::Node::TransformSpace> (static_cast<int>(relativeTo)));
878void SNode::Rotate(const Ogre::Vector3& axis, const float& radianAngle, const SNode::NodeTransformSpace& relativeTo)
880 O3SceneNode->rotate(axis, Ogre::Radian(radianAngle), static_cast <Ogre::Node::TransformSpace> (static_cast<int>(relativeTo)));
887 O3SceneNode->translate(d, static_cast <Ogre::Node::TransformSpace> (static_cast<int>(relativeTo)));
892void SNode::SetDirection(const Ogre::Vector3& vec, const SNode::NodeTransformSpace& relativeTo, const Ogre::Vector3& localDirectionVector)
894 O3SceneNode->setDirection(vec, static_cast <Ogre::Node::TransformSpace> (static_cast<int>(relativeTo)), localDirectionVector);
907void SNode::LookAt(const Ogre::Vector3& targetPoint, const SNode::NodeTransformSpace& relativeTo, const Ogre::Vector3& localDirectionVector)
909 O3SceneNode->lookAt(targetPoint, static_cast <Ogre::Node::TransformSpace> (static_cast<int>(relativeTo)), localDirectionVector);
1051SNodeAnimation* SNode::CreateNodeAnimation(const std::string& animationName, const float& animationLength)
1053 SNodeAnimation* animation = new SNodeAnimation(GetParentScene(), animationName, this, animationCounter++, animationLength);
1134 animationListByIndex.insert(SAnimIndexMap::value_type(existingAnimation->GetIndex(), existingAnimation));
1161 SAnimIndexMap::iterator iAnimationIndexSearched = animationListByIndex.find(findedAnimation->GetIndex());
1249SBody* SNode::CreateBoxBody(const Ogre::Vector3& size, const Ogre::Vector3& offset, const Ogre::Quaternion& quat)
1279SBody* SNode::CreateConeBody(const Ogre::Real& radius, const Ogre::Real& height, const Ogre::Vector3& offset, const Ogre::Quaternion& quat)
1285 SShapeCone* shape = new SShapeCone(GetName() + "body_cone", this, radius, height, offset, quat);
1309SBody* SNode::CreateEllipsoidBody(const Ogre::Vector3& size, const Ogre::Vector3& offset, const Ogre::Quaternion& quat)
1315 SShapeEllipsoid* shape = new SShapeEllipsoid(GetName() + "body_ellipsoid", this, size, offset, quat);
1339SBody* SNode::CreateCapsuleBody(const Ogre::Real& radius, const Ogre::Real& height, const Ogre::Vector3& offset, const Ogre::Quaternion& quat)
1345 SShapeCapsule* shape = new SShapeCapsule(GetName() + "body_capsule", this, radius, height, offset, quat);
1369SBody* SNode::CreateCylinderBody(const Ogre::Real& radius, const Ogre::Real& height, const Ogre::Vector3& offset, const Ogre::Quaternion& quat)
1375 SShapeCylinder* shape = new SShapeCylinder(GetName() + "body_cylinder", this, radius, height, offset, quat);
1390 SShapeChamferCylinder* shape = new SShapeChamferCylinder(GetName() + "body_chamfercylinder", this, radius, height);
1399SBody* SNode::CreateChamferCylinderBody(const Ogre::Real& radius, const Ogre::Real& height, const Ogre::Vector3& offset, const Ogre::Quaternion& quat)
1405 SShapeChamferCylinder* shape = new SShapeChamferCylinder(GetName() + "body_chamfercylinder", this, radius, height, offset, quat);
1429SBody* SNode::CreatePyramidBody(const Ogre::Vector3& size, const Ogre::Vector3& offset, const Ogre::Quaternion& quat)
1435 SShapePyramid* shape = new SShapePyramid(GetName() + "body_pyramid", this, size, offset, quat);
Definition SO3Anim.h:42
Definition SO3Body.h:43
OgreNewt::Body * getOgreNewtBodyPointer()
Definition SO3Body.cpp:340
void BodyUpdateCallback(OgreNewt::Body *body)
Definition SO3Body.cpp:166
Definition SO3Bone.h:42
void AttachToBone(Ogre::MovableObject *ogreObject)
Definition SO3Bone.cpp:538
void DetachFromBone(Ogre::MovableObject *ogreObject)
Definition SO3Bone.cpp:550
virtual Ogre::Quaternion GetGlobalOrientation()
Definition SO3Bone.cpp:256
Definition SO3DataScol.h:41
Definition SO3Entity.h:43
virtual Ogre::Vector3 GetBoundingBoxSize(const bool &childs=false)
Definition SO3Entity.cpp:727
Definition SO3Light.h:44
Definition SO3NodeAnimation.h:41
Definition SO3NodeScol.h:43
virtual Ogre::Quaternion GetGlobalOrientation()
Definition SO3NodeScol.cpp:709
SBody * CreateCapsuleBody(const Ogre::Real &radius, const Ogre::Real &height)
Definition SO3NodeScol.cpp:1324
Ogre::Vector3 GetSonsWorldBoundingBox()
Definition SO3NodeScol.cpp:508
SBody * CreateCylinderBody(const Ogre::Real &radius, const Ogre::Real &height)
Definition SO3NodeScol.cpp:1354
void SetAutoTracking(const bool &autoTrack, SNode *targetNode=0, const Ogre::Vector3 &localDirectionVector=Ogre::Vector3::NEGATIVE_UNIT_Z, const Ogre::Vector3 &offset=Ogre::Vector3::ZERO)
Definition SO3NodeScol.cpp:843
virtual void SetInheritOrientation(const bool &state)
Definition SO3NodeScol.cpp:1213
void SetDirection(const Ogre::Vector3 &vec, const SNode::NodeTransformSpace &relativeTo=SNode::SO3_LOCAL_TS, const Ogre::Vector3 &localDirectionVector=Ogre::Vector3::NEGATIVE_UNIT_Z)
Definition SO3NodeScol.cpp:892
Ogre::Quaternion GetOrientationFromNode(SNode *nodeRef)
Definition SO3NodeScol.cpp:1186
virtual Ogre::Vector3 GetBoundingBoxCenter(const bool &childs=false)
Definition SO3NodeScol.cpp:456
virtual void Yaw(const float &radianAngle, const SNode::NodeTransformSpace &relativeTo=SNode::SO3_LOCAL_TS)
Definition SO3NodeScol.cpp:864
void RemoveAnimation(SAnim *existingAnimation)
Definition SO3NodeScol.cpp:1146
void LookAt(const Ogre::Vector3 &targetPoint, const SNode::NodeTransformSpace &relativeTo, const Ogre::Vector3 &localDirectionVector=Ogre::Vector3::NEGATIVE_UNIT_Z)
Definition SO3NodeScol.cpp:907
virtual void SetGlobalPosition(const Ogre::Vector3 &pos, bool updateBody=true)
Definition SO3NodeScol.cpp:660
virtual bool GetInheritOrientation()
Definition SO3NodeScol.cpp:1218
void SetSceneNodeIsMouseForeground(const bool &mForeground)
Definition SO3NodeScol.cpp:188
SBody * CreateConcaveHullBody(const Ogre::Real &tolerance)
Definition SO3NodeScol.cpp:1486
virtual void SetGlobalOrientation(const Ogre::Quaternion &quat, bool updateBody=true)
Definition SO3NodeScol.cpp:723
SNodeAnimation * CreateNodeAnimation(const std::string &animationName, const float &animationLength)
Definition SO3NodeScol.cpp:1051
virtual void SetRenderingDistance(const float &distance)
Definition SO3NodeScol.cpp:436
SBody * CreateConvexHullBody(const Ogre::Real &tolerance)
Definition SO3NodeScol.cpp:1444
SBody * CreateEllipsoidBody(const Ogre::Vector3 &size)
Definition SO3NodeScol.cpp:1294
virtual void Pitch(const float &radianAngle, const SNode::NodeTransformSpace &relativeTo=SNode::SO3_LOCAL_TS)
Definition SO3NodeScol.cpp:857
virtual void AddOrientation(const Ogre::Quaternion &quat)
Definition SO3NodeScol.cpp:617
void SetAsStaticGeometry(const bool &state)
Definition SO3NodeScol.cpp:1601
void SetSceneNodeIsMouseClick(const bool &mClickable)
Definition SO3NodeScol.cpp:198
virtual void SetCastShadows(const bool &castShadows)
Definition SO3NodeScol.cpp:425
virtual void SetGlobalScale(const Ogre::Vector3 &scale, bool updateBody=true)
Definition SO3NodeScol.cpp:795
void SetShowBoundingBox(const bool &showBounding)
Definition SO3NodeScol.cpp:838
Ogre::Vector3 GetScaleFromNode(SNode *nodeRef)
Definition SO3NodeScol.cpp:1200
virtual void SetOrientation(const Ogre::Quaternion &quat)
Definition SO3NodeScol.cpp:589
Ogre::Vector3 GetPositionFromNode(SNode *nodeRef)
Definition SO3NodeScol.cpp:1171
SBody * CreateTreeBody(const bool &optimize)
Definition SO3NodeScol.cpp:1528
virtual void SetPosition(const Ogre::Vector3 &pos)
Definition SO3NodeScol.cpp:548
virtual Ogre::Vector3 GetWorldBoundingBoxSize(const bool &childs=false)
Definition SO3NodeScol.cpp:462
SBody * CreateChamferCylinderBody(const Ogre::Real &radius, const Ogre::Real &height)
Definition SO3NodeScol.cpp:1384
virtual Ogre::Vector3 GetGlobalPosition()
Definition SO3NodeScol.cpp:649
virtual Ogre::Quaternion GetInitialOrientation()
Definition SO3NodeScol.cpp:1041
SBody * CreatePyramidBody(const Ogre::Vector3 &size)
Definition SO3NodeScol.cpp:1414
Ogre::StaticGeometry * GetStaticGeometry()
Definition SO3NodeScol.cpp:1669
Ogre::MovableObject * GetMovableObjectPointer()
Definition SO3NodeScol.cpp:168
virtual void Roll(const float &radianAngle, const SNode::NodeTransformSpace &relativeTo=SNode::SO3_LOCAL_TS)
Definition SO3NodeScol.cpp:871
SAnim * GetAnimation(const std::string &animationName)
Definition SO3NodeScol.cpp:1075
void SetSceneNodeMouseFlags(const int &flags)
Definition SO3NodeScol.cpp:208
Ogre::Vector3 GetDirection(bool derived=false, Ogre::Vector3 axis=Ogre::Vector3::NEGATIVE_UNIT_Z)
Definition SO3NodeScol.cpp:899
SBody * CreateBoxBody(const Ogre::Vector3 &boxsetting)
Definition SO3NodeScol.cpp:1234
virtual void ResetToInitialOrientation()
Definition SO3NodeScol.cpp:993
virtual void Rotate(const Ogre::Vector3 &axis, const float &radianAngle, const SNode::NodeTransformSpace &relativeTo=SNode::SO3_LOCAL_TS)
Definition SO3NodeScol.cpp:878
virtual Ogre::Vector3 GetBoundingBoxSize(const bool &childs=false)
Definition SO3NodeScol.cpp:447
void DeleteAnimation(SAnim *existingAnimation)
Definition SO3NodeScol.cpp:1058
void SetVisible(const bool &visible, const bool &cascade=true)
Definition SO3NodeScol.cpp:934
virtual Ogre::Vector3 GetInitialPosition()
Definition SO3NodeScol.cpp:1036
virtual Ogre::Matrix4 GetTransformationMatrix()
Definition SO3NodeScol.cpp:538
virtual Ogre::Vector3 GetWorldBoundingBoxCenter(const bool &childs=false)
Definition SO3NodeScol.cpp:471
SBody * CreateConeBody(const Ogre::Real &radius, const Ogre::Real &height)
Definition SO3NodeScol.cpp:1264
bool GetSceneNodeIsMouseForeground()
Definition SO3NodeScol.cpp:183
virtual void Translate(const Ogre::Vector3 &d, const SNode::NodeTransformSpace &relativeTo=SNode::SO3_PARENT_TS)
Definition SO3NodeScol.cpp:885
Ogre::SceneNode * GetOgreSceneNodePointer()
Definition SO3NodeScol.cpp:163
Definition SO3Scene.h:125
Ogre::SceneManager * GetOgreScenePointer()
Definition SO3Scene.cpp:449
void RemoveAnimation(SAnim *existingAnimation)
Definition SO3Scene.cpp:1392
Definition SO3ShapeBox.h:41
Definition SO3ShapeCapsule.h:41
Definition SO3ShapeCone.h:41
Definition SO3ShapeConvexHull.h:41
Definition SO3ShapeCylinder.h:41
Definition SO3ShapeEllipsoid.h:41
Definition SO3ShapePyramid.h:41
Definition SO3ShapeTree.h:41
Definition SO3Skeleton.h:42
Definition SO3DataScol.h:38
Generated by 1.9.8