OgreTagPoint.h
Go to the documentation of this file.
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2013 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-----------------------------------------------------------------------------
*/
#ifndef __TagPoint_H_
#define __TagPoint_H_
#include "OgrePrerequisites.h"
#include "OgreBone.h"
#include "OgreMatrix4.h"
namespace Ogre {
class _OgreExport TagPoint : public Bone
{
public:
TagPoint(unsigned short handle, Skeleton* creator);
virtual ~TagPoint();
Entity *getParentEntity(void) const;
MovableObject* getChildObject(void) const;
void setParentEntity(Entity *pEntity);
void setChildObject(MovableObject *pObject);
void setInheritParentEntityOrientation(bool inherit);
bool getInheritParentEntityOrientation(void) const;
void setInheritParentEntityScale(bool inherit);
bool getInheritParentEntityScale(void) const;
const Matrix4& getParentEntityTransform(void) const;
const Matrix4& _getFullLocalTransform(void) const;
void needUpdate(bool forceParentUpdate = false);
void updateFromParentImpl(void) const;
const LightList& getLights(void) const;
private:
Entity *mParentEntity;
MovableObject *mChildObject;
mutable Matrix4 mFullLocalTransform;
bool mInheritParentEntityOrientation;
bool mInheritParentEntityScale;
};
} //namespace
#endif//__TagPoint_H_
_OgreExport
#define _OgreExport
Definition: OgrePlatform.h:257
Ogre::MovableObject
Abstract class defining a movable object in a scene.
Definition: OgreMovableObject.h:60
OgreBone.h
Ogre::TagPoint::mParentEntity
Entity * mParentEntity
Definition: OgreTagPoint.h:110
Ogre::Skeleton
A collection of Bone objects used to animate a skinned mesh.
Definition: OgreSkeleton.h:87
Ogre::TagPoint::mInheritParentEntityScale
bool mInheritParentEntityScale
Definition: OgreTagPoint.h:114
Ogre::Matrix4
Class encapsulating a standard 4x4 homogeneous matrix.
Definition: OgreMatrix4.h:78
OgrePrerequisites.h
Ogre::Bone
A bone in a skeleton.
Definition: OgreBone.h:51
Ogre::HashedVector
A hashed vector.
Definition: OgreCommon.h:332
Ogre::TagPoint::mFullLocalTransform
Matrix4 mFullLocalTransform
Definition: OgreTagPoint.h:112
OgreMatrix4.h
Ogre::TagPoint::mInheritParentEntityOrientation
bool mInheritParentEntityOrientation
Definition: OgreTagPoint.h:113
Ogre::TagPoint::mChildObject
MovableObject * mChildObject
Definition: OgreTagPoint.h:111
Ogre::TagPoint
A tagged point on a skeleton, which can be used to attach entities to on specific other entities...
Definition: OgreTagPoint.h:60
Ogre
Definition: OgreAndroidLogListener.h:34
Ogre::Entity
Defines an instance of a discrete, movable object based on a Mesh.
Definition: OgreEntity.h:82

Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.