Changeset 1602 for code/trunk/src/orxonox/objects/WorldEntity.h
- Timestamp:
- Jun 14, 2008, 7:20:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/WorldEntity.h
r1535 r1602 58 58 const WorldEntity* getAttachedWorldEntity(unsigned int index) const; 59 59 60 inline Ogre::SceneNode* getNode() 60 inline Ogre::SceneNode* getNode() const 61 61 { return this->node_; } 62 62 … … 75 75 { return this->node_->getPosition(); } 76 76 77 inline void translate(const Vector3 &d, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_PARENT)77 inline void translate(const Vector3& d, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_PARENT) 78 78 { this->node_->translate(d, relativeTo); } 79 79 inline void translate(Real x, Real y, Real z, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_PARENT) 80 80 { this->node_->translate(x, y, z, relativeTo); } 81 inline void translate(const Matrix3 &axes, const Vector3 &move, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_PARENT)81 inline void translate(const Matrix3& axes, const Vector3& move, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_PARENT) 82 82 { this->node_->translate(axes, move, relativeTo); } 83 inline void translate(const Matrix3 &axes, Real x, Real y, Real z, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_PARENT)83 inline void translate(const Matrix3& axes, Real x, Real y, Real z, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_PARENT) 84 84 { this->node_->translate(axes, x, y, z, relativeTo); } 85 85 86 inline void yaw(const Radian &angle, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL)86 inline void yaw(const Radian& angle, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL) 87 87 { this->node_->yaw(angle, relativeTo); } 88 inline void pitch(const Radian &angle, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL)88 inline void pitch(const Radian& angle, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL) 89 89 { this->node_->pitch(angle, relativeTo); } 90 inline void roll(const Radian &angle, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL)90 inline void roll(const Radian& angle, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL) 91 91 { this->node_->roll(angle, relativeTo); } 92 92 void setYawPitchRoll(const Degree& yaw, const Degree& pitch, const Degree& roll); 93 93 94 inline void setYaw(const Degree &angle)94 inline void setYaw(const Degree& angle) 95 95 { this->node_->yaw(angle, Ogre::Node::TS_LOCAL); } 96 inline void setPitch(const Degree &angle)96 inline void setPitch(const Degree& angle) 97 97 { this->node_->pitch(angle, Ogre::Node::TS_LOCAL); } 98 inline void setRoll(const Degree &angle)98 inline void setRoll(const Degree& angle) 99 99 { this->node_->roll(angle, Ogre::Node::TS_LOCAL); } 100 100 … … 103 103 inline void setOrientation(const Ogre::Quaternion& quat) 104 104 { this->node_->setOrientation(quat); } 105 inline void rotate(const Vector3 &axis, const Radian &angle, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL)105 inline void rotate(const Vector3& axis, const Radian& angle, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL) 106 106 { this->node_->rotate(axis, angle, relativeTo); } 107 107 inline void setDirectionLoader(Real x, Real y, Real z) 108 108 { this->setDirection(x, y, z); } 109 inline void setDirection(Real x, Real y, Real z, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z)109 inline void setDirection(Real x, Real y, Real z, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL, const Vector3& localDirectionVector=Vector3::NEGATIVE_UNIT_Z) 110 110 { this->node_->setDirection(x, y, z, relativeTo, localDirectionVector); } 111 inline void setDirection(const Vector3 &vec, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z)111 inline void setDirection(const Vector3& vec, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL, const Vector3& localDirectionVector=Vector3::NEGATIVE_UNIT_Z) 112 112 { this->node_->setDirection(vec, relativeTo, localDirectionVector); } 113 inline void lookAt(const Vector3 &targetPoint, Ogre::Node::TransformSpace relativeTo, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z)113 inline void lookAt(const Vector3& targetPoint, Ogre::Node::TransformSpace relativeTo, const Vector3& localDirectionVector=Vector3::NEGATIVE_UNIT_Z) 114 114 { this->node_->lookAt(targetPoint, relativeTo, localDirectionVector); } 115 115 116 inline void setScale(const Vector3 &scale)116 inline void setScale(const Vector3& scale) 117 117 { this->node_->setScale(scale); } 118 118 inline void setScale(Real x, Real y, Real z) … … 124 124 inline const Vector3& getScale(void) const 125 125 { return this->node_->getScale(); } 126 inline void scale(const Vector3 &scale)126 inline void scale(const Vector3& scale) 127 127 { this->node_->scale(scale); } 128 128 inline void scale(Real x, Real y, Real z) … … 131 131 { this->node_->scale(scale, scale, scale); } 132 132 133 inline void attachObject(Ogre::MovableObject *obj) 133 void attachObject(const WorldEntity& obj) const; 134 void attachObject(WorldEntity* obj) const; 135 inline void attachObject(Ogre::MovableObject* obj) const 134 136 { this->node_->attachObject(obj); } 135 inline void attachObject(Mesh &mesh)137 inline void attachObject(Mesh& mesh) const 136 138 { this->node_->attachObject(mesh.getEntity()); } 137 inline void detachObject(Ogre::MovableObject *obj)139 inline void detachObject(Ogre::MovableObject* obj) const 138 140 { this->node_->detachObject(obj); } 139 inline void detachAllObjects() 141 inline void detachAllObjects() const 140 142 { this->node_->detachAllObjects(); } 141 143 … … 179 181 inline void setStatic(bool bStatic) 180 182 { this->bStatic_ = bStatic; } 181 inline bool isStatic() 183 inline bool isStatic() const 182 184 { return this->bStatic_; } 183 185
Note: See TracChangeset
for help on using the changeset viewer.