File OgreObject.h¶
-
namespace
Ogre File: MovableText.h
Description: This creates a billboarding object that display a text. Note: This object must have a dedicated scene node since it will rotate it to face the camera (OGRE 2.1)
- Author
2003 by cTh see gavocanov@rambler.ru 2006 by barraq see nospam@barraquand.com 2012 to work with newer versions of OGRE by MindCalamity mindcalamity@gmail.com 2015 to work on OGRE 2.1 (but not on older versions anymore) by Jayray jeremy.richert1@gmail.com
-
namespace
Gsage -
class
OgreObject: public Serializable<OgreObject> - #include <OgreObject.h>
Abstract ogre object
Subclassed by Gsage::IMovableObjectWrapper, Gsage::ParticleSystemWrapper, Gsage::SceneNodeWrapper
Public Functions
-
OgreObject()¶
-
virtual
~OgreObject()¶
-
virtual bool
initialize(OgreObjectManager *objectManager, const DataProxy &dict, const std::string &ownerId, const std::string &type, Ogre::SceneManager *sceneManager, Ogre::SceneNode *parent)¶ Initialize element from the node with values
- Parameters
factory: OgreObjectManager to enable child class creationdict: DataProxy with valuestype: String type of the objectparent: Parent SceneNodesceneManager: SceneManager to useownerId: Id of entity that owns the element
-
virtual bool
initialize(OgreObjectManager *objectManager, const DataProxy &dict, const std::string &ownerId, const std::string &type, Ogre::SceneManager *sceneManager, const DataProxy &attachParams, OgreObject *parent)¶ Initialize element from the node with values
- Parameters
factory: OgreObjectManager to enable child class creationdict: DataProxy with valuestype: String type of the objectparent: Parent OgreObjectsceneManager: SceneManager to useattachParams: Passed down to the parent object when attachingownerId: Id of entity that owns the element
-
virtual void
destroy()¶ Destroy object
-
const std::string &
getType() const¶ Get object type
-
const std::string &
getObjectId() const¶ Get object id
-
void
attachObject(Ogre::MovableObject *object)¶ Attach object to the parent node
- Parameters
object: Object to attach
-
virtual bool
attach(Ogre::MovableObject *object, const DataProxy ¶ms)¶ Attach movable object to this object
- Parameters
object: Object to attach
-
std::string
generateName() const¶ Generate unique name for the object.
-
void
sync()¶ Sync all pending property updates
Protected Attributes
-
std::string
mObjectId¶
-
std::string
mOwnerId¶
-
std::string
mType¶
-
OgreObjectManager *
mObjectManager¶
-
OgreObject *
mParentObject¶
-
DataProxy
mAttachParams¶
-
-
class