OGRE  1.9
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
OgreTagPoint.h
Go to the documentation of this file.
1 /*
2 -----------------------------------------------------------------------------
3 This source file is part of OGRE
4  (Object-oriented Graphics Rendering Engine)
5 For the latest info, see http://www.ogre3d.org/
6 
7 Copyright (c) 2000-2014 Torus Knot Software Ltd
8 
9 Permission is hereby granted, free of charge, to any person obtaining a copy
10 of this software and associated documentation files (the "Software"), to deal
11 in the Software without restriction, including without limitation the rights
12 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 copies of the Software, and to permit persons to whom the Software is
14 furnished to do so, subject to the following conditions:
15 
16 The above copyright notice and this permission notice shall be included in
17 all copies or substantial portions of the Software.
18 
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25 THE SOFTWARE.
26 -----------------------------------------------------------------------------
27 */
28 #ifndef __TagPoint_H_
29 #define __TagPoint_H_
30 
31 #include "OgrePrerequisites.h"
32 
33 #include "OgreBone.h"
34 #include "OgreMatrix4.h"
35 
36 namespace Ogre {
37 
38 
39 
60  class _OgreExport TagPoint : public Bone
61  {
62 
63  public:
64  TagPoint(unsigned short handle, Skeleton* creator);
65  virtual ~TagPoint();
66 
67  Entity *getParentEntity(void) const;
68  MovableObject* getChildObject(void) const;
69 
70  void setParentEntity(Entity *pEntity);
71  void setChildObject(MovableObject *pObject);
72 
77  void setInheritParentEntityOrientation(bool inherit);
78 
81  bool getInheritParentEntityOrientation(void) const;
82 
87  void setInheritParentEntityScale(bool inherit);
88 
91  bool getInheritParentEntityScale(void) const;
92 
94  const Matrix4& getParentEntityTransform(void) const;
95 
97  const Matrix4& _getFullLocalTransform(void) const;
98 
100  void needUpdate(bool forceParentUpdate = false);
101 
103  void updateFromParentImpl(void) const;
105  const LightList& getLights(void) const;
106 
107 
108 
109  private:
115  };
116 
120 } //namespace
121 
122 
123 #endif//__TagPoint_H_
Class encapsulating a standard 4x4 homogeneous matrix.
Definition: OgreMatrix4.h:78
#define _OgreExport
Definition: OgrePlatform.h:260
Abstract class defining a movable object in a scene.
Matrix4 mFullLocalTransform
Definition: OgreTagPoint.h:112
bool mInheritParentEntityOrientation
Definition: OgreTagPoint.h:113
Defines an instance of a discrete, movable object based on a Mesh.
Definition: OgreEntity.h:82
A tagged point on a skeleton, which can be used to attach entities to on specific other entities...
Definition: OgreTagPoint.h:60
Entity * mParentEntity
Definition: OgreTagPoint.h:110
MovableObject * mChildObject
Definition: OgreTagPoint.h:111
A bone in a skeleton.
Definition: OgreBone.h:51
A collection of Bone objects used to animate a skinned mesh.
Definition: OgreSkeleton.h:87
bool mInheritParentEntityScale
Definition: OgreTagPoint.h:114