#include <OgreSimpleRenderable.h>
Inheritance diagram for Ogre::SimpleRenderable:
Public Methods | |
SimpleRenderable () | |
void | setMaterial (const String &matName) |
virtual Material * | getMaterial (void) const |
Retrieves a pointer to the material this renderable object uses. | |
virtual void | setRenderOperation (const RenderOperation &rend) |
virtual void | getRenderOperation (RenderOperation &op) |
Gets the render operation required to send this object to the frame buffer. | |
void | setWorldTransform (const Matrix4 &xform) |
virtual void | getWorldTransforms (Matrix4 *xform) const |
Gets the world transform matrix / matrices for this renderable object. | |
const Quaternion & | getWorldOrientation (void) const |
@copydoc Renderable::getWorldOrientation | |
const Vector3 & | getWorldPosition (void) const |
@copydoc Renderable::getWorldPosition | |
virtual void | _notifyCurrentCamera (Camera *cam) |
Internal method to notify the object of the camera to be used for the next rendering operation. | |
void | setBoundingBox (const AxisAlignedBox &box) |
virtual const AxisAlignedBox & | getBoundingBox (void) const |
Retrieves the local axis-aligned bounding box for this object. | |
virtual void | _updateRenderQueue (RenderQueue *queue) |
Internal method by which the movable object must add Renderable subclass instances to the rendering queue. | |
virtual | ~SimpleRenderable () |
virtual const String & | getName (void) const |
Overridden from MovableObject. | |
virtual const String & | getMovableType (void) const |
Overridden from MovableObject. | |
const LightList & | getLights (void) const |
@copydoc Renderable::getLights | |
virtual Node * | getParentNode (void) const |
Returns the node to which this object is attached. | |
virtual void | _notifyAttached (Node *parent, bool isTagPoint=false) |
Internal method called to notify the object that it has been attached to a node. | |
virtual bool | isAttached (void) const |
Returns true if this object is attached to a SceneNode or TagPoint. | |
virtual Real | getBoundingRadius (void) const=0 |
Retrieves the radius of the origin-centered bounding sphere for this object. | |
virtual const AxisAlignedBox & | getWorldBoundingBox (bool derive=false) const |
Retrieves the axis-aligned bounding box for this object in world coordinates. | |
virtual const Sphere & | getWorldBoundingSphere (bool derive=false) const |
Retrieves the worldspace bounding sphere for this object. | |
virtual void | setVisible (bool visible) |
Tells this object whether to be visible or not, if it has a renderable component. | |
virtual bool | isVisible (void) const |
Returns whether or not this object is supposed to be visible or not. | |
virtual void | setUserObject (UserDefinedObject *obj) |
Call this to associate your own custom user object instance with this MovableObject. | |
virtual UserDefinedObject * | getUserObject (void) |
Retrieves a pointer to a custom application object associated with this movable by an earlier call to setUserObject. | |
virtual void | setRenderQueueGroup (RenderQueueGroupID queueID) |
Sets the render queue group this entity will be rendered through. | |
virtual RenderQueueGroupID | getRenderQueueGroup (void) const |
Gets the queue group for this entity, see setRenderQueueGroup for full details. | |
virtual Matrix4 | _getParentNodeFullTransform (void) const |
return the full transformation of the parent sceneNode or the attachingPoint node | |
virtual void | setQueryFlags (unsigned long flags) |
Sets the query flags for this object. | |
virtual void | addQueryFlags (unsigned long flags) |
As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object. | |
virtual void | removeQueryFlags (unsigned long flags) |
As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object. | |
virtual unsigned long | getQueryFlags (void) const |
Returns the query flags relevant for this object. | |
virtual Technique * | getTechnique (void) const |
Retrieves a pointer to the Material Technique this renderable object uses. | |
virtual unsigned short | getNumWorldTransforms (void) const |
Returns the number of world transform matrices this renderable requires. | |
virtual bool | useIdentityProjection (void) const |
Returns whether or not to use an 'identity' projection. | |
virtual bool | useIdentityView (void) const |
Returns whether or not to use an 'identity' projection. | |
virtual Real | getSquaredViewDepth (const Camera *cam) const=0 |
Returns the camera-relative squared depth of this renderable. | |
virtual SceneDetailLevel | getRenderDetail () const |
Returns the preferred rasterisation mode of this renderable. | |
virtual bool | getNormaliseNormals (void) const |
Returns whether or not this Renderable wishes the hardware to normalise normals. | |
Protected Attributes | |
RenderOperation | mRenderOp |
Matrix4 | m_matWorldTransform |
AxisAlignedBox | mBox |
String | m_strMatName |
Material * | m_pMaterial |
SceneManager * | m_pParentSceneManager |
The scene manager for the current frame. | |
Camera * | m_pCamera |
The camera for the current frame. | |
String | m_strName |
The name of the object. | |
Node * | mParentNode |
node to which this object is attached | |
bool | mParentIsTagPoint |
bool | mVisible |
Is this object visible? | |
UserDefinedObject * | mUserObject |
User defined object which is linked to this object. | |
RenderQueueGroupID | mRenderQueueID |
The render queue to use when rendering this object. | |
unsigned long | mQueryFlags |
Flags determining whether this object is included / excluded from scene queries. | |
AxisAlignedBox | mWorldAABB |
Cached world AABB of this object. | |
Sphere | mWorldBoundingSphere |
Static Protected Attributes | |
uint | ms_uGenNameCount = 0 |
Static member used to automatically generate names for SimpleRendaerable objects. |
|
Definition at line 36 of file OgreSimpleRenderable.cpp. References _TO_CHAR, m_matWorldTransform, m_pCamera, m_pMaterial, m_pParentSceneManager, m_strMatName, m_strName, Ogre::MovableObject::mParentNode, and ms_uGenNameCount. |
|
Definition at line 120 of file OgreSimpleRenderable.cpp. |
|
return the full transformation of the parent sceneNode or the attachingPoint node
Definition at line 92 of file OgreMovableObject.cpp. References Ogre::Node::_getFullTransform(), and Ogre::MovableObject::mParentNode. Referenced by Ogre::Entity::cacheBoneMatrices(), Ogre::TagPoint::getParentEntityTransform(), Ogre::MovableObject::getWorldBoundingBox(), Ogre::SubEntity::getWorldTransforms(), and Ogre::BillboardSet::getWorldTransforms(). |
|
Internal method called to notify the object that it has been attached to a node.
Definition at line 54 of file OgreMovableObject.cpp. References Ogre::MovableObject::mParentIsTagPoint, and Ogre::MovableObject::mParentNode. Referenced by Ogre::SceneNode::attachObject(), Ogre::Entity::attachObjectImpl(), Ogre::SceneNode::detachAllObjects(), Ogre::SceneNode::detachObject(), and Ogre::SceneNode::~SceneNode(). |
|
Internal method to notify the object of the camera to be used for the next rendering operation.
Implements Ogre::MovableObject. Definition at line 100 of file OgreSimpleRenderable.cpp. References m_pCamera. |
|
Internal method by which the movable object must add Renderable subclass instances to the rendering queue.
Implements Ogre::MovableObject. Definition at line 115 of file OgreSimpleRenderable.cpp. References Ogre::RenderQueue::addRenderable(). |
|
As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object.
Definition at line 168 of file OgreMovableObject.h. |
|
Retrieves the local axis-aligned bounding box for this object.
Implements Ogre::MovableObject. Definition at line 110 of file OgreSimpleRenderable.cpp. References mBox. |
|
Retrieves the radius of the origin-centered bounding sphere for this object.
Implemented in Ogre::BillboardSet, Ogre::Camera, Ogre::Entity, Ogre::Frustum, Ogre::Light, Ogre::WireBoundingBox, and Ogre::TerrainRenderable. Referenced by Ogre::BspIntersectionSceneQuery::execute(), Ogre::MovableObject::getWorldBoundingSphere(), and Ogre::BspLevel::tagNodesWithMovable(). |
|
@copydoc Renderable::getLights
Implements Ogre::Renderable. Definition at line 135 of file OgreSimpleRenderable.cpp. References Ogre::Node::getLights(), Ogre::LightList, and Ogre::MovableObject::mParentNode. |
|
Retrieves a pointer to the material this renderable object uses.
Implements Ogre::Renderable. Definition at line 65 of file OgreSimpleRenderable.cpp. References m_pMaterial. |
|
Overridden from MovableObject.
Implements Ogre::MovableObject. Definition at line 129 of file OgreSimpleRenderable.cpp. |
|
Overridden from MovableObject.
Implements Ogre::MovableObject. Definition at line 124 of file OgreSimpleRenderable.cpp. References m_strName. |
|
Returns whether or not this Renderable wishes the hardware to normalise normals.
Reimplemented in Ogre::SubEntity. Definition at line 132 of file OgreRenderable.h. Referenced by Ogre::SceneManager::renderSingleObject(). |
|
Returns the number of world transform matrices this renderable requires.
Reimplemented in Ogre::SubEntity, and Ogre::BorderRenderable. Definition at line 98 of file OgreRenderable.h. Referenced by Ogre::SceneManager::renderSingleObject(). |
|
Returns the node to which this object is attached.
Definition at line 60 of file OgreMovableObject.cpp. References Ogre::MovableObject::mParentNode. Referenced by Ogre::TagPoint::_updateFromParent(), Ogre::BspIntersectionSceneQuery::execute(), Ogre::TagPoint::getLights(), Ogre::SubEntity::getLights(), Ogre::SubEntity::getSquaredViewDepth(), Ogre::TagPoint::needUpdate(), and Ogre::BspSceneManager::processVisibleLeaf(). |
|
Returns the query flags relevant for this object.
Definition at line 175 of file OgreMovableObject.h. Referenced by Ogre::BspIntersectionSceneQuery::execute(). |
|
Returns the preferred rasterisation mode of this renderable.
Reimplemented in Ogre::SubEntity. Definition at line 129 of file OgreRenderable.h. References Ogre::SceneDetailLevel, and Ogre::SDL_SOLID. Referenced by Ogre::SceneManager::renderSingleObject(). |
|
Gets the render operation required to send this object to the frame buffer.
Implements Ogre::Renderable. Definition at line 70 of file OgreSimpleRenderable.cpp. References mRenderOp. |
|
Gets the queue group for this entity, see setRenderQueueGroup for full details.
Definition at line 87 of file OgreMovableObject.cpp. References Ogre::MovableObject::mRenderQueueID, and Ogre::RenderQueueGroupID. |
|
Returns the camera-relative squared depth of this renderable.
Implemented in Ogre::BillboardSet, Ogre::Frustum, Ogre::GuiElement, Ogre::Node, Ogre::SubEntity, Ogre::WireBoundingBox, Ogre::BorderRenderable, Ogre::OctreeCamera, and Ogre::TerrainRenderable. Referenced by Ogre::RenderPriorityGroup::TransparentQueueItemLess::operator()(). |
|
Retrieves a pointer to the Material Technique this renderable object uses.
Reimplemented in Ogre::SubEntity. Definition at line 63 of file OgreRenderable.h. References Ogre::Material::getBestTechnique(). Referenced by Ogre::RenderPriorityGroup::addRenderable(). |
|
Retrieves a pointer to a custom application object associated with this movable by an earlier call to setUserObject.
Definition at line 136 of file OgreMovableObject.h. |
|
Retrieves the axis-aligned bounding box for this object in world coordinates.
Definition at line 104 of file OgreMovableObject.cpp. References Ogre::MovableObject::_getParentNodeFullTransform(), Ogre::MovableObject::getBoundingBox(), Ogre::MovableObject::mWorldAABB, and Ogre::AxisAlignedBox::transform(). Referenced by Ogre::BspIntersectionSceneQuery::execute(), and Ogre::BspSceneManager::processVisibleLeaf(). |
|
Retrieves the worldspace bounding sphere for this object.
Definition at line 116 of file OgreMovableObject.cpp. References Ogre::Node::_getDerivedPosition(), Ogre::MovableObject::getBoundingRadius(), Ogre::MovableObject::mParentNode, Ogre::MovableObject::mWorldBoundingSphere, Ogre::Sphere::setCenter(), and Ogre::Sphere::setRadius(). |
|
@copydoc Renderable::getWorldOrientation
Implements Ogre::Renderable. Reimplemented in Ogre::WireBoundingBox. Definition at line 90 of file OgreSimpleRenderable.cpp. References Ogre::Node::_getDerivedOrientation(), and Ogre::MovableObject::mParentNode. |
|
@copydoc Renderable::getWorldPosition
Implements Ogre::Renderable. Reimplemented in Ogre::WireBoundingBox. Definition at line 95 of file OgreSimpleRenderable.cpp. References Ogre::Node::_getDerivedPosition(), and Ogre::MovableObject::mParentNode. |
|
Gets the world transform matrix / matrices for this renderable object.
Implements Ogre::Renderable. Reimplemented in Ogre::WireBoundingBox. Definition at line 85 of file OgreSimpleRenderable.cpp. References Ogre::Node::_getFullTransform(), m_matWorldTransform, and Ogre::MovableObject::mParentNode. |
|
Returns true if this object is attached to a SceneNode or TagPoint.
Definition at line 65 of file OgreMovableObject.cpp. References Ogre::MovableObject::mParentNode. Referenced by Ogre::Entity::attachObjectToBone(). |
|
Returns whether or not this object is supposed to be visible or not.
Definition at line 76 of file OgreMovableObject.cpp. References Ogre::MovableObject::mVisible. Referenced by Ogre::OctreeNode::_addToRenderQueue(), Ogre::SceneManager::_populateLightList(), and Ogre::BspSceneManager::processVisibleLeaf(). |
|
As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object.
Definition at line 172 of file OgreMovableObject.h. |
|
Definition at line 105 of file OgreSimpleRenderable.cpp. References mBox. Referenced by Ogre::WireBoundingBox::setupBoundingBox(). |
|
Definition at line 52 of file OgreSimpleRenderable.cpp. References Except, Ogre::Material::load(), m_pMaterial, and m_strMatName. Referenced by Ogre::WireBoundingBox::WireBoundingBox(). |
|
Sets the query flags for this object.
Definition at line 164 of file OgreMovableObject.h. |
|
Definition at line 75 of file OgreSimpleRenderable.cpp. References mRenderOp. |
|
Sets the render queue group this entity will be rendered through.
Definition at line 82 of file OgreMovableObject.cpp. References Ogre::MovableObject::mRenderQueueID, and Ogre::RenderQueueGroupID. |
|
Call this to associate your own custom user object instance with this MovableObject.
Definition at line 132 of file OgreMovableObject.h. |
|
Tells this object whether to be visible or not, if it has a renderable component.
Reimplemented in Ogre::Light. Definition at line 71 of file OgreMovableObject.cpp. References Ogre::MovableObject::mVisible. |
|
Definition at line 80 of file OgreSimpleRenderable.cpp. References m_matWorldTransform. |
|
Returns whether or not to use an 'identity' projection.
Reimplemented in Ogre::GuiElement, and Ogre::BorderRenderable. Definition at line 108 of file OgreRenderable.h. Referenced by Ogre::SceneManager::useRenderableViewProjMode(). |
|
Returns whether or not to use an 'identity' projection.
Reimplemented in Ogre::GuiElement, and Ogre::BorderRenderable. Definition at line 118 of file OgreRenderable.h. Referenced by Ogre::SceneManager::useRenderableViewProjMode(). |
|
Definition at line 42 of file OgreSimpleRenderable.h. Referenced by getWorldTransforms(), setWorldTransform(), and SimpleRenderable(). |
|
The camera for the current frame.
Definition at line 52 of file OgreSimpleRenderable.h. Referenced by _notifyCurrentCamera(), and SimpleRenderable(). |
|
Definition at line 46 of file OgreSimpleRenderable.h. Referenced by getMaterial(), setMaterial(), and SimpleRenderable(). |
|
The scene manager for the current frame.
Definition at line 49 of file OgreSimpleRenderable.h. Referenced by SimpleRenderable(). |
|
Definition at line 45 of file OgreSimpleRenderable.h. Referenced by setMaterial(), and SimpleRenderable(). |
|
The name of the object.
Definition at line 55 of file OgreSimpleRenderable.h. Referenced by getName(), and SimpleRenderable(). |
|
Definition at line 43 of file OgreSimpleRenderable.h. Referenced by getBoundingBox(), Ogre::WireBoundingBox::getSquaredViewDepth(), and setBoundingBox(). |
|
Definition at line 48 of file OgreMovableObject.h. Referenced by Ogre::MovableObject::_notifyAttached(), Ogre::MovableObject::MovableObject(), and Ogre::MovableObject::~MovableObject(). |
|
|
Flags determining whether this object is included / excluded from scene queries.
Definition at line 56 of file OgreMovableObject.h. Referenced by Ogre::MovableObject::MovableObject(). |
|
Definition at line 40 of file OgreSimpleRenderable.h. Referenced by getRenderOperation(), setRenderOperation(), Ogre::WireBoundingBox::setupBoundingBoxVertices(), Ogre::WireBoundingBox::WireBoundingBox(), and Ogre::WireBoundingBox::~WireBoundingBox(). |
|
The render queue to use when rendering this object.
Definition at line 54 of file OgreMovableObject.h. Referenced by Ogre::Entity::_updateRenderQueue(), Ogre::BillboardSet::_updateRenderQueue(), Ogre::MovableObject::getRenderQueueGroup(), Ogre::MovableObject::MovableObject(), and Ogre::MovableObject::setRenderQueueGroup(). |
|
Static member used to automatically generate names for SimpleRendaerable objects.
Definition at line 34 of file OgreSimpleRenderable.cpp. Referenced by SimpleRenderable(). |
|
User defined object which is linked to this object.
Definition at line 52 of file OgreMovableObject.h. Referenced by Ogre::MovableObject::MovableObject(). |
|
Is this object visible?
Definition at line 50 of file OgreMovableObject.h. Referenced by Ogre::Frustum::Frustum(), Ogre::MovableObject::isVisible(), Ogre::MovableObject::MovableObject(), and Ogre::MovableObject::setVisible(). |
|
Cached world AABB of this object.
Definition at line 58 of file OgreMovableObject.h. Referenced by Ogre::MovableObject::getWorldBoundingBox(), and Ogre::MovableObject::MovableObject(). |
|
Definition at line 60 of file OgreMovableObject.h. Referenced by Ogre::MovableObject::getWorldBoundingSphere(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Wed Jan 21 00:20:28 2004