OgreMovableObject.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-2013 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 
29 #ifndef __MovableObject_H__
30 #define __MovableObject_H__
31 
32 // Precompiler options
33 #include "OgrePrerequisites.h"
34 #include "OgreRenderQueue.h"
35 #include "OgreAxisAlignedBox.h"
36 #include "OgreSphere.h"
37 #include "OgreShadowCaster.h"
38 #include "OgreFactoryObj.h"
39 #include "OgreAnimable.h"
40 #include "OgreAny.h"
41 #include "OgreUserObjectBindings.h"
42 #include "OgreHeaderPrefix.h"
43 
44 namespace Ogre {
45 
46  // Forward declaration
47  class MovableObjectFactory;
48 
61  {
62  public:
66  {
67  public:
68  Listener(void) {}
69  virtual ~Listener() {}
71  virtual void objectDestroyed(MovableObject*) {}
73  virtual void objectAttached(MovableObject*) {}
75  virtual void objectDetached(MovableObject*) {}
77  virtual void objectMoved(MovableObject*) {}
82  virtual bool objectRendering(const MovableObject*, const Camera*) { return true; }
105  virtual const LightList* objectQueryLights(const MovableObject*) { return 0; }
106  };
107 
108  protected:
119  bool mVisible;
125  // Minimum pixel size to still render
145  // Cached world bounding sphere
151 
156 
161 
164 
165  // Static members
170 
171 
172 
173  public:
175  MovableObject();
176 
178  MovableObject(const String& name);
181  virtual ~MovableObject();
182 
184  virtual void _notifyCreator(MovableObjectFactory* fact) { mCreator = fact; }
186  virtual MovableObjectFactory* _getCreator(void) const { return mCreator; }
188  virtual void _notifyManager(SceneManager* man) { mManager = man; }
190  virtual SceneManager* _getManager(void) const { return mManager; }
191 
193  virtual const String& getName(void) const { return mName; }
194 
196  virtual const String& getMovableType(void) const = 0;
197 
204  virtual Node* getParentNode(void) const;
205 
213  virtual SceneNode* getParentSceneNode(void) const;
214 
216  virtual bool isParentTagPoint() const { return mParentIsTagPoint; }
217 
220  virtual void _notifyAttached(Node* parent, bool isTagPoint = false);
221 
223  virtual bool isAttached(void) const;
224 
226  virtual void detachFromParent(void);
227 
231  virtual bool isInScene(void) const;
232 
235  virtual void _notifyMoved(void);
236 
242  virtual void _notifyCurrentCamera(Camera* cam);
243 
248  virtual const AxisAlignedBox& getBoundingBox(void) const = 0;
249 
253  virtual Real getBoundingRadius(void) const = 0;
254 
256  virtual const AxisAlignedBox& getWorldBoundingBox(bool derive = false) const;
258  virtual const Sphere& getWorldBoundingSphere(bool derive = false) const;
264  virtual void _updateRenderQueue(RenderQueue* queue) = 0;
265 
280  virtual void setVisible(bool visible);
281 
286  virtual bool getVisible(void) const;
287 
292  virtual bool isVisible(void) const;
293 
299  virtual void setRenderingDistance(Real dist) {
300  mUpperDistance = dist;
301  mSquaredUpperDistance = mUpperDistance * mUpperDistance;
302  }
303 
305  virtual Real getRenderingDistance(void) const { return mUpperDistance; }
306 
312  virtual void setRenderingMinPixelSize(Real pixelSize) {
313  mMinPixelSize = pixelSize;
314  }
315 
318  virtual Real getRenderingMinPixelSize() const {
319  return mMinPixelSize;
320  }
321 
329  OGRE_DEPRECATED virtual void setUserAny(const Any& anything) { getUserObjectBindings().setUserAny(anything); }
330 
334  OGRE_DEPRECATED virtual const Any& getUserAny(void) const { return getUserObjectBindings().getUserAny(); }
335 
340  UserObjectBindings& getUserObjectBindings() { return mUserObjectBindings; }
341 
346  const UserObjectBindings& getUserObjectBindings() const { return mUserObjectBindings; }
347 
360  virtual void setRenderQueueGroup(uint8 queueID);
361 
377  virtual void setRenderQueueGroupAndPriority(uint8 queueID, ushort priority);
378 
380  virtual uint8 getRenderQueueGroup(void) const;
381 
383  virtual const Matrix4& _getParentNodeFullTransform(void) const;
384 
392  virtual void setQueryFlags(uint32 flags) { mQueryFlags = flags; }
393 
396  virtual void addQueryFlags(uint32 flags) { mQueryFlags |= flags; }
397 
400  virtual void removeQueryFlags(uint32 flags) { mQueryFlags &= ~flags; }
401 
403  virtual uint32 getQueryFlags(void) const { return mQueryFlags; }
404 
407  static void setDefaultQueryFlags(uint32 flags) { msDefaultQueryFlags = flags; }
408 
411  static uint32 getDefaultQueryFlags() { return msDefaultQueryFlags; }
412 
413 
420  virtual void setVisibilityFlags(uint32 flags) { mVisibilityFlags = flags; }
421 
424  virtual void addVisibilityFlags(uint32 flags) { mVisibilityFlags |= flags; }
425 
428  virtual void removeVisibilityFlags(uint32 flags) { mVisibilityFlags &= ~flags; }
429 
431  virtual uint32 getVisibilityFlags(void) const { return mVisibilityFlags; }
432 
435  static void setDefaultVisibilityFlags(uint32 flags) { msDefaultVisibilityFlags = flags; }
436 
439  static uint32 getDefaultVisibilityFlags() { return msDefaultVisibilityFlags; }
440 
446  virtual void setListener(Listener* listener) { mListener = listener; }
447 
450  virtual Listener* getListener(void) const { return mListener; }
451 
470  virtual const LightList& queryLights(void) const;
471 
476  virtual uint32 getLightMask()const { return mLightMask; }
483  virtual void setLightMask(uint32 lightMask);
484 
491  virtual LightList* _getLightList() { return &mLightList; }
492 
494  EdgeData* getEdgeList(void) { return NULL; }
496  bool hasEdgeList(void) { return false; }
498  ShadowRenderableListIterator getShadowVolumeRenderableIterator(
499  ShadowTechnique shadowTechnique, const Light* light,
500  HardwareIndexBufferSharedPtr* indexBuffer, size_t* indexBufferUsedSize,
501  bool extrudeVertices, Real extrusionDist, unsigned long flags = 0);
502 
504  const AxisAlignedBox& getLightCapBounds(void) const;
506  const AxisAlignedBox& getDarkCapBounds(const Light& light, Real dirLightExtrusionDist) const;
519  void setCastShadows(bool enabled) { mCastShadows = enabled; }
521  bool getCastShadows(void) const { return mCastShadows; }
525  bool getReceivesShadows();
526 
528  Real getPointExtrusionDistance(const Light* l) const;
539  virtual uint32 getTypeFlags(void) const;
540 
552  virtual void visitRenderables(Renderable::Visitor* visitor,
553  bool debugRenderables = false) = 0;
554 
563  virtual void setDebugDisplayEnabled(bool enabled) { mDebugDisplay = enabled; }
565  virtual bool isDebugDisplayEnabled(void) const { return mDebugDisplay; }
566 
567 
568 
569 
570 
571  };
572 
579  {
580  protected:
583 
585  virtual MovableObject* createInstanceImpl(
586  const String& name, const NameValuePairList* params = 0) = 0;
587  public:
588  MovableObjectFactory() : mTypeFlag(0xFFFFFFFF) {}
591  virtual const String& getType(void) const = 0;
592 
600  virtual MovableObject* createInstance(
601  const String& name, SceneManager* manager,
602  const NameValuePairList* params = 0);
604  virtual void destroyInstance(MovableObject* obj) = 0;
605 
619  virtual bool requestTypeFlags(void) const { return false; }
628  void _notifyTypeFlags(uint32 flag) { mTypeFlag = flag; }
629 
635  uint32 getTypeFlags(void) const { return mTypeFlag; }
636 
637  };
641 }
642 
643 #include "OgreHeaderSuffix.h"
644 
645 #endif
OgreHeaderSuffix.h
Ogre::HashedVector< Light * >
OgreRenderQueue.h
Ogre::MovableObject::getUserObjectBindings
UserObjectBindings & getUserObjectBindings()
Return an instance of user objects binding associated with this class.
Definition: OgreMovableObject.h:340
Ogre::MovableObject::Listener::objectDetached
virtual void objectDetached(MovableObject *)
MovableObject has been detached from a node.
Definition: OgreMovableObject.h:75
Ogre::MovableObject::mWorldBoundingSphere
Sphere mWorldBoundingSphere
Definition: OgreMovableObject.h:146
Ogre::MovableObject::setDebugDisplayEnabled
virtual void setDebugDisplayEnabled(bool enabled)
Sets whether or not the debug display of this object is enabled.
Definition: OgreMovableObject.h:563
Ogre::MovableObject::getUserAny
virtual const OGRE_DEPRECATED Any & getUserAny(void) const
Definition: OgreMovableObject.h:334
Ogre::MovableObjectFactory::~MovableObjectFactory
virtual ~MovableObjectFactory()
Definition: OgreMovableObject.h:589
Ogre::MovableObject::mCastShadows
bool mCastShadows
Does this object cast shadows?
Definition: OgreMovableObject.h:150
Ogre::AllocatedObject
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
Definition: OgreMemoryAllocatedObject.h:58
Ogre
Definition: OgreAndroidLogListener.h:34
Ogre::MovableObject::mVisibilityFlags
uint32 mVisibilityFlags
Flags determining whether this object is visible (compared to SceneManager mask)
Definition: OgreMovableObject.h:142
Ogre::MovableObject::setUserAny
virtual OGRE_DEPRECATED void setUserAny(const Any &anything)
Definition: OgreMovableObject.h:329
Ogre::MovableObject::removeVisibilityFlags
virtual void removeVisibilityFlags(uint32 flags)
As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on t...
Definition: OgreMovableObject.h:428
OgreAnimable.h
Ogre::MovableObject::setListener
virtual void setListener(Listener *listener)
Sets a listener for this object.
Definition: OgreMovableObject.h:446
Ogre::MovableObject::mBeyondFarDistance
bool mBeyondFarDistance
Hidden because of distance?
Definition: OgreMovableObject.h:128
Ogre::ushort
unsigned short ushort
Definition: OgrePrerequisites.h:113
Ogre::Camera
A viewpoint from which the scene will be rendered.
Definition: OgreCamera.h:86
Ogre::MovableObject::getName
virtual const String & getName(void) const
Returns the name of this object.
Definition: OgreMovableObject.h:193
Ogre::MovableObject::mCreator
MovableObjectFactory * mCreator
Creator of this object (if created by a factory)
Definition: OgreMovableObject.h:112
Ogre::MovableObject::_getLightList
virtual LightList * _getLightList()
Returns a pointer to the current list of lights for this object.
Definition: OgreMovableObject.h:491
OgreAny.h
Ogre::MovableObject::mSquaredUpperDistance
Real mSquaredUpperDistance
Definition: OgreMovableObject.h:124
Ogre::MovableObject::getListener
virtual Listener * getListener(void) const
Gets the current listener for this object.
Definition: OgreMovableObject.h:450
Ogre::MovableObject::mWorldAABB
AxisAlignedBox mWorldAABB
Cached world AABB of this object.
Definition: OgreMovableObject.h:144
Ogre::MovableObject::hasEdgeList
bool hasEdgeList(void)
Define a default implementation of method from ShadowCaster which implements no shadows.
Definition: OgreMovableObject.h:496
Ogre::ShadowCaster
This class defines the interface that must be implemented by shadow casters.
Definition: OgreShadowCaster.h:117
Ogre::ShadowTechnique
ShadowTechnique
An enumeration of broad shadow techniques.
Definition: OgreCommon.h:190
Ogre::Light
Representation of a dynamic light source in the scene.
Definition: OgreLight.h:73
Ogre::MovableObject::getEdgeList
EdgeData * getEdgeList(void)
Define a default implementation of method from ShadowCaster which implements no shadows.
Definition: OgreMovableObject.h:494
Ogre::Any
Variant type that can hold Any other type.
Definition: OgreAny.h:56
Ogre::MovableObject::getUserObjectBindings
const UserObjectBindings & getUserObjectBindings() const
Return an instance of user objects binding associated with this class.
Definition: OgreMovableObject.h:346
Ogre::MovableObject::_getManager
virtual SceneManager * _getManager(void) const
Get the manager of this object, if any (internal use only)
Definition: OgreMovableObject.h:190
Ogre::MovableObject
Abstract class defining a movable object in a scene.
Definition: OgreMovableObject.h:60
Ogre::HardwareIndexBufferSharedPtr
Shared pointer implementation used to share index buffers.
Definition: OgreHardwareIndexBuffer.h:79
OgreFactoryObj.h
Ogre::MovableObject::setDefaultQueryFlags
static void setDefaultQueryFlags(uint32 flags)
Set the default query flags for all future MovableObject instances.
Definition: OgreMovableObject.h:407
Ogre::uint32
unsigned int uint32
Definition: OgrePlatform.h:359
Ogre::MovableObject::Listener::objectQueryLights
virtual const LightList * objectQueryLights(const MovableObject *)
Called when the movable object needs to query a light list.
Definition: OgreMovableObject.h:105
Ogre::MovableObject::mParentNode
Node * mParentNode
node to which this object is attached
Definition: OgreMovableObject.h:116
Ogre::String
_StringBase String
Definition: OgrePrerequisites.h:439
Ogre::MovableObject::getDefaultVisibilityFlags
static uint32 getDefaultVisibilityFlags()
Get the default visibility flags for all future MovableObject instances.
Definition: OgreMovableObject.h:439
Ogre::MovableObjectFactory
Interface definition for a factory class which produces a certain kind of MovableObject,...
Definition: OgreMovableObject.h:578
Ogre::MovableObject::setCastShadows
void setCastShadows(bool enabled)
Sets whether or not this object will cast shadows.
Definition: OgreMovableObject.h:519
Ogre::MovableObject::Listener::objectAttached
virtual void objectAttached(MovableObject *)
MovableObject has been attached to a node.
Definition: OgreMovableObject.h:73
Ogre::MovableObject::mQueryFlags
uint32 mQueryFlags
Flags determining whether this object is included / excluded from scene queries.
Definition: OgreMovableObject.h:140
Ogre::MovableObject::mWorldDarkCapBounds
AxisAlignedBox mWorldDarkCapBounds
World space AABB of this object's dark cap.
Definition: OgreMovableObject.h:148
Ogre::MovableObject::getCastShadows
bool getCastShadows(void) const
Returns whether shadow casting is enabled for this object.
Definition: OgreMovableObject.h:521
Ogre::MovableObject::mDebugDisplay
bool mDebugDisplay
Is debug display enabled?
Definition: OgreMovableObject.h:121
Ogre::UserObjectBindings
Class that provides convenient interface to establish a linkage between custom user application objec...
Definition: OgreUserObjectBindings.h:49
Ogre::NameValuePairList
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)
Definition: OgreCommon.h:550
Ogre::MovableObject::mLightList
LightList mLightList
List of lights for this object.
Definition: OgreMovableObject.h:158
Ogre::MovableObject::mRenderQueuePrioritySet
bool mRenderQueuePrioritySet
Flags whether the RenderQueue's default should be used.
Definition: OgreMovableObject.h:138
Ogre::SceneNode
Class representing a node in the scene graph.
Definition: OgreSceneNode.h:58
Ogre::MovableObject::getVisibilityFlags
virtual uint32 getVisibilityFlags(void) const
Returns the visibility flags relevant for this object.
Definition: OgreMovableObject.h:431
Ogre::MovableObject::mUserObjectBindings
UserObjectBindings mUserObjectBindings
User objects binding.
Definition: OgreMovableObject.h:130
Ogre::MovableObject::mRenderQueuePriority
ushort mRenderQueuePriority
The render queue group to use when rendering this object.
Definition: OgreMovableObject.h:136
Ogre::MovableObject::mVisible
bool mVisible
Is this object visible?
Definition: OgreMovableObject.h:119
OgreHeaderPrefix.h
Ogre::Matrix4
Class encapsulating a standard 4x4 homogeneous matrix.
Definition: OgreMatrix4.h:78
Ogre::MovableObject::_notifyCreator
virtual void _notifyCreator(MovableObjectFactory *fact)
Notify the object of it's creator (internal use only)
Definition: OgreMovableObject.h:184
Ogre::MovableObjectFactory::_notifyTypeFlags
void _notifyTypeFlags(uint32 flag)
Notify this factory of the type mask to apply.
Definition: OgreMovableObject.h:628
Ogre::MovableObject::Listener::objectMoved
virtual void objectMoved(MovableObject *)
MovableObject has been moved.
Definition: OgreMovableObject.h:77
Ogre::MovableObjectFactory::requestTypeFlags
virtual bool requestTypeFlags(void) const
Does this factory require the allocation of a 'type flag', used to selectively include / exclude this...
Definition: OgreMovableObject.h:619
Ogre::MovableObject::addQueryFlags
virtual void addQueryFlags(uint32 flags)
As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this ob...
Definition: OgreMovableObject.h:396
Ogre::MovableObjectFactory::mTypeFlag
uint32 mTypeFlag
Type flag, allocated if requested.
Definition: OgreMovableObject.h:582
Ogre::SceneManager
Manages the organisation and rendering of a 'scene' i.e.
Definition: OgreSceneManager.h:143
OgreSphere.h
OgrePrerequisites.h
Ogre::MovableObject::setRenderingDistance
virtual void setRenderingDistance(Real dist)
Sets the distance at which the object is no longer rendered.
Definition: OgreMovableObject.h:299
Ogre::MovableObject::mName
String mName
Name of this object.
Definition: OgreMovableObject.h:110
Ogre::MovableObject::isParentTagPoint
virtual bool isParentTagPoint() const
Gets whether the parent node is a TagPoint (or a SceneNode)
Definition: OgreMovableObject.h:216
Ogre::MovableObject::mRenderQueueID
uint8 mRenderQueueID
The render queue to use when rendering this object.
Definition: OgreMovableObject.h:132
Ogre::AnimableObject
Defines an interface to classes which have one or more AnimableValue instances to expose.
Definition: OgreAnimable.h:238
Ogre::MovableObject::getRenderingDistance
virtual Real getRenderingDistance(void) const
Gets the distance at which batches are no longer rendered.
Definition: OgreMovableObject.h:305
OgreShadowCaster.h
Ogre::AxisAlignedBox
A 3D box aligned with the x/y/z axes.
Definition: OgreAxisAlignedBox.h:54
_OgreExport
#define _OgreExport
Definition: OgrePlatform.h:257
Ogre::MovableObject::mParentIsTagPoint
bool mParentIsTagPoint
Definition: OgreMovableObject.h:117
Ogre::MovableObject::getRenderingMinPixelSize
virtual Real getRenderingMinPixelSize() const
Returns the minimum pixel size an object needs to be in both screen axes in order to be rendered.
Definition: OgreMovableObject.h:318
Ogre::MovableObject::removeQueryFlags
virtual void removeQueryFlags(uint32 flags)
As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this o...
Definition: OgreMovableObject.h:400
Ogre::MovableObject::Listener::Listener
Listener(void)
Definition: OgreMovableObject.h:68
Ogre::MovableObject::getDefaultQueryFlags
static uint32 getDefaultQueryFlags()
Get the default query flags for all future MovableObject instances.
Definition: OgreMovableObject.h:411
Ogre::MovableObject::Listener
Listener which gets called back on MovableObject events.
Definition: OgreMovableObject.h:65
Ogre::MovableObject::mLightListUpdated
ulong mLightListUpdated
The last frame that this light list was updated in.
Definition: OgreMovableObject.h:160
Ogre::MovableObject::mRenderingDisabled
bool mRenderingDisabled
Does rendering this object disabled by listener?
Definition: OgreMovableObject.h:153
Ogre::ulong
unsigned long ulong
Definition: OgrePrerequisites.h:115
Ogre::Sphere
A sphere primitive, mostly used for bounds checking.
Definition: OgreSphere.h:51
Ogre::MovableObject::msDefaultQueryFlags
static uint32 msDefaultQueryFlags
Default query flags.
Definition: OgreMovableObject.h:167
Ogre::MovableObject::getLightMask
virtual uint32 getLightMask() const
Get a bitwise mask which will filter the lights affecting this object.
Definition: OgreMovableObject.h:476
Ogre::uint8
unsigned char uint8
Definition: OgrePlatform.h:361
Ogre::MovableObject::setQueryFlags
virtual void setQueryFlags(uint32 flags)
Sets the query flags for this object.
Definition: OgreMovableObject.h:392
Ogre::MovableObject::Listener::objectRendering
virtual bool objectRendering(const MovableObject *, const Camera *)
Called when the movable object of the camera to be used for rendering.
Definition: OgreMovableObject.h:82
Ogre::MovableObject::mListener
Listener * mListener
MovableObject listener - only one allowed (no list) for size & performance reasons....
Definition: OgreMovableObject.h:155
OGRE_DEPRECATED
#define OGRE_DEPRECATED
Definition: OgrePlatform.h:189
Ogre::MovableObject::mMinPixelSize
Real mMinPixelSize
Definition: OgreMovableObject.h:126
Ogre::MovableObject::_getCreator
virtual MovableObjectFactory * _getCreator(void) const
Get the creator of this object, if any (internal use only)
Definition: OgreMovableObject.h:186
Ogre::Renderable::Visitor
Visitor object that can be used to iterate over a collection of Renderable instances abstractly.
Definition: OgreRenderable.h:377
Ogre::MovableObjectFactory::getTypeFlags
uint32 getTypeFlags(void) const
Gets the type flag for this factory.
Definition: OgreMovableObject.h:635
OgreUserObjectBindings.h
Ogre::MovableObject::setVisibilityFlags
virtual void setVisibilityFlags(uint32 flags)
Sets the visibility flags for this object.
Definition: OgreMovableObject.h:420
Ogre::MovableObjectFactory::MovableObjectFactory
MovableObjectFactory()
Definition: OgreMovableObject.h:588
Ogre::MovableObject::getQueryFlags
virtual uint32 getQueryFlags(void) const
Returns the query flags relevant for this object.
Definition: OgreMovableObject.h:403
Ogre::MovableObject::mRenderQueueIDSet
bool mRenderQueueIDSet
Flags whether the RenderQueue's default should be used.
Definition: OgreMovableObject.h:134
Ogre::Real
float Real
Software floating point type.
Definition: OgrePrerequisites.h:70
Ogre::EdgeData
This class contains the information required to describe the edge connectivity of a given set of vert...
Definition: OgreEdgeListBuilder.h:52
OgreAxisAlignedBox.h
Ogre::MovableObject::addVisibilityFlags
virtual void addVisibilityFlags(uint32 flags)
As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on th...
Definition: OgreMovableObject.h:424
Ogre::MovableObject::isDebugDisplayEnabled
virtual bool isDebugDisplayEnabled(void) const
Gets whether debug display of this object is enabled.
Definition: OgreMovableObject.h:565
Ogre::Node
Class representing a general-purpose node an articulated scene graph.
Definition: OgreNode.h:64
Ogre::MovableObject::Listener::objectDestroyed
virtual void objectDestroyed(MovableObject *)
MovableObject is being destroyed.
Definition: OgreMovableObject.h:71
Ogre::MovableObject::mManager
SceneManager * mManager
SceneManager holding this object (if applicable)
Definition: OgreMovableObject.h:114
Ogre::MovableObject::mLightMask
uint32 mLightMask
the light mask defined for this movable. This will be taken into consideration when deciding which li...
Definition: OgreMovableObject.h:163
Ogre::MovableObject::Listener::~Listener
virtual ~Listener()
Definition: OgreMovableObject.h:69
Ogre::MovableObject::mUpperDistance
Real mUpperDistance
Upper distance to still render.
Definition: OgreMovableObject.h:123
Ogre::MovableObject::msDefaultVisibilityFlags
static uint32 msDefaultVisibilityFlags
Default visibility flags.
Definition: OgreMovableObject.h:169
Ogre::MovableObject::setRenderingMinPixelSize
virtual void setRenderingMinPixelSize(Real pixelSize)
Sets the minimum pixel size an object needs to be in both screen axes in order to be rendered.
Definition: OgreMovableObject.h:312
Ogre::RenderQueue
Class to manage the scene object rendering queue.
Definition: OgreRenderQueue.h:92
Ogre::MovableObject::setDefaultVisibilityFlags
static void setDefaultVisibilityFlags(uint32 flags)
Set the default visibility flags for all future MovableObject instances.
Definition: OgreMovableObject.h:435
Ogre::MovableObject::_notifyManager
virtual void _notifyManager(SceneManager *man)
Notify the object of it's manager (internal use only)
Definition: OgreMovableObject.h:188

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