#include <OgreEntity.h>
Inheritance diagram for Ogre::Entity:
Public Types | |
typedef std::set< Entity * > | EntitySet |
typedef std::map< String, MovableObject * > | ChildObjectList |
Contains the child objects (attached to bones) indexed by name. | |
typedef MapIterator< ChildObjectList > | ChildObjectListIterator |
enum | VertexDataBindChoice { BIND_ORIGINAL, BIND_SOFTWARE_SKELETAL, BIND_SOFTWARE_MORPH, BIND_HARDWARE_MORPH } |
Identify which vertex data we should be sending to the renderer. More... | |
typedef std::vector< ShadowRenderable * > | ShadowRenderableList |
typedef VectorIterator< ShadowRenderableList > | ShadowRenderableListIterator |
Public Member Functions | |
~Entity () | |
Default destructor. | |
const MeshPtr & | getMesh (void) const |
Gets the Mesh that this Entity is based on. | |
SubEntity * | getSubEntity (unsigned int index) const |
Gets a pointer to a SubEntity, ie a part of an Entity. | |
SubEntity * | getSubEntity (const String &name) const |
Gets a pointer to a SubEntity by name. | |
unsigned int | getNumSubEntities (void) const |
Retrieves the number of SubEntity objects making up this entity. | |
Entity * | clone (const String &newName) const |
Clones this entity and returns a pointer to the clone. | |
void | setMaterialName (const String &name) |
Sets the material to use for the whole of this entity. | |
void | _notifyCurrentCamera (Camera *cam) |
Overridden - see MovableObject. | |
void | setRenderQueueGroup (uint8 queueID) |
Overridden - see MovableObject. | |
const AxisAlignedBox & | getBoundingBox (void) const |
Overridden - see MovableObject. | |
AxisAlignedBox | getChildObjectsBoundingBox (void) const |
merge all the child object Bounds a return it | |
void | _updateRenderQueue (RenderQueue *queue) |
Overridden - see MovableObject. | |
const String & | getMovableType (void) const |
Overridden from MovableObject. | |
AnimationState * | getAnimationState (const String &name) const |
For entities based on animated meshes, gets the AnimationState object for a single animation. | |
AnimationStateSet * | getAllAnimationStates (void) const |
For entities based on animated meshes, gets the AnimationState objects for all animations. | |
void | setDisplaySkeleton (bool display) |
Tells the Entity whether or not it should display it's skeleton, if it has one. | |
bool | getDisplaySkeleton (void) const |
Returns whether or not the entity is currently displaying its skeleton. | |
Entity * | getManualLodLevel (size_t index) const |
Gets a pointer to the entity representing the numbered manual level of detail. | |
size_t | getNumManualLodLevels (void) const |
Returns the number of manual levels of detail that this entity supports. | |
void | setMeshLodBias (Real factor, ushort maxDetailIndex=0, ushort minDetailIndex=99) |
Sets a level-of-detail bias for the mesh detail of this entity. | |
void | setMaterialLodBias (Real factor, ushort maxDetailIndex=0, ushort minDetailIndex=99) |
Sets a level-of-detail bias for the material detail of this entity. | |
void | setPolygonModeOverrideable (bool PolygonModeOverrideable) |
Sets whether the polygon mode of this entire entity may be overridden by the camera detail settings. | |
TagPoint * | attachObjectToBone (const String &boneName, MovableObject *pMovable, const Quaternion &offsetOrientation=Quaternion::IDENTITY, const Vector3 &offsetPosition=Vector3::ZERO) |
Attaches another object to a certain bone of the skeleton which this entity uses. | |
MovableObject * | detachObjectFromBone (const String &movableName) |
detach a MovableObject previously attached using attachObjectToBone | |
void | detachObjectFromBone (MovableObject *obj) |
Detaches an object by pointer. | |
void | detachAllObjectsFromBone (void) |
Detach all MovableObjects previously attached using attachObjectToBone. | |
ChildObjectListIterator | getAttachedObjectIterator (void) |
Gets an iterator to the list of objects attached to bones on this entity. | |
Real | getBoundingRadius (void) const |
const AxisAlignedBox & | getWorldBoundingBox (bool derive=false) const |
MovableObject::getWorldBoundingBox | |
const Sphere & | getWorldBoundingSphere (bool derive=false) const |
MovableObject::getWorldBoundingSphere | |
void | setNormaliseNormals (bool normalise) |
If set to true, this forces normals of this entity to be normalised dynamically by the hardware. | |
bool | getNormaliseNormals (void) const |
Returns true if this entity has auto-normalisation of normals set. | |
EdgeData * | getEdgeList (void) |
Overridden member from ShadowCaster. | |
ShadowRenderableListIterator | getShadowVolumeRenderableIterator (ShadowTechnique shadowTechnique, const Light *light, HardwareIndexBufferSharedPtr *indexBuffer, bool extrudeVertices, Real extrusionDistance, unsigned long flags=0) |
Overridden member from ShadowCaster. | |
const Matrix4 * | _getBoneMatrices (void) const |
Internal method for retrieving bone matrix information. | |
unsigned short | _getNumBoneMatrices (void) const |
Internal method for retrieving bone matrix information. | |
bool | hasSkeleton (void) const |
Returns whether or not this entity is skeletally animated. | |
SkeletonInstance * | getSkeleton (void) const |
Get this Entity's personal skeleton instance. | |
bool | isHardwareAnimationEnabled (void) const |
Returns whether or not hardware animation is enabled. | |
void | _notifyAttached (Node *parent, bool isTagPoint=false) |
Overridden from MovableObject. | |
int | getSoftwareAnimationRequests (void) const |
Returns the number of requests that have been made for software animation. | |
int | getSoftwareAnimationNormalsRequests (void) const |
Returns the number of requests that have been made for software animation of normals. | |
void | addSoftwareAnimationRequest (bool normalsAlso) |
Add a request for software animation. | |
void | removeSoftwareAnimationRequest (bool normalsAlso) |
Removes a request for software animation. | |
void | shareSkeletonInstanceWith (Entity *entity) |
Shares the SkeletonInstance with the supplied entity. | |
bool | hasVertexAnimation (void) const |
Returns whether or not this entity is either morph or pose animated. | |
void | stopSharingSkeletonInstance () |
Stops sharing the SkeletonInstance with other entities. | |
bool | sharesSkeletonInstance () const |
Returns whether this entity shares it's SkeltonInstance with other entity instances. | |
const EntitySet * | getSkeletonInstanceSharingSet () const |
Returns a pointer to the set of entities which share a SkeletonInstance. | |
void | refreshAvailableAnimationState (void) |
Updates the internal animation state set to include the latest available animations from the attached skeleton. | |
void | _updateAnimation (void) |
Advanced method to perform all the updates required for an animated entity. | |
bool | _isAnimated (void) const |
Tests if any animation applied to this entity. | |
bool | _isSkeletonAnimated (void) const |
Tests if skeleton was animated. | |
VertexData * | _getSkelAnimVertexData (void) const |
Advanced method to get the temporarily blended skeletal vertex information for entities which are software skinned. | |
VertexData * | _getSoftwareVertexAnimVertexData (void) const |
Advanced method to get the temporarily blended software vertex animation information. | |
VertexData * | _getHardwareVertexAnimVertexData (void) const |
Advanced method to get the hardware morph vertex information. | |
TempBlendedBufferInfo * | _getSkelAnimTempBufferInfo (void) |
Advanced method to get the temp buffer information for software skeletal animation. | |
TempBlendedBufferInfo * | _getVertexAnimTempBufferInfo (void) |
Advanced method to get the temp buffer information for software morph animation. | |
uint32 | getTypeFlags (void) const |
Override to return specific type flag. | |
VertexData * | getVertexDataForBinding (void) |
Retrieve the VertexData which should be used for GPU binding. | |
VertexDataBindChoice | chooseVertexDataForBinding (bool hasVertexAnim) const |
Choose which vertex data to bind to the renderer. | |
bool | _getBuffersMarkedForAnimation (void) const |
Are buffers already marked as vertex animated? | |
void | _markBuffersUsedForAnimation (void) |
Mark just this vertex data as animated. | |
virtual void | _notifyCreator (MovableObjectFactory *fact) |
Notify the object of it's creator (internal use only). | |
virtual void | _notifyManager (SceneManager *man) |
Notify the object of it's manager (internal use only). | |
virtual SceneManager * | _getManager (void) const |
Get the manager of this object, if any (internal use only). | |
virtual const String & | getName (void) const |
Returns the name of this object. | |
virtual Node * | getParentNode (void) const |
Returns the node to which this object is attached. | |
virtual SceneNode * | getParentSceneNode (void) const |
Returns the scene node to which this object is attached. | |
virtual bool | isAttached (void) const |
Returns true if this object is attached to a SceneNode or TagPoint. | |
virtual bool | isInScene (void) const |
Returns true if this object is attached to a SceneNode or TagPoint, and this SceneNode / TagPoint is currently in an active part of the scene graph. | |
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 | setRenderingDistance (Real dist) |
Sets the distance at which the object is no longer rendered. | |
virtual Real | getRenderingDistance (void) const |
Gets the distance at which batches are no longer rendered. | |
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 | setUserAny (const Any &anything) |
Sets any kind of user value on this object. | |
virtual const Any & | getUserAny (void) const |
Retrieves the custom user value associated with this object. | |
virtual uint8 | 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 (uint32 flags) |
Sets the query flags for this object. | |
virtual void | addQueryFlags (uint32 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 uint32 | getQueryFlags (void) const |
Returns the query flags relevant for this object. | |
virtual void | setVisibilityFlags (uint32 flags) |
Sets the visiblity flags for this object. | |
virtual void | addVisibilityFlags (uint32 flags) |
As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object. | |
virtual void | removeVisibilityFlags (uint32 flags) |
As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on this object. | |
virtual uint32 | getVisibilityFlags (void) const |
Returns the visibility flags relevant for this object. | |
const AxisAlignedBox & | getLightCapBounds (void) const |
Overridden member from ShadowCaster. | |
const AxisAlignedBox & | getDarkCapBounds (const Light &light, Real dirLightExtrusionDist) const |
Overridden member from ShadowCaster. | |
void | setCastShadows (bool enabled) |
Sets whether or not this object will cast shadows. | |
bool | getCastShadows (void) const |
Returns whether shadow casting is enabled for this object. | |
Real | getPointExtrusionDistance (const Light *l) const |
Get the distance to extrude for a point/spot light. | |
const StringVector & | getAnimableValueNames (void) const |
Gets a list of animable value names for this object. | |
virtual AnimableValuePtr | createAnimableValue (const String &valueName) |
Create a reference-counted AnimableValuePtr for the named value. | |
Static Public Member Functions | |
void | setDefaultQueryFlags (uint32 flags) |
Set the default query flags for all future MovableObject instances. | |
uint32 | getDefaultQueryFlags (uint32 flags) |
Get the default query flags for all future MovableObject instances. | |
void | setDefaultVisibilityFlags (uint32 flags) |
Set the default visibility flags for all future MovableObject instances. | |
uint32 | getDefaultVisibilityFlags (uint32 flags) |
Get the default visibility flags for all future MovableObject instances. | |
void | extrudeVertices (HardwareVertexBufferSharedPtr vertexBuffer, size_t originalVertexCount, const Vector4 &lightPos, Real extrudeDist) |
Utility method for extruding vertices based on a light. | |
Protected Types | |
typedef std::vector< SubEntity * > | SubEntityList |
List of SubEntities (point to SubMeshes). | |
typedef std::vector< Entity * > | LODEntityList |
List of LOD Entity instances (for manual LODs). | |
typedef std::map< String, StringVector > | AnimableDictionaryMap |
Protected Member Functions | |
Entity () | |
Private constructor (instances cannot be created directly). | |
Entity (const String &name, MeshPtr &mesh) | |
Private constructor - specify name (the usual constructor used). | |
const VertexData * | findBlendedVertexData (const VertexData *orig) |
Internal method - given vertex data which could be from the Mesh or any submesh, finds the temporary blend copy. | |
SubEntity * | findSubEntityForVertexData (const VertexData *orig) |
Internal method - given vertex data which could be from the Mesh or any SubMesh, finds the corresponding SubEntity. | |
void | extractTempBufferInfo (VertexData *sourceData, TempBlendedBufferInfo *info) |
Internal method for extracting metadata out of source vertex data for fast assignment of temporary buffers later. | |
VertexData * | cloneVertexDataRemoveBlendInfo (const VertexData *source) |
Internal method to clone vertex data definitions but to remove blend buffers. | |
void | prepareTempBlendBuffers (void) |
Internal method for preparing this Entity for use in animation. | |
void | markBuffersUnusedForAnimation (void) |
Mark all vertex data as so far unanimated. | |
void | restoreBuffersForUnusedAnimation (bool hardwareAnimation) |
Internal method to restore original vertex data where we didn't perform any vertex animation this frame. | |
void | updateAnimation (void) |
Perform all the updates required for an animated entity. | |
void | cacheBoneMatrices (void) |
Private method to cache bone matrices from skeleton. | |
void | buildSubEntityList (MeshPtr &mesh, SubEntityList *sublist) |
Builds a list of SubEntities based on the SubMeshes contained in the Mesh. | |
void | attachObjectImpl (MovableObject *pMovable, TagPoint *pAttachingPoint) |
internal implementation of attaching a 'child' object to this entity and assign the parent node to the child entity | |
void | detachObjectImpl (MovableObject *pObject) |
internal implementation of detaching a 'child' object of this entity and clear the parent node of the child entity | |
void | detachAllObjectsImpl (void) |
internal implementation of detaching all 'child' objects of this entity | |
void | reevaluateVertexProcessing (void) |
Trigger reevaluation of the kind of vertex processing in use. | |
void | applyVertexAnimation (bool hardwareAnimation, bool stencilShadows) |
Apply vertex animation. | |
void | initHardwareAnimationElements (VertexData *vdata, ushort numberOfElements) |
Initialise the hardware animation elements for given vertex data. | |
bool | tempVertexAnimBuffersBound (void) const |
Are software vertex animation temp buffers bound? | |
bool | tempSkelAnimBuffersBound (bool requestNormals) const |
Are software skeleton animation temp buffers bound? | |
Real | getExtrusionDistance (const Vector3 &objectPos, const Light *light) const |
Helper moethod for calculating extrusion distance. | |
virtual void | updateEdgeListLightFacing (EdgeData *edgeData, const Vector4 &lightPos) |
Tells the caster to perform the tasks necessary to update the edge data's light listing. | |
virtual void | generateShadowVolume (EdgeData *edgeData, HardwareIndexBufferSharedPtr indexBuffer, const Light *light, ShadowRenderableList &shadowRenderables, unsigned long flags) |
Generates the indexes required to render a shadow volume into the index buffer which is passed in, and updates shadow renderables to use it. | |
virtual void | extrudeBounds (AxisAlignedBox &box, const Vector4 &lightPos, Real extrudeDist) const |
Utility method for extruding a bounding box. | |
virtual const String & | getAnimableDictionaryName (void) const |
Get the name of the animable dictionary for this class. | |
void | createAnimableDictionary (void) const |
Internal method for creating a dictionary of animable value names for the class, if it does not already exist. | |
StringVector & | getAnimableValueNames (void) |
Get an updateable reference to animable value list. | |
virtual void | initialiseAnimableDictionary (StringVector &vec) const |
Internal method for initialising dictionary; should be implemented by subclasses wanting to expose animable parameters. | |
Protected Attributes | |
MeshPtr | mMesh |
The Mesh that this Entity is based on. | |
SubEntityList | mSubEntityList |
AnimationStateSet * | mAnimationState |
State of animation for animable meshes. | |
TempBlendedBufferInfo | mTempSkelAnimInfo |
Temp buffer details for software skeletal anim of shared geometry. | |
VertexData * | mSkelAnimVertexData |
Vertex data details for software skeletal anim of shared geometry. | |
TempBlendedBufferInfo | mTempVertexAnimInfo |
Temp buffer details for software vertex anim of shared geometry. | |
VertexData * | mSoftwareVertexAnimVertexData |
Vertex data details for software vertex anim of shared geometry. | |
VertexData * | mHardwareVertexAnimVertexData |
Vertex data details for hardware vertex anim of shared geometry - separate since we need to s/w anim for shadows whilst still altering the vertex data for hardware morphing (pos2 binding). | |
bool | mVertexAnimationAppliedThisFrame |
Have we applied any vertex animation to shared geometry? | |
bool | mPreparedForShadowVolumes |
Have the temp buffers already had their geometry prepared for use in rendering shadow volumes? | |
Matrix4 * | mBoneWorldMatrices |
Cached bone matrices, including any world transform. | |
Matrix4 * | mBoneMatrices |
Cached bone matrices in skeleton local space, might shares with other entity instances. | |
unsigned short | mNumBoneMatrices |
unsigned long | mFrameAnimationLastUpdated |
Records the last frame in which animation was updated. | |
unsigned long * | mFrameBonesLastUpdated |
Records the last frame in which the bones was updated It's a pointer because it can be shared between different entities with a shared skeleton. | |
EntitySet * | mSharedSkeletonEntities |
A set of all the entities which shares a single SkeletonInstance. | |
bool | mDisplaySkeleton |
Flag determines whether or not to display skeleton. | |
bool | mHardwareAnimation |
Flag indicating whether hardware animation is supported by this entities materials. | |
ushort | mHardwarePoseCount |
Number of hardware poses supported by materials. | |
bool | mVertexProgramInUse |
Flag indicating whether we have a vertex program in use on any of our subentities. | |
int | mSoftwareAnimationRequests |
Counter indicating number of requests for software animation. | |
int | mSoftwareAnimationNormalsRequests |
Counter indicating number of requests for software blended normals. | |
ushort | mMeshLodIndex |
The LOD number of the mesh to use, calculated by _notifyCurrentCamera. | |
Real | mMeshLodFactorInv |
LOD bias factor, inverted for optimisation when calculating adjusted depth. | |
ushort | mMinMeshLodIndex |
Index of minimum detail LOD (NB higher index is lower detail). | |
ushort | mMaxMeshLodIndex |
Index of maximum detail LOD (NB lower index is higher detail). | |
Real | mMaterialLodFactorInv |
LOD bias factor, inverted for optimisation when calculating adjusted depth. | |
ushort | mMinMaterialLodIndex |
Index of minimum detail LOD (NB higher index is lower detail). | |
ushort | mMaxMaterialLodIndex |
Index of maximum detail LOD (NB lower index is higher detail). | |
LODEntityList | mLodEntityList |
SkeletonInstance * | mSkeletonInstance |
This Entity's personal copy of the skeleton, if skeletally animated. | |
Matrix4 | mLastParentXform |
Last parent xform. | |
ChildObjectList | mChildObjectList |
AxisAlignedBox | mFullBoundingBox |
Bounding box that 'contains' all the mesh of each child entity. | |
bool | mNormaliseNormals |
ShadowRenderableList | mShadowRenderables |
String | mName |
Name of this object. | |
MovableObjectFactory * | mCreator |
Creator of this object (if created by a factory). | |
SceneManager * | mManager |
SceneManager holding this object (if applicable). | |
Node * | mParentNode |
node to which this object is attached | |
bool | mParentIsTagPoint |
bool | mVisible |
Is this object visible? | |
Real | mUpperDistance |
Upper distance to still render. | |
Real | mSquaredUpperDistance |
bool | mBeyondFarDistance |
Hidden because of distance? | |
Any | mUserAny |
User defined link to another object / value / whatever. | |
uint8 | mRenderQueueID |
The render queue to use when rendering this object. | |
bool | mRenderQueueIDSet |
Flags whether the RenderQueue's default should be used. | |
uint32 | mQueryFlags |
Flags determining whether this object is included / excluded from scene queries. | |
uint32 | mVisibilityFlags |
Flags determining whether this object is visible (compared to SceneManager mask). | |
AxisAlignedBox | mWorldAABB |
Cached world AABB of this object. | |
Sphere | mWorldBoundingSphere |
AxisAlignedBox | mWorldDarkCapBounds |
World space AABB of this object's dark cap. | |
bool | mCastShadows |
Does this object cast shadows? | |
Static Protected Attributes | |
uint32 | msDefaultQueryFlags |
Default query flags. | |
uint32 | msDefaultVisibilityFlags |
Default visibility flags. | |
AnimableDictionaryMap | msAnimableDictionary |
Static map of class name to list of animable value names. | |
Friends | |
class | EntityFactory |
class | SubEntity |
Definition at line 70 of file OgreEntity.h.
|
Definition at line 202 of file OgreAnimable.h. |
|
Contains the child objects (attached to bones) indexed by name.
Definition at line 239 of file OgreEntity.h. |
|
Definition at line 482 of file OgreEntity.h. |
|
Definition at line 76 of file OgreEntity.h. Referenced by getSkeletonInstanceSharingSet(). |
|
List of LOD Entity instances (for manual LODs). We don't know when the mesh is using manual LODs whether one LOD to the next will have the same number of SubMeshes, therefore we have to allow a separate Entity list with each alternate one. Definition at line 202 of file OgreEntity.h. |
|
Definition at line 121 of file OgreShadowCaster.h. |
|
Definition at line 122 of file OgreShadowCaster.h. |
|
List of SubEntities (point to SubMeshes).
Definition at line 93 of file OgreEntity.h. |
|
Identify which vertex data we should be sending to the renderer.
Definition at line 681 of file OgreEntity.h. |
|
Private constructor (instances cannot be created directly).
|
|
Private constructor - specify name (the usual constructor used).
|
|
Default destructor.
|
|
Internal method for retrieving bone matrix information.
Definition at line 516 of file OgreEntity.h. |
|
Are buffers already marked as vertex animated?
Definition at line 692 of file OgreEntity.h. |
|
Advanced method to get the hardware morph vertex information.
|
|
Get the manager of this object, if any (internal use only).
Definition at line 111 of file OgreMovableObject.h. |
|
Internal method for retrieving bone matrix information.
Definition at line 518 of file OgreEntity.h. |
|
return the full transformation of the parent sceneNode or the attachingPoint node
|
|
Advanced method to get the temp buffer information for software skeletal animation.
|
|
Advanced method to get the temporarily blended skeletal vertex information for entities which are software skinned.
|
|
Advanced method to get the temporarily blended software vertex animation information.
|
|
Advanced method to get the temp buffer information for software morph animation.
|
|
Tests if any animation applied to this entity.
|
|
Tests if skeleton was animated.
|
|
Mark just this vertex data as animated.
|
|
Overridden from MovableObject.
Reimplemented from Ogre::MovableObject. |
|
Notify the object of it's creator (internal use only).
Definition at line 107 of file OgreMovableObject.h. |
|
Overridden - see MovableObject.
Reimplemented from Ogre::MovableObject. |
|
Notify the object of it's manager (internal use only).
Definition at line 109 of file OgreMovableObject.h. |
|
Advanced method to perform all the updates required for an animated entity.
|
|
Overridden - see MovableObject.
Implements Ogre::MovableObject. |
|
As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object.
Definition at line 268 of file OgreMovableObject.h. References Ogre::uint32. |
|
Add a request for software animation.
|
|
As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object.
Definition at line 296 of file OgreMovableObject.h. References Ogre::uint32. |
|
Apply vertex animation.
|
|
internal implementation of attaching a 'child' object to this entity and assign the parent node to the child entity
|
|
Attaches another object to a certain bone of the skeleton which this entity uses.
|
|
Builds a list of SubEntities based on the SubMeshes contained in the Mesh.
|
|
Private method to cache bone matrices from skeleton.
|
|
Choose which vertex data to bind to the renderer.
|
|
Clones this entity and returns a pointer to the clone.
|
|
Internal method to clone vertex data definitions but to remove blend buffers.
|
|
Internal method for creating a dictionary of animable value names for the class, if it does not already exist.
Definition at line 215 of file OgreAnimable.h. References Ogre::StringVector. |
|
Create a reference-counted AnimableValuePtr for the named value.
Reimplemented in Ogre::Light. Definition at line 281 of file OgreAnimable.h. References Ogre::AnimableValuePtr, OGRE_EXCEPT, and Ogre::String. |
|
Detach all MovableObjects previously attached using attachObjectToBone.
|
|
internal implementation of detaching all 'child' objects of this entity
|
|
Detaches an object by pointer.
|
|
detach a MovableObject previously attached using attachObjectToBone
|
|
internal implementation of detaching a 'child' object of this entity and clear the parent node of the child entity
|
|
Internal method for extracting metadata out of source vertex data for fast assignment of temporary buffers later.
|
|
Utility method for extruding a bounding box.
|
|
Utility method for extruding vertices based on a light.
|
|
Internal method - given vertex data which could be from the Mesh or any submesh, finds the temporary blend copy.
|
|
Internal method - given vertex data which could be from the Mesh or any SubMesh, finds the corresponding SubEntity.
|
|
Generates the indexes required to render a shadow volume into the index buffer which is passed in, and updates shadow renderables to use it.
|
|
For entities based on animated meshes, gets the AnimationState objects for all animations.
|
|
Get the name of the animable dictionary for this class.
Reimplemented in Ogre::Light. Definition at line 210 of file OgreAnimable.h. References Ogre::String. |
|
Gets a list of animable value names for this object.
Definition at line 256 of file OgreAnimable.h. References OGRE_EXCEPT, and Ogre::StringVector. |
|
Get an updateable reference to animable value list.
Definition at line 228 of file OgreAnimable.h. References OGRE_EXCEPT, and Ogre::StringVector. |
|
For entities based on animated meshes, gets the AnimationState object for a single animation.
|
|
Gets an iterator to the list of objects attached to bones on this entity.
|
|
Overridden - see MovableObject.
Implements Ogre::MovableObject. |
|
Implements Ogre::MovableObject. |
|
Returns whether shadow casting is enabled for this object.
Implements Ogre::ShadowCaster. Definition at line 339 of file OgreMovableObject.h. |
|
merge all the child object Bounds a return it
|
|
Overridden member from ShadowCaster.
Implements Ogre::ShadowCaster. |
|
Get the default query flags for all future MovableObject instances.
Definition at line 283 of file OgreMovableObject.h. References Ogre::uint32. |
|
Get the default visibility flags for all future MovableObject instances.
Definition at line 311 of file OgreMovableObject.h. References Ogre::uint32. |
|
Returns whether or not the entity is currently displaying its skeleton.
|
|
Overridden member from ShadowCaster.
Reimplemented from Ogre::MovableObject. |
|
Helper moethod for calculating extrusion distance.
|
|
Overridden member from ShadowCaster.
Implements Ogre::ShadowCaster. |
|
Gets a pointer to the entity representing the numbered manual level of detail.
|
|
Gets the Mesh that this Entity is based on.
|
|
Overridden from MovableObject.
Implements Ogre::MovableObject. |
|
Returns the name of this object.
Reimplemented in Ogre::Camera. Definition at line 114 of file OgreMovableObject.h. References Ogre::String. |
|
Returns true if this entity has auto-normalisation of normals set.
Definition at line 504 of file OgreEntity.h. |
|
Returns the number of manual levels of detail that this entity supports.
|
|
Retrieves the number of SubEntity objects making up this entity.
|
|
Returns the node to which this object is attached.
|
|
Returns the scene node to which this object is attached.
|
|
Get the distance to extrude for a point/spot light.
Implements Ogre::ShadowCaster. |
|
Returns the query flags relevant for this object.
Definition at line 275 of file OgreMovableObject.h. References Ogre::uint32. |
|
Gets the distance at which batches are no longer rendered.
Definition at line 208 of file OgreMovableObject.h. References Ogre::Real. |
|
Gets the queue group for this entity, see setRenderQueueGroup for full details.
|
|
Overridden member from ShadowCaster.
Reimplemented from Ogre::MovableObject. |
|
Get this Entity's personal skeleton instance.
Definition at line 522 of file OgreEntity.h. |
|
Returns a pointer to the set of entities which share a SkeletonInstance. If this instance does not share it's SkeletonInstance with other instances NULL will be returned Definition at line 609 of file OgreEntity.h. References EntitySet. |
|
Returns the number of requests that have been made for software animation of normals.
Definition at line 557 of file OgreEntity.h. |
|
Returns the number of requests that have been made for software animation.
Definition at line 545 of file OgreEntity.h. |
|
Gets a pointer to a SubEntity by name.
|
|
Gets a pointer to a SubEntity, ie a part of an Entity.
|
|
Override to return specific type flag.
Reimplemented from Ogre::MovableObject. |
|
Retrieves the custom user value associated with this object.
Definition at line 236 of file OgreMovableObject.h. |
|
Retrieves a pointer to a custom application object associated with this movable by an earlier call to setUserObject.
Definition at line 220 of file OgreMovableObject.h. |
|
Retrieve the VertexData which should be used for GPU binding.
|
|
Returns the visibility flags relevant for this object.
Definition at line 303 of file OgreMovableObject.h. References Ogre::uint32. |
|
MovableObject::getWorldBoundingBox
Reimplemented from Ogre::MovableObject. |
|
MovableObject::getWorldBoundingSphere
Reimplemented from Ogre::MovableObject. |
|
Returns whether or not this entity is skeletally animated.
Definition at line 520 of file OgreEntity.h. |
|
Returns whether or not this entity is either morph or pose animated.
|
|
Initialise the hardware animation elements for given vertex data.
|
|
Internal method for initialising dictionary; should be implemented by subclasses wanting to expose animable parameters.
Reimplemented in Ogre::Light. Definition at line 248 of file OgreAnimable.h. References Ogre::StringVector. |
|
Returns true if this object is attached to a SceneNode or TagPoint.
|
|
Returns whether or not hardware animation is enabled.
Definition at line 534 of file OgreEntity.h. |
|
Returns true if this object is attached to a SceneNode or TagPoint, and this SceneNode / TagPoint is currently in an active part of the scene graph.
|
|
Returns whether or not this object is supposed to be visible or not.
Reimplemented in Ogre::StaticGeometry::Region. |
|
Mark all vertex data as so far unanimated.
|
|
Internal method for preparing this Entity for use in animation.
|
|
Trigger reevaluation of the kind of vertex processing in use.
|
|
Updates the internal animation state set to include the latest available animations from the attached skeleton.
|
|
As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object.
Definition at line 272 of file OgreMovableObject.h. |
|
Removes a request for software animation.
|
|
As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on this object.
Definition at line 300 of file OgreMovableObject.h. References Ogre::uint32. |
|
Internal method to restore original vertex data where we didn't perform any vertex animation this frame.
|
|
Sets whether or not this object will cast shadows.
Definition at line 337 of file OgreMovableObject.h. |
|
Set the default query flags for all future MovableObject instances.
Definition at line 279 of file OgreMovableObject.h. References Ogre::uint32. |
|
Set the default visibility flags for all future MovableObject instances.
Definition at line 307 of file OgreMovableObject.h. References Ogre::uint32. |
|
Tells the Entity whether or not it should display it's skeleton, if it has one.
|
|
Sets a level-of-detail bias for the material detail of this entity.
|
|
Sets the material to use for the whole of this entity.
|
|
Sets a level-of-detail bias for the mesh detail of this entity.
|
|
If set to true, this forces normals of this entity to be normalised dynamically by the hardware.
Definition at line 501 of file OgreEntity.h. |
|
Sets whether the polygon mode of this entire entity may be overridden by the camera detail settings.
|
|
Sets the query flags for this object.
Definition at line 264 of file OgreMovableObject.h. References Ogre::uint32. |
|
Sets the distance at which the object is no longer rendered.
Definition at line 202 of file OgreMovableObject.h. References Ogre::Real. |
|
Overridden - see MovableObject.
Reimplemented from Ogre::MovableObject. |
|
Sets any kind of user value on this object.
Definition at line 232 of file OgreMovableObject.h. |
|
Call this to associate your own custom user object instance with this MovableObject.
Definition at line 216 of file OgreMovableObject.h. |
|
Sets the visiblity flags for this object.
Definition at line 292 of file OgreMovableObject.h. References Ogre::uint32. |
|
Tells this object whether to be visible or not, if it has a renderable component.
Reimplemented in Ogre::Light. |
|
Shares the SkeletonInstance with the supplied entity. Note that in order for this to work, both entities must have the same Skeleton. |
|
Returns whether this entity shares it's SkeltonInstance with other entity instances.
Definition at line 603 of file OgreEntity.h. |
|
Stops sharing the SkeletonInstance with other entities.
|
|
Are software skeleton animation temp buffers bound?
|
|
Are software vertex animation temp buffers bound?
|
|
Perform all the updates required for an animated entity.
|
|
Tells the caster to perform the tasks necessary to update the edge data's light listing. Can be overridden if the subclass needs to do additional things.
|
|
Definition at line 73 of file OgreEntity.h. |
|
Definition at line 74 of file OgreEntity.h. |
|
State of animation for animable meshes.
Definition at line 98 of file OgreEntity.h. |
|
Hidden because of distance?
Definition at line 68 of file OgreMovableObject.h. |
|
Cached bone matrices in skeleton local space, might shares with other entity instances.
Definition at line 143 of file OgreEntity.h. |
|
Cached bone matrices, including any world transform.
Definition at line 141 of file OgreEntity.h. |
|
Does this object cast shadows?
Definition at line 86 of file OgreMovableObject.h. |
|
Definition at line 241 of file OgreEntity.h. |
|
Creator of this object (if created by a factory).
Definition at line 56 of file OgreMovableObject.h. |
|
Flag determines whether or not to display skeleton.
Definition at line 167 of file OgreEntity.h. |
|
Records the last frame in which animation was updated.
Definition at line 146 of file OgreEntity.h. |
|
Records the last frame in which the bones was updated It's a pointer because it can be shared between different entities with a shared skeleton.
Definition at line 154 of file OgreEntity.h. |
|
Bounding box that 'contains' all the mesh of each child entity.
Definition at line 245 of file OgreEntity.h. |
|
Flag indicating whether hardware animation is supported by this entities materials.
Definition at line 169 of file OgreEntity.h. |
|
Number of hardware poses supported by materials.
Definition at line 171 of file OgreEntity.h. |
|
Vertex data details for hardware vertex anim of shared geometry - separate since we need to s/w anim for shadows whilst still altering the vertex data for hardware morphing (pos2 binding).
Definition at line 112 of file OgreEntity.h. |
|
Last parent xform.
Definition at line 210 of file OgreEntity.h. |
|
Definition at line 203 of file OgreEntity.h. |
|
SceneManager holding this object (if applicable).
Definition at line 58 of file OgreMovableObject.h. |
|
LOD bias factor, inverted for optimisation when calculating adjusted depth.
Definition at line 191 of file OgreEntity.h. |
|
Index of maximum detail LOD (NB lower index is higher detail).
Definition at line 195 of file OgreEntity.h. |
|
Index of maximum detail LOD (NB lower index is higher detail).
Definition at line 188 of file OgreEntity.h. |
|
The Mesh that this Entity is based on.
Definition at line 89 of file OgreEntity.h. |
|
LOD bias factor, inverted for optimisation when calculating adjusted depth.
Definition at line 184 of file OgreEntity.h. |
|
The LOD number of the mesh to use, calculated by _notifyCurrentCamera.
Definition at line 181 of file OgreEntity.h. |
|
Index of minimum detail LOD (NB higher index is lower detail).
Definition at line 193 of file OgreEntity.h. |
|
Index of minimum detail LOD (NB higher index is lower detail).
Definition at line 186 of file OgreEntity.h. |
|
Name of this object.
Reimplemented in Ogre::Camera. Definition at line 54 of file OgreMovableObject.h. |
|
Definition at line 247 of file OgreEntity.h. |
|
Definition at line 144 of file OgreEntity.h. |
|
Definition at line 61 of file OgreMovableObject.h. |
|
node to which this object is attached
Definition at line 60 of file OgreMovableObject.h. |
|
Have the temp buffers already had their geometry prepared for use in rendering shadow volumes?
Definition at line 116 of file OgreEntity.h. |
|
Flags determining whether this object is included / excluded from scene queries.
Definition at line 76 of file OgreMovableObject.h. |
|
The render queue to use when rendering this object.
Definition at line 72 of file OgreMovableObject.h. |
|
Flags whether the RenderQueue's default should be used.
Definition at line 74 of file OgreMovableObject.h. |
|
Static map of class name to list of animable value names.
Definition at line 204 of file OgreAnimable.h. |
|
Default query flags.
Definition at line 90 of file OgreMovableObject.h. |
|
Default visibility flags.
Definition at line 92 of file OgreMovableObject.h. |
|
Definition at line 249 of file OgreEntity.h. |
|
A set of all the entities which shares a single SkeletonInstance. This is only created if the entity is in fact sharing it's SkeletonInstance with other Entities. Definition at line 161 of file OgreEntity.h. |
|
Vertex data details for software skeletal anim of shared geometry.
Definition at line 104 of file OgreEntity.h. |
|
This Entity's personal copy of the skeleton, if skeletally animated.
Definition at line 207 of file OgreEntity.h. |
|
Counter indicating number of requests for software blended normals.
Definition at line 177 of file OgreEntity.h. |
|
Counter indicating number of requests for software animation.
Definition at line 175 of file OgreEntity.h. |
|
Vertex data details for software vertex anim of shared geometry.
Definition at line 108 of file OgreEntity.h. |
|
Definition at line 66 of file OgreMovableObject.h. |
|
Definition at line 94 of file OgreEntity.h. |
|
Temp buffer details for software skeletal anim of shared geometry.
Definition at line 102 of file OgreEntity.h. |
|
Temp buffer details for software vertex anim of shared geometry.
Definition at line 106 of file OgreEntity.h. |
|
Upper distance to still render.
Definition at line 65 of file OgreMovableObject.h. |
|
User defined link to another object / value / whatever.
Definition at line 70 of file OgreMovableObject.h. |
|
Have we applied any vertex animation to shared geometry?
Definition at line 114 of file OgreEntity.h. |
|
Flag indicating whether we have a vertex program in use on any of our subentities.
Definition at line 173 of file OgreEntity.h. |
|
Flags determining whether this object is visible (compared to SceneManager mask).
Definition at line 78 of file OgreMovableObject.h. |
|
Is this object visible?
Definition at line 63 of file OgreMovableObject.h. |
|
Cached world AABB of this object.
Reimplemented in Ogre::ParticleSystem. Definition at line 80 of file OgreMovableObject.h. |
|
Definition at line 82 of file OgreMovableObject.h. |
|
World space AABB of this object's dark cap.
Definition at line 84 of file OgreMovableObject.h. |
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:38:46 2006