OGRE 2.1
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
Ogre::v1::RibbonTrail Class Reference

Subclass of BillboardChain which automatically leaves a trail behind one or more Node instances. More...

#include <OgreRibbonTrail.h>

+ Inheritance diagram for Ogre::v1::RibbonTrail:

Public Types

typedef map< size_t, Vector4 >::type CustomParameterMap
 
typedef vector< Element >::type ElementList
 
typedef FastArray< MovableObject * > MovableObjectArray
 @See SceneManager::cullFrustum
 
typedef ConstVectorIterator< NodeListNodeIterator
 
typedef vector< Node * >::type NodeList
 
enum  TexCoordDirection { TCD_U , TCD_V }
 The direction in which texture coordinates from elements of the chain are used. More...
 

Public Member Functions

 RibbonTrail (IdType id, ObjectMemoryManager *objectMemoryManager, SceneManager *manager, size_t maxElements=20, size_t numberOfChains=1, bool useTextureCoords=true, bool useVertexColours=true)
 Constructor (don't use directly, use factory)
 
virtual ~RibbonTrail ()
 destructor
 
LightList_getLightList ()
 Returns a pointer to the current list of lights for this object.
 
SceneManager_getManager (void) const
 Get the manager of this object, if any (internal use only)
 
ObjectData_getObjectData ()
 Returns a direct access to the ObjectData state.
 
const Matrix4_getParentNodeFullTransform (void) const
 Returns the full transformation of the parent sceneNode or the attachingPoint node.
 
virtual void _notifyAttached (Node *parent)
 Internal method called to notify the object that it has been attached to a node.
 
void _notifyManager (SceneManager *man)
 Notify the object of it's manager (internal use only)
 
virtual void _notifyParentNodeMemoryChanged (void)
 @See Node::_callMemoryChangeListeners
 
virtual void _notifyStaticDirty (void) const
 Called by SceneManager when it is telling we're a static MovableObject being dirty Don't call this directly.
 
virtual void _releaseManualHardwareResources ()
 Notifies the movable object that hardware resources were lost.
 
virtual void _restoreManualHardwareResources ()
 Notifies the movable object that hardware resources should be restored.
 
virtual void _setHlmsHashes (uint32 hash, uint32 casterHash)
 Manually sets the hlms hashes. Don't call this directly.
 
virtual void _setNullDatablock (void)
 Sets the datablock to a null pointer.
 
virtual void _timeUpdate (Real time)
 Perform any fading / width delta required; internal method.
 
virtual void _updateCustomGpuParameter (const GpuProgramParameters::AutoConstantEntry &constantEntry, GpuProgramParameters *params) const
 Update a custom GpuProgramParameters constant which is derived from information only this Renderable knows.
 
void _updateRenderQueue (RenderQueue *, Camera *camera, const Camera *lodCamera)
 Internal method by which the movable object must add Renderable subclass instances to the rendering queue.
 
virtual void addChainElement (size_t chainIndex, const Element &billboardChainElement)
 Add an element to the 'head' of a chain.
 
virtual void addNode (Node *n)
 Add a node to be tracked.
 
void addPoseWeight (size_t index, float w)
 
void addQueryFlags (uint32 flags)
 As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object.
 
void addVisibilityFlags (uint32 flags)
 As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object.
 
virtual void clearAllChains (void)
 Remove all elements from all chains (but leave the chains themselves intact).
 
void clearChain (size_t chainIndex)
 Remove all elements of a given chain (but leave the chain intact).
 
virtual AnimableValuePtr createAnimableValue (const String &valueName)
 Create a reference-counted AnimableValuePtr for the named value.
 
void detachFromParent (void)
 Detaches an object from a parent SceneNode if attached.
 
const StringVectorgetAnimableValueNames (void) const
 Gets a list of animable value names for this object.
 
const AxisAlignedBoxgetBoundingBox (void) const
 
RealAsUint getCachedDistanceToCamera (void) const
 Returns the distance to camera as calculated in @cullFrustum.
 
Real getCachedDistanceToCameraAsReal (void) const
 Returns the distance to camera as calculated in @cullFrustum.
 
bool getCastShadows (void) const
 Returns whether shadow casting is enabled for this object.
 
virtual bool getCastsShadows (void) const
 Method which reports whether this renderable would normally cast a shadow.
 
virtual const ElementgetChainElement (size_t chainIndex, size_t elementIndex) const
 Get the detail of a chain element.
 
virtual size_t getChainIndexForNode (const Node *n)
 Get the chain index for a given Node being tracked.
 
virtual const ColourValuegetColourChange (size_t chainIndex) const
 Get the per-second fading amount.
 
uint8 getCurrentMaterialLod (void) const
 
unsigned char getCurrentMeshLod (void) const
 
const Vector4getCustomParameter (size_t index) const
 Gets the custom value associated with this Renderable at the given index.
 
const CustomParameterMapgetCustomParameters (void) const
 
HlmsDatablockgetDatablock (void) const
 
virtual bool getDynamic (void) const
 Gets whether or not the buffers created for this object are suitable for dynamic alteration.
 
uint32 getHlmsCasterHash (void) const
 
uint32 getHlmsHash (void) const
 
IdType getId () const
 Get the unique id of this object.
 
virtual const ColourValuegetInitialColour (size_t chainIndex) const
 Get the starting ribbon colour.
 
virtual Real getInitialWidth (size_t chainIndex) const
 Get the starting ribbon width in world units.
 
uint32 getLightMask () const
 Get a bitwise mask which will filter the lights affecting this object.
 
const LightListgetLights (void) const
 Gets a list of lights, ordered relative to how close they are to this renderable.
 
ListenergetListener (void) const
 Gets the current listener for this object.
 
Aabb getLocalAabb (void) const
 Retrieves the local axis-aligned bounding box for this object.
 
float getLocalRadius (void) const
 See getLocalAabb and getWorldRadius.
 
MaterialPtr getMaterial (void) const
 Retrieves the material this renderable object uses.
 
virtual size_t getMaxChainElements (void) const
 Get the maximum number of chain elements per chain.
 
const StringgetMovableType (void) const
 Overridden from MovableObject.
 
const StringgetName (void) const
 Returns the name of this object.
 
virtual NodeIterator getNodeIterator (void) const
 Get an iterator over the nodes which are being tracked.
 
virtual size_t getNumberOfChains (void) const
 Get the number of chain segments (this class can render multiple chains at once using the same material).
 
virtual size_t getNumChainElements (size_t chainIndex) const
 Returns the number of chain elements.
 
unsigned short getNumPoses (void) const
 
virtual unsigned short getNumWorldTransforms (void) const
 Returns the number of world transform matrices this renderable requires.
 
virtual const RealgetOtherTextureCoordRange (void) const
 Get the range of the texture coordinates generated across the width of the chain elements.
 
NodegetParentNode (void) const
 Returns the node to which this object is attached.
 
SceneNodegetParentSceneNode (void) const
 
virtual bool getPolygonModeOverrideable (void) const
 Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.
 
bool getPoseHalfPrecision () const
 
bool getPoseNormals () const
 
TexBufferPackedgetPoseTexBuffer () const
 
float getPoseWeight (size_t index) const
 
floatgetPoseWeights () const
 
uint32 getQueryFlags (void) const
 Returns the query flags relevant for this object.
 
Real getRenderingDistance (void) const
 Gets the distance at which batches are no longer rendered.
 
Real getRenderingMinPixelSize () const
 Returns the minimum pixel size an object needs to be in both screen axes in order to be rendered.
 
void getRenderOperation (RenderOperation &, bool casterPass)
 Gets the render operation required to send this object to the frame buffer.
 
uint8 getRenderQueueGroup (void) const
 Gets the queue group for this entity, see setRenderQueueGroup for full details.
 
uint8 getRenderQueueSubGroup (void) const
 
Real getShadowRenderingDistance (void) const
 Gets the distance at which batches are no longer casting shadows.
 
SkeletonInstancegetSkeletonInstance (void) const
 
Real getSquaredViewDepth (const Camera *cam) const
 
virtual TexCoordDirection getTextureCoordDirection (void)
 Gets the direction in which texture coords specified on each element are deemed to run.
 
virtual Real getTrailLength (void) const
 Get the length of the trail.
 
bool getUseIdentityProjection (void) const
 Returns whether or not to use an 'identity' projection.
 
bool getUseIdentityView (void) const
 Returns whether or not to use an 'identity' view.
 
virtual bool getUseIdentityViewProjMatrixIsDynamic (void) const
 Returns whether the Hlms implementation should evaluate getUseIdentityProjection per object at runtime, or if it can assume the Renderable will remain with the same setting until the datablock is flushed (performance optimization)
 
virtual bool getUseIdentityWorldMatrix (void) const
 Returns whether the world matrix is an identity matrix.
 
virtual OGRE_DEPRECATED const AnygetUserAny (void) const
 
UserObjectBindingsgetUserObjectBindings ()
 Return an instance of user objects binding associated with this class.
 
UserObjectBindingsgetUserObjectBindings ()
 Return an instance of user objects binding associated with this class.
 
const UserObjectBindingsgetUserObjectBindings () const
 Return an instance of user objects binding associated with this class.
 
const UserObjectBindingsgetUserObjectBindings () const
 Return an instance of user objects binding associated with this class.
 
virtual bool getUseTextureCoords (void) const
 Gets whether texture coordinate information should be included in the final buffers generated.
 
virtual bool getUseVertexColours (void) const
 Gets whether vertex colour information should be included in the final buffers generated.
 
const VertexArrayObjectArraygetVaos (VertexPass vertexPass) const
 
uint32 getVisibilityFlags (void) const
 Returns the visibility flags relevant for this object.
 
bool getVisible (void) const
 Gets this object whether to be visible or not, if it has a renderable component.
 
virtual Real getWidthChange (size_t chainIndex) const
 Get the change in ribbon width per second.
 
Aabb getWorldAabb () const
 Gets the axis aligned box in world space.
 
Aabb getWorldAabbUpdated ()
 Gets the axis aligned box in world space.
 
float getWorldRadius () const
 Gets the bounding Radius scaled by max( scale.x, scale.y, scale.z ).
 
float getWorldRadiusUpdated ()
 Gets the bounding Radius scaled by max( scale.x, scale.y, scale.z ).
 
void getWorldTransforms (Matrix4 *) const
 Gets the world transform matrix / matrices for this renderable object.
 
bool hasCustomParameter (size_t index) const
 Checks whether a custom value is associated with this Renderable at the given index.
 
bool hasSkeletonAnimation (void) const
 
virtual void instanceBatchCullFrustumThreaded (const Frustum *frustum, const Camera *lodCamera, uint32 combinedVisibilityFlags)
 @See InstancingTheadedCullingMethod,
 
bool isAttached (void) const
 Returns true if this object is attached to a Node.
 
bool isStatic () const
 Checks whether this MovableObject is static. @See setStatic.
 
bool isVisible (void) const
 Returns whether or not this object is supposed to be visible or not.
 
virtual void nodeAttached (const Node *)
 Node has been attached to a parent.
 
void nodeDestroyed (const Node *node)
 
virtual void nodeDetached (const Node *)
 Node has been detached from a parent.
 
void nodeUpdated (const Node *node)
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, const char *, int, const char *)
 
void operator delete (void *ptr, void *)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, const char *, int, const char *)
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, const char *file, int line, const char *func)
 operator new, with debug line info
 
voidoperator new (size_t sz, void *ptr)
 placement operator new
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info
 
bool operator() (const IdObject &left, const IdObject &right)
 
bool operator() (const IdObject *left, const IdObject *right)
 
virtual void postRender (SceneManager *sm, RenderSystem *rsys)
 Called immediately after the Renderable has been rendered.
 
virtual bool preRender (SceneManager *sm, RenderSystem *rsys)
 Called just prior to the Renderable being rendered.
 
const LightListqueryLights (void) const
 Gets a list of lights, ordered relative to how close they are to this movable object.
 
virtual void removeChainElement (size_t chainIndex)
 Remove an element from the 'tail' of a chain.
 
void removeCustomParameter (size_t index)
 Removes a custom value which is associated with this Renderable at the given index.
 
virtual void removeNode (Node *n)
 Remove tracking on a given node.
 
void removeQueryFlags (uint32 flags)
 As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object.
 
void removeVisibilityFlags (uint32 flags)
 As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on this object.
 
void setCastShadows (bool enabled)
 Sets whether or not this object will cast shadows.
 
virtual void setColourChange (size_t chainIndex, const ColourValue &valuePerSecond)
 Enables / disables fading the trail using colour.
 
virtual void setColourChange (size_t chainIndex, Real r, Real g, Real b, Real a)
 Enables / disables fading the trail using colour.
 
void setCustomParameter (size_t index, const Vector4 &value)
 Sets a custom parameter for this Renderable, which may be used to drive calculations for this specific Renderable, like GPU program parameters.
 
virtual void setDatablock (HlmsDatablock *datablock)
 Assigns a datablock (i.e. HLMS Material) to this renderable.
 
void setDatablock (IdString datablockName)
 Assigns a datablock (i.e.
 
void setDatablockOrMaterialName (String materialName, String groupName)
 First tries to see if an HLMS datablock exist with the given name, if not, tries to search among low level materials.
 
virtual void setDynamic (bool dyn)
 Sets whether or not the buffers created for this object are suitable for dynamic alteration.
 
void setFaceCamera (bool faceCamera, const Vector3 &normalVector=Vector3::UNIT_X)
 Sets whether the billboard should always be facing the camera or a custom direction set by each point element.
 
virtual void setInitialColour (size_t chainIndex, const ColourValue &col)
 Set the starting ribbon colour for a given segment.
 
virtual void setInitialColour (size_t chainIndex, Real r, Real g, Real b, Real a=1.0)
 Set the starting ribbon colour.
 
virtual void setInitialWidth (size_t chainIndex, Real width)
 Set the starting ribbon width in world units.
 
void setLightMask (uint32 lightMask)
 Set a bitwise mask which will filter the lights affecting this object.
 
void setListener (Listener *listener)
 Sets a listener for this object.
 
void setLocalAabb (const Aabb box)
 Sets the local axis-aligned bounding box for this object.
 
virtual void setMaterial (const MaterialPtr &material)
 Sets the given material. Overrides HLMS materials.
 
void setMaterialName (const String &name, const String &groupName)
 Sets the name of the Material to be used. Prefer using HLMS @See setHlms.
 
void setMaxChainElements (size_t maxElements)
 Set the maximum number of chain elements per chain.
 
void setName (const String &name)
 Sets a custom name for this node.
 
void setNumberOfChains (size_t numChains)
 Set the number of chain segments (this class can render multiple chains at once using the same material).
 
virtual void setOtherTextureCoordRange (Real start, Real end)
 Set the range of the texture coordinates generated across the width of the chain elements.
 
virtual void setPolygonModeOverrideable (bool override)
 Sets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.
 
void setPoseWeight (size_t index, float w)
 
void setQueryFlags (uint32 flags)
 Sets the query flags for this object.
 
void setRenderingDistance (Real dist)
 Sets the distance at which the object is no longer rendered.
 
void setRenderingMinPixelSize (Real pixelSize)
 Sets the minimum pixel size an object needs to be in both screen axes in order to be rendered.
 
virtual void setRenderQueueGroup (uint8 queueID)
 Sets the render queue group this entity will be rendered through.
 
void setRenderQueueSubGroup (uint8 subGroup)
 Sets the render queue sub group.
 
void setShadowRenderingDistance (Real dist)
 Sets the distance at which the object is no longer casting shadows.
 
bool setStatic (bool bStatic)
 Turns this Node into static or dynamic.
 
virtual void setTextureCoordDirection (TexCoordDirection dir)
 Sets the direction in which texture coords specified on each element are deemed to run along the length of the chain.
 
virtual void setTrailLength (Real len)
 Set the length of the trail.
 
void setUseIdentityProjection (bool useIdentityProjection)
 Sets whether or not to use an 'identity' projection.
 
void setUseIdentityView (bool useIdentityView)
 Sets whether or not to use an 'identity' view.
 
virtual OGRE_DEPRECATED void setUserAny (const Any &anything)
 
virtual void setUseTextureCoords (bool use)
 Sets whether texture coordinate information should be included in the final buffers generated.
 
virtual void setUseVertexColours (bool use)
 Sets whether vertex colour information should be included in the final buffers generated.
 
void setVisibilityFlags (uint32 flags)
 Sets the visibility flags for this object.
 
void setVisible (bool visible)
 Tells this object whether to be visible or not, if it has a renderable component.
 
virtual void setWidthChange (size_t chainIndex, Real widthDeltaPerSecond)
 Set the change in ribbon width per second.
 
virtual void updateChainElement (size_t chainIndex, size_t elementIndex, const Element &billboardChainElement)
 Update the details of an existing chain element.
 

Static Public Member Functions

static void buildLightList (const size_t numNodes, ObjectData t, const LightListInfo &globalLightList)
 @See SceneManager::buildLightList
 
static void calculateCastersBox (const size_t numNodes, ObjectData t, uint32 sceneVisibilityFlags, AxisAlignedBox *outBox)
 
static void cullFrustum (const size_t numNodes, ObjectData t, const Camera *frustum, uint32 sceneVisibilityFlags, MovableObjectArray &outCulledObjects, const Camera *lodCamera)
 
static void cullLights (const size_t numNodes, ObjectData t, LightListInfo &outGlobalLightList, const FrustumVec &frustums, const FrustumVec &cubemapFrustums)
 @See SceneManager::cullLights &
 
static uint32 getDefaultQueryFlags ()
 Get the default query flags for all future MovableObject instances.
 
static uint32 getDefaultVisibilityFlags ()
 Get the default visibility flags for all future MovableObject instances.
 
static void setDefaultQueryFlags (uint32 flags)
 Set the default query flags for all future MovableObject instances.
 
static void setDefaultVisibilityFlags (uint32 flags)
 Set the default visibility flags for all future MovableObject instances.
 
static void updateAllBounds (const size_t numNodes, ObjectData t)
 @See SceneManager::updateAllBounds
 

Public Attributes

uint8 mCustomParameter
 Only valid when using low level materials.
 
size_t mGlobalIndex
 Index in the vector holding this MO reference (could be our parent node, or a global array tracking all movable objecst to avoid memory leaks).
 
uint32 mHlmsGlobalIndex
 Index in the vector holding this Rendrable reference in the HLMS datablock.
 
size_t mParentIndex
 Index in the vector holding this MO reference (could be our parent node, or a global array tracking all movable objecst to avoid memory leaks).
 
RenderableArray mRenderables
 

Static Public Attributes

static const FastArray< Realc_DefaultLodMesh
 

Detailed Description

Subclass of BillboardChain which automatically leaves a trail behind one or more Node instances.

Remarks
An instance of this class will watch one or more Node instances, and automatically generate a trail behind them as they move. Because this class can monitor multiple modes, it generates its own geometry in world space and thus, even though it has to be attached to a SceneNode to be visible, changing the position of the scene node it is attached to makes no difference to the geometry rendered.
The 'head' element grows smoothly in size until it reaches the required size, then a new element is added. If the segment is full, the tail element shrinks by the same proportion as the head grows before disappearing.
Elements can be faded out on a time basis, either by altering their colour or altering their alpha. The width can also alter over time.
'v' texture coordinates are fixed at 0.0 if used, meaning that you can use a 1D texture to 'smear' a colour pattern along the ribbon if you wish. The 'u' coordinates are by default (0.0, 1.0), but you can alter this using setOtherTexCoordRange if you wish.

Member Typedef Documentation

◆ CustomParameterMap

◆ ElementList

◆ MovableObjectArray

@See SceneManager::cullFrustum

Remarks
We don't pass by reference on purpose (avoid implicit aliasing) We perform frustum culling AND test visibility mask at the same time
Parameters
frustumFrustum to clip against
sceneVisibilityFlagsCombined scene's visibility flags (i.e. viewport | scene). Set LAYER_SHADOW_CASTER bit if you want to exclude non-shadow casters.
outCulledObjectsOut. List of objects that are (fully or partially) inside the frustum and should be rendered
lodCameraCamera in which lod levels calculations are based (i.e. during shadow pass renders) Note however, we only use this camera to calulate if should be visible according to mUpperDistance

◆ NodeIterator

◆ NodeList

Member Enumeration Documentation

◆ TexCoordDirection

The direction in which texture coordinates from elements of the chain are used.

Enumerator
TCD_U 

Tex coord in elements is treated as the 'u' texture coordinate.

TCD_V 

Tex coord in elements is treated as the 'v' texture coordinate.

Constructor & Destructor Documentation

◆ RibbonTrail()

Ogre::v1::RibbonTrail::RibbonTrail ( IdType  id,
ObjectMemoryManager objectMemoryManager,
SceneManager manager,
size_t  maxElements = 20,
size_t  numberOfChains = 1,
bool  useTextureCoords = true,
bool  useVertexColours = true 
)

Constructor (don't use directly, use factory)

Parameters
nameThe name to give this object
maxElementsThe maximum number of elements per chain
numberOfChainsThe number of separate chain segments contained in this object, ie the maximum number of nodes that can have trails attached
useTextureCoordsIf true, use texture coordinates from the chain elements
useVertexColoursIf true, use vertex colours from the chain elements (must be true if you intend to use fading)

◆ ~RibbonTrail()

virtual Ogre::v1::RibbonTrail::~RibbonTrail ( )
virtual

destructor

Member Function Documentation

◆ _getLightList()

LightList * Ogre::MovableObject::_getLightList ( )
inlineinherited

Returns a pointer to the current list of lights for this object.

Remarks
You should not modify this list outside of MovableObject::Listener::objectQueryLights (say if you want to use it to implement this method, and use the pointer as a return value) and for reading it's only accurate as at the last frame.

◆ _getManager()

SceneManager * Ogre::MovableObject::_getManager ( void  ) const
inlineinherited

Get the manager of this object, if any (internal use only)

◆ _getObjectData()

ObjectData & Ogre::MovableObject::_getObjectData ( )
inlineinherited

Returns a direct access to the ObjectData state.

◆ _getParentNodeFullTransform()

const Matrix4 & Ogre::MovableObject::_getParentNodeFullTransform ( void  ) const
inherited

Returns the full transformation of the parent sceneNode or the attachingPoint node.

◆ _notifyAttached()

virtual void Ogre::MovableObject::_notifyAttached ( Node parent)
virtualinherited

Internal method called to notify the object that it has been attached to a node.

Reimplemented in Ogre::v1::Entity, Ogre::v1::InstancedEntity, and Ogre::ParticleSystem.

◆ _notifyManager()

void Ogre::MovableObject::_notifyManager ( SceneManager man)
inlineinherited

Notify the object of it's manager (internal use only)

◆ _notifyParentNodeMemoryChanged()

virtual void Ogre::MovableObject::_notifyParentNodeMemoryChanged ( void  )
inlinevirtualinherited

◆ _notifyStaticDirty()

virtual void Ogre::MovableObject::_notifyStaticDirty ( void  ) const
inlinevirtualinherited

Called by SceneManager when it is telling we're a static MovableObject being dirty Don't call this directly.

See also
SceneManager::notifyStaticDirty

Reimplemented in Ogre::v1::InstancedEntity.

◆ _releaseManualHardwareResources()

virtual void Ogre::MovableObject::_releaseManualHardwareResources ( )
inlinevirtualinherited

Notifies the movable object that hardware resources were lost.

Remarks
Called automatically by RenderSystem if hardware resources were lost and can not be restored using some internal mechanism. Among affected resources are nested shadow renderables, ManualObjects, etc.

Reimplemented in Ogre::v1::BillboardSet, and Ogre::v1::ManualObject.

◆ _restoreManualHardwareResources()

virtual void Ogre::MovableObject::_restoreManualHardwareResources ( )
inlinevirtualinherited

Notifies the movable object that hardware resources should be restored.

Remarks
Called automatically by RenderSystem if hardware resources were lost and can not be restored using some internal mechanism. Among affected resources are nested shadow renderables, ManualObjects, etc.

◆ _setHlmsHashes()

virtual void Ogre::Renderable::_setHlmsHashes ( uint32  hash,
uint32  casterHash 
)
virtualinherited

Manually sets the hlms hashes. Don't call this directly.

Reimplemented in Ogre::SubItem.

◆ _setNullDatablock()

virtual void Ogre::Renderable::_setNullDatablock ( void  )
virtualinherited

Sets the datablock to a null pointer.

Use case: If you will be destroying an HlmsDatablock and all Renderables associated by it; it makes no sense to change the Renderable's datablock to a default one, only to be destroyed immediately after (you pay an unnecessary performance price).

Remarks
Do not attempt to render a Renderable whose datablock has been set to null. It will crash. You can call setDatablock afterwards though. Use at your own risk, hence the _underscore. See http://ogre3d.org/forums/viewtopic.php?f=25&t=91791&p=534476#p534476

Reimplemented in Ogre::v1::BillboardSet, and Ogre::v1::SubEntity.

◆ _timeUpdate()

virtual void Ogre::v1::RibbonTrail::_timeUpdate ( Real  time)
virtual

Perform any fading / width delta required; internal method.

◆ _updateCustomGpuParameter()

virtual void Ogre::Renderable::_updateCustomGpuParameter ( const GpuProgramParameters::AutoConstantEntry constantEntry,
GpuProgramParameters params 
) const
inlinevirtualinherited

Update a custom GpuProgramParameters constant which is derived from information only this Renderable knows.

Remarks
This method allows a Renderable to map in a custom GPU program parameter based on it's own data. This is represented by a GPU auto parameter of ACT_CUSTOM, and to allow there to be more than one of these per Renderable, the 'data' field on the auto parameter will identify which parameter is being updated. The implementation of this method must identify the parameter being updated, and call a 'setConstant' method on the passed in GpuProgramParameters object, using the details provided in the incoming auto constant setting to identify the index at which to set the parameter.
You do not need to override this method if you're using the standard sets of data associated with the Renderable as provided by setCustomParameter and getCustomParameter. By default, the implementation will map from the value indexed by the 'constantEntry.data' parameter to a value previously set by setCustomParameter. But custom Renderables are free to override this if they want, in any case.
Parameters
constantEntryThe auto constant entry referring to the parameter being updated
paramsThe parameters object which this method should call to set the updated parameters.

Reimplemented in Ogre::v1::SubEntity.

◆ _updateRenderQueue()

void Ogre::v1::BillboardChain::_updateRenderQueue ( RenderQueue queue,
Camera camera,
const Camera lodCamera 
)
virtualinherited

Internal method by which the movable object must add Renderable subclass instances to the rendering queue.

Remarks
The engine will call this method when this object is to be rendered. The object must then create one or more Renderable subclass instances which it places on the passed in Queue for rendering.

Reimplemented from Ogre::MovableObject.

◆ addChainElement()

virtual void Ogre::v1::BillboardChain::addChainElement ( size_t  chainIndex,
const Element billboardChainElement 
)
virtualinherited

Add an element to the 'head' of a chain.

Remarks
If this causes the number of elements to exceed the maximum elements per chain, the last element in the chain (the 'tail') will be removed to allow the additional element to be added.
Parameters
chainIndexThe index of the chain
billboardChainElementThe details to add

◆ addNode()

virtual void Ogre::v1::RibbonTrail::addNode ( Node n)
virtual

Add a node to be tracked.

Parameters
nThe node that will be tracked.

◆ addPoseWeight()

void Ogre::Renderable::addPoseWeight ( size_t  index,
float  w 
)
inherited

◆ addQueryFlags()

void Ogre::MovableObject::addQueryFlags ( uint32  flags)
inlineinherited

As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object.

◆ addVisibilityFlags()

void Ogre::MovableObject::addVisibilityFlags ( uint32  flags)
inlineinherited

As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object.

◆ buildLightList()

static void Ogre::MovableObject::buildLightList ( const size_t  numNodes,
ObjectData  t,
const LightListInfo globalLightList 
)
staticinherited

@See SceneManager::buildLightList

Remarks
We don't pass by reference on purpose (avoid implicit aliasing)
Parameters
globalLightListList of lights already culled against all possible frustums and reorganized contiguously for SoA

◆ calculateCastersBox()

static void Ogre::MovableObject::calculateCastersBox ( const size_t  numNodes,
ObjectData  t,
uint32  sceneVisibilityFlags,
AxisAlignedBox outBox 
)
staticinherited

◆ clearAllChains()

virtual void Ogre::v1::BillboardChain::clearAllChains ( void  )
virtualinherited

Remove all elements from all chains (but leave the chains themselves intact).

◆ clearChain()

void Ogre::v1::RibbonTrail::clearChain ( size_t  chainIndex)
virtual

Remove all elements of a given chain (but leave the chain intact).

Reimplemented from Ogre::v1::BillboardChain.

◆ createAnimableValue()

virtual AnimableValuePtr Ogre::AnimableObject::createAnimableValue ( const String valueName)
inlinevirtualinherited

Create a reference-counted AnimableValuePtr for the named value.

Remarks
You can use the returned object to animate a value on this object, using AnimationTrack. Subclasses must override this if they wish to support animation of their values.

Reimplemented in Ogre::Light.

References Ogre::Exception::ERR_ITEM_NOT_FOUND, and OGRE_EXCEPT.

◆ cullFrustum()

static void Ogre::MovableObject::cullFrustum ( const size_t  numNodes,
ObjectData  t,
const Camera frustum,
uint32  sceneVisibilityFlags,
MovableObjectArray outCulledObjects,
const Camera lodCamera 
)
staticinherited

◆ cullLights()

static void Ogre::MovableObject::cullLights ( const size_t  numNodes,
ObjectData  t,
LightListInfo outGlobalLightList,
const FrustumVec frustums,
const FrustumVec cubemapFrustums 
)
staticinherited

@See SceneManager::cullLights &

See also
MovableObject::cullFrustum Produces the global list of visible lights that is needed in buildLightList
Remarks
We don't pass ObjectData by reference on purpose (avoid implicit aliasing) It's declared here because all affected elements are from MovableObject IMPORTANT: It is assumed that all objects in ObjectData are Lights.
Parameters
outGlobalLightListOutput, a list of lights, contiguously placed
frustumsAn array of all frustums we need to check against
cubemapFrustumsAn array of all frustums that are used at least once as cubemaps (@See SceneManager::createCamera)

◆ detachFromParent()

void Ogre::MovableObject::detachFromParent ( void  )
inherited

Detaches an object from a parent SceneNode if attached.

◆ getAnimableValueNames()

const StringVector & Ogre::AnimableObject::getAnimableValueNames ( void  ) const
inlineinherited

Gets a list of animable value names for this object.

References Ogre::Exception::ERR_ITEM_NOT_FOUND, and OGRE_EXCEPT.

◆ getBoundingBox()

const AxisAlignedBox & Ogre::v1::BillboardChain::getBoundingBox ( void  ) const
inherited

◆ getCachedDistanceToCamera()

RealAsUint Ogre::MovableObject::getCachedDistanceToCamera ( void  ) const
inlineinherited

Returns the distance to camera as calculated in @cullFrustum.

◆ getCachedDistanceToCameraAsReal()

Real Ogre::MovableObject::getCachedDistanceToCameraAsReal ( void  ) const
inlineinherited

Returns the distance to camera as calculated in @cullFrustum.

◆ getCastShadows()

bool Ogre::MovableObject::getCastShadows ( void  ) const
inlineinherited

Returns whether shadow casting is enabled for this object.

◆ getCastsShadows()

virtual bool Ogre::Renderable::getCastsShadows ( void  ) const
inlinevirtualinherited

Method which reports whether this renderable would normally cast a shadow.

Remarks
Subclasses should override this if they could have been used to generate a shadow.

Reimplemented in Ogre::v1::StaticGeometry::GeometryBucket, Ogre::v1::SubEntity, Ogre::SubItem, Ogre::WireAabb, and Ogre::ManualObject::ManualObjectSection.

◆ getChainElement()

virtual const Element & Ogre::v1::BillboardChain::getChainElement ( size_t  chainIndex,
size_t  elementIndex 
) const
virtualinherited

Get the detail of a chain element.

Parameters
chainIndexThe index of the chain
elementIndexThe element index within the chain, measured from the 'head' of the chain

◆ getChainIndexForNode()

virtual size_t Ogre::v1::RibbonTrail::getChainIndexForNode ( const Node n)
virtual

Get the chain index for a given Node being tracked.

◆ getColourChange()

virtual const ColourValue & Ogre::v1::RibbonTrail::getColourChange ( size_t  chainIndex) const
virtual

Get the per-second fading amount.

◆ getCurrentMaterialLod()

uint8 Ogre::Renderable::getCurrentMaterialLod ( void  ) const
inlineinherited

◆ getCurrentMeshLod()

unsigned char Ogre::MovableObject::getCurrentMeshLod ( void  ) const
inlineinherited

◆ getCustomParameter()

const Vector4 & Ogre::Renderable::getCustomParameter ( size_t  index) const
inlineinherited

Gets the custom value associated with this Renderable at the given index.

Parameters
indexIndex of the parameter to retrieve.
See also
setCustomParameter for full details.

References Ogre::Exception::ERR_ITEM_NOT_FOUND, and OGRE_EXCEPT.

◆ getCustomParameters()

const CustomParameterMap & Ogre::Renderable::getCustomParameters ( void  ) const
inlineinherited

◆ getDatablock()

HlmsDatablock * Ogre::Renderable::getDatablock ( void  ) const
inlineinherited

◆ getDefaultQueryFlags()

static uint32 Ogre::MovableObject::getDefaultQueryFlags ( )
inlinestaticinherited

Get the default query flags for all future MovableObject instances.

◆ getDefaultVisibilityFlags()

static uint32 Ogre::MovableObject::getDefaultVisibilityFlags ( )
inlinestaticinherited

Get the default visibility flags for all future MovableObject instances.

◆ getDynamic()

virtual bool Ogre::v1::BillboardChain::getDynamic ( void  ) const
inlinevirtualinherited

Gets whether or not the buffers created for this object are suitable for dynamic alteration.

◆ getHlmsCasterHash()

uint32 Ogre::Renderable::getHlmsCasterHash ( void  ) const
inlineinherited

◆ getHlmsHash()

uint32 Ogre::Renderable::getHlmsHash ( void  ) const
inlineinherited

◆ getId()

IdType Ogre::IdObject::getId ( ) const
inlineinherited

Get the unique id of this object.

◆ getInitialColour()

virtual const ColourValue & Ogre::v1::RibbonTrail::getInitialColour ( size_t  chainIndex) const
virtual

Get the starting ribbon colour.

◆ getInitialWidth()

virtual Real Ogre::v1::RibbonTrail::getInitialWidth ( size_t  chainIndex) const
virtual

Get the starting ribbon width in world units.

◆ getLightMask()

uint32 Ogre::MovableObject::getLightMask ( ) const
inlineinherited

Get a bitwise mask which will filter the lights affecting this object.

Remarks
By default, this mask is fully set meaning all lights will affect this object

◆ getLights()

const LightList & Ogre::v1::BillboardChain::getLights ( void  ) const
virtualinherited

Gets a list of lights, ordered relative to how close they are to this renderable.

Remarks
Directional lights, which have no position, will always be first on this list.

Implements Ogre::Renderable.

◆ getListener()

Listener * Ogre::MovableObject::getListener ( void  ) const
inlineinherited

Gets the current listener for this object.

◆ getLocalAabb()

Aabb Ogre::MovableObject::getLocalAabb ( void  ) const
inherited

Retrieves the local axis-aligned bounding box for this object.

Remarks
This bounding box is in local coordinates.

◆ getLocalRadius()

float Ogre::MovableObject::getLocalRadius ( void  ) const
inherited

See getLocalAabb and getWorldRadius.

◆ getMaterial()

MaterialPtr Ogre::Renderable::getMaterial ( void  ) const
inherited

Retrieves the material this renderable object uses.

It may be null if it's using the HLMS. @See getDatablock

◆ getMaxChainElements()

virtual size_t Ogre::v1::BillboardChain::getMaxChainElements ( void  ) const
inlinevirtualinherited

Get the maximum number of chain elements per chain.

◆ getMovableType()

const String & Ogre::v1::RibbonTrail::getMovableType ( void  ) const
virtual

Overridden from MovableObject.

Reimplemented from Ogre::v1::BillboardChain.

◆ getName()

const String & Ogre::MovableObject::getName ( void  ) const
inlineinherited

Returns the name of this object.

◆ getNodeIterator()

virtual NodeIterator Ogre::v1::RibbonTrail::getNodeIterator ( void  ) const
virtual

Get an iterator over the nodes which are being tracked.

◆ getNumberOfChains()

virtual size_t Ogre::v1::BillboardChain::getNumberOfChains ( void  ) const
inlinevirtualinherited

Get the number of chain segments (this class can render multiple chains at once using the same material).

◆ getNumChainElements()

virtual size_t Ogre::v1::BillboardChain::getNumChainElements ( size_t  chainIndex) const
virtualinherited

Returns the number of chain elements.

◆ getNumPoses()

unsigned short Ogre::Renderable::getNumPoses ( void  ) const
inherited

◆ getNumWorldTransforms()

virtual unsigned short Ogre::Renderable::getNumWorldTransforms ( void  ) const
inlinevirtualinherited

Returns the number of world transform matrices this renderable requires.

Remarks
When a renderable uses vertex blending, it uses multiple world matrices instead of a single one. Each vertex sent to the pipeline can reference one or more matrices in this list with given weights. If a renderable does not use vertex blending this method returns 1, which is the default for simplicity.

Reimplemented in Ogre::v1::BorderRenderable, Ogre::v1::InstanceBatchHW, Ogre::v1::InstanceBatchShader, Ogre::v1::BaseInstanceBatchVTF, and Ogre::v1::SubEntity.

◆ getOtherTextureCoordRange()

virtual const Real * Ogre::v1::BillboardChain::getOtherTextureCoordRange ( void  ) const
inlinevirtualinherited

Get the range of the texture coordinates generated across the width of the chain elements.

◆ getParentNode()

Node * Ogre::MovableObject::getParentNode ( void  ) const
inlineinherited

Returns the node to which this object is attached.

◆ getParentSceneNode()

SceneNode * Ogre::MovableObject::getParentSceneNode ( void  ) const
inlineinherited

◆ getPolygonModeOverrideable()

virtual bool Ogre::Renderable::getPolygonModeOverrideable ( void  ) const
inlinevirtualinherited

Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.

Reimplemented in Ogre::v1::BorderRenderable.

Referenced by Ogre::v1::BorderRenderable::getPolygonModeOverrideable().

◆ getPoseHalfPrecision()

bool Ogre::Renderable::getPoseHalfPrecision ( ) const
inherited

◆ getPoseNormals()

bool Ogre::Renderable::getPoseNormals ( ) const
inherited

◆ getPoseTexBuffer()

TexBufferPacked * Ogre::Renderable::getPoseTexBuffer ( ) const
inherited

◆ getPoseWeight()

float Ogre::Renderable::getPoseWeight ( size_t  index) const
inherited

◆ getPoseWeights()

float * Ogre::Renderable::getPoseWeights ( ) const
inherited

◆ getQueryFlags()

uint32 Ogre::MovableObject::getQueryFlags ( void  ) const
inlineinherited

Returns the query flags relevant for this object.

◆ getRenderingDistance()

Real Ogre::MovableObject::getRenderingDistance ( void  ) const
inlineinherited

Gets the distance at which batches are no longer rendered.

◆ getRenderingMinPixelSize()

Real Ogre::MovableObject::getRenderingMinPixelSize ( ) const
inlineinherited

Returns the minimum pixel size an object needs to be in both screen axes in order to be rendered.

◆ getRenderOperation()

void Ogre::v1::BillboardChain::getRenderOperation ( RenderOperation op,
bool  casterPass 
)
virtualinherited

Gets the render operation required to send this object to the frame buffer.

Implements Ogre::Renderable.

◆ getRenderQueueGroup()

uint8 Ogre::MovableObject::getRenderQueueGroup ( void  ) const
inlineinherited

Gets the queue group for this entity, see setRenderQueueGroup for full details.

◆ getRenderQueueSubGroup()

uint8 Ogre::Renderable::getRenderQueueSubGroup ( void  ) const
inlineinherited

◆ getShadowRenderingDistance()

Real Ogre::MovableObject::getShadowRenderingDistance ( void  ) const
inlineinherited

Gets the distance at which batches are no longer casting shadows.

◆ getSkeletonInstance()

SkeletonInstance * Ogre::MovableObject::getSkeletonInstance ( void  ) const
inlineinherited

◆ getSquaredViewDepth()

Real Ogre::v1::BillboardChain::getSquaredViewDepth ( const Camera cam) const
inherited

◆ getTextureCoordDirection()

virtual TexCoordDirection Ogre::v1::BillboardChain::getTextureCoordDirection ( void  )
inlinevirtualinherited

Gets the direction in which texture coords specified on each element are deemed to run.

◆ getTrailLength()

virtual Real Ogre::v1::RibbonTrail::getTrailLength ( void  ) const
inlinevirtual

Get the length of the trail.

◆ getUseIdentityProjection()

bool Ogre::Renderable::getUseIdentityProjection ( void  ) const
inlineinherited

Returns whether or not to use an 'identity' projection.

Remarks
Usually Renderable objects will use a projection matrix as determined by the active camera. However, if they want they can cancel this out and use an identity projection, which effectively projects in 2D using a {-1, 1} view space. Useful for overlay rendering. Normal renderables need not change this.
See also
Renderable::setUseIdentityProjection

◆ getUseIdentityView()

bool Ogre::Renderable::getUseIdentityView ( void  ) const
inlineinherited

Returns whether or not to use an 'identity' view.

Remarks
Usually Renderable objects will use a view matrix as determined by the active camera. However, if they want they can cancel this out and use an identity matrix, which means all geometry is assumed to be relative to camera space already. Useful for overlay rendering. Normal renderables need not change this.
See also
Renderable::setUseIdentityView

◆ getUseIdentityViewProjMatrixIsDynamic()

virtual bool Ogre::Renderable::getUseIdentityViewProjMatrixIsDynamic ( void  ) const
inlinevirtualinherited

Returns whether the Hlms implementation should evaluate getUseIdentityProjection per object at runtime, or if it can assume the Renderable will remain with the same setting until the datablock is flushed (performance optimization)

Remarks
Hlms implementations may ignore this setting (e.g. assume always true or always false) or even not support identity matrix overrides at all. For example currently Unlit supports them all, but will assume this returns always true if getUseIdentityWorldMatrix returns false.

◆ getUseIdentityWorldMatrix()

virtual bool Ogre::Renderable::getUseIdentityWorldMatrix ( void  ) const
inlinevirtualinherited

Returns whether the world matrix is an identity matrix.

Remarks
It is up to the Hlms implementation whether to honour this request. Take in mind changes of this value at runtime may not be seen until the datablock is flushed. It is implemented as a virtual call because this functionality isn't required very often (hence we save per-Renderable space for those that don't use it) and this function will be called at creation time to use a different shader; not during rendering time per Renderable.

Reimplemented in Ogre::v1::BillboardSet.

◆ getUserAny()

virtual OGRE_DEPRECATED const Any & Ogre::Renderable::getUserAny ( void  ) const
inlinevirtualinherited
Deprecated:
use UserObjectBindings::getUserAny via getUserObjectBindings() instead. Retrieves the custom user value associated with this object.

Reimplemented in Ogre::v1::InstanceBatch.

◆ getUserObjectBindings() [1/4]

UserObjectBindings & Ogre::MovableObject::getUserObjectBindings ( )
inlineinherited

Return an instance of user objects binding associated with this class.

You can use it to associate one or more custom objects with this class instance.

See also
UserObjectBindings::setUserAny.

◆ getUserObjectBindings() [2/4]

UserObjectBindings & Ogre::Renderable::getUserObjectBindings ( )
inlineinherited

Return an instance of user objects binding associated with this class.

You can use it to associate one or more custom objects with this class instance.

See also
UserObjectBindings::setUserAny.

◆ getUserObjectBindings() [3/4]

const UserObjectBindings & Ogre::MovableObject::getUserObjectBindings ( ) const
inlineinherited

Return an instance of user objects binding associated with this class.

You can use it to associate one or more custom objects with this class instance.

See also
UserObjectBindings::setUserAny.

◆ getUserObjectBindings() [4/4]

const UserObjectBindings & Ogre::Renderable::getUserObjectBindings ( ) const
inlineinherited

Return an instance of user objects binding associated with this class.

You can use it to associate one or more custom objects with this class instance.

See also
UserObjectBindings::setUserAny.

◆ getUseTextureCoords()

virtual bool Ogre::v1::BillboardChain::getUseTextureCoords ( void  ) const
inlinevirtualinherited

Gets whether texture coordinate information should be included in the final buffers generated.

◆ getUseVertexColours()

virtual bool Ogre::v1::BillboardChain::getUseVertexColours ( void  ) const
inlinevirtualinherited

Gets whether vertex colour information should be included in the final buffers generated.

◆ getVaos()

const VertexArrayObjectArray & Ogre::Renderable::getVaos ( VertexPass  vertexPass) const
inlineinherited

◆ getVisibilityFlags()

uint32 Ogre::MovableObject::getVisibilityFlags ( void  ) const
inlineinherited

Returns the visibility flags relevant for this object.

Reserved visibility flags are not returned.

◆ getVisible()

bool Ogre::MovableObject::getVisible ( void  ) const
inlineinherited

Gets this object whether to be visible or not, if it has a renderable component.

Remarks
Returns the value set by MovableObject::setVisible only.

◆ getWidthChange()

virtual Real Ogre::v1::RibbonTrail::getWidthChange ( size_t  chainIndex) const
virtual

Get the change in ribbon width per second.

◆ getWorldAabb()

Aabb Ogre::MovableObject::getWorldAabb ( ) const
inherited

Gets the axis aligned box in world space.

Remarks
Assumes the caches are already updated. Will trigger an assert otherwise. @See getWorldAabbUpdated if you need the update process to be guaranteed

◆ getWorldAabbUpdated()

Aabb Ogre::MovableObject::getWorldAabbUpdated ( )
inherited

Gets the axis aligned box in world space.

Remarks
Unlike getWorldAabb, this function guarantees the cache stays up to date. It is STRONGLY advised against calling this function for a large number of MovableObject. Refactor your queries so that they happen after SceneManager::updateAllBounds() has been called

◆ getWorldRadius()

float Ogre::MovableObject::getWorldRadius ( ) const
inherited

Gets the bounding Radius scaled by max( scale.x, scale.y, scale.z ).

Remarks
Assumes the caches are already updated. Will trigger an assert otherwise. @See getWorldRadiusUpdated if you need the update process to be guaranteed

◆ getWorldRadiusUpdated()

float Ogre::MovableObject::getWorldRadiusUpdated ( )
inherited

Gets the bounding Radius scaled by max( scale.x, scale.y, scale.z ).

Remarks
Unlike getWorldRadius, this function guarantees the cache stays up to date. It is STRONGLY advised against calling this function for a large number of MovableObject. Refactor your queries so that they happen after SceneManager::updateAllBounds() has been called

◆ getWorldTransforms()

void Ogre::v1::BillboardChain::getWorldTransforms ( Matrix4 xform) const
virtualinherited

Gets the world transform matrix / matrices for this renderable object.

Remarks
If the object has any derived transforms, these are expected to be up to date as long as all the SceneNode structures have been updated before this is called.
This method will populate transform with 1 matrix if it does not use vertex blending. If it does use vertex blending it will fill the passed in pointer with an array of matrices, the length being the value returned from getNumWorldTransforms.
Note
Internal Ogre never supports non-affine matrix for world transform matrix/matrices, the behavior is undefined if returns non-affine matrix here.
See also
Matrix4::isAffine.

Implements Ogre::Renderable.

◆ hasCustomParameter()

bool Ogre::Renderable::hasCustomParameter ( size_t  index) const
inlineinherited

Checks whether a custom value is associated with this Renderable at the given index.

Parameters
indexIndex of the parameter to check for existence.
See also
setCustomParameter for full details.

◆ hasSkeletonAnimation()

bool Ogre::Renderable::hasSkeletonAnimation ( void  ) const
inlineinherited

◆ instanceBatchCullFrustumThreaded()

virtual void Ogre::MovableObject::instanceBatchCullFrustumThreaded ( const Frustum frustum,
const Camera lodCamera,
uint32  combinedVisibilityFlags 
)
inlinevirtualinherited

@See InstancingTheadedCullingMethod,

See also
InstanceBatch::instanceBatchCullFrustumThreaded

◆ isAttached()

bool Ogre::MovableObject::isAttached ( void  ) const
inlineinherited

Returns true if this object is attached to a Node.

◆ isStatic()

bool Ogre::MovableObject::isStatic ( ) const
inherited

Checks whether this MovableObject is static. @See setStatic.

◆ isVisible()

bool Ogre::MovableObject::isVisible ( void  ) const
inherited

Returns whether or not this object is supposed to be visible or not.

Remarks
Takes into account visibility flags and the setVisible, but not rendering distance.

◆ nodeAttached()

virtual void Ogre::Node::Listener::nodeAttached ( const Node )
inlinevirtualinherited

Node has been attached to a parent.

◆ nodeDestroyed()

void Ogre::v1::RibbonTrail::nodeDestroyed ( const Node node)
virtual

◆ nodeDetached()

virtual void Ogre::Node::Listener::nodeDetached ( const Node )
inlinevirtualinherited

Node has been detached from a parent.

◆ nodeUpdated()

void Ogre::v1::RibbonTrail::nodeUpdated ( const Node node)
virtual

◆ operator delete() [1/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void ptr)
inlineinherited

◆ operator delete() [2/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void ptr,
const char ,
int  ,
const char  
)
inlineinherited

◆ operator delete() [3/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void ptr,
void  
)
inlineinherited

◆ operator delete[]() [1/2]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void ptr)
inlineinherited

◆ operator delete[]() [2/2]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void ptr,
const char ,
int  ,
const char  
)
inlineinherited

◆ operator new() [1/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz)
inlineinherited

◆ operator new() [2/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
const char file,
int  line,
const char func 
)
inlineinherited

operator new, with debug line info

◆ operator new() [3/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
void ptr 
)
inlineinherited

placement operator new

◆ operator new[]() [1/2]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz)
inlineinherited

◆ operator new[]() [2/2]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz,
const char file,
int  line,
const char func 
)
inlineinherited

array operator new, with debug line info

◆ operator()() [1/2]

bool Ogre::IdObject::operator() ( const IdObject left,
const IdObject right 
)
inlineinherited

◆ operator()() [2/2]

bool Ogre::IdObject::operator() ( const IdObject left,
const IdObject right 
)
inlineinherited

◆ postRender()

virtual void Ogre::Renderable::postRender ( SceneManager sm,
RenderSystem rsys 
)
inlinevirtualinherited

Called immediately after the Renderable has been rendered.

◆ preRender()

virtual bool Ogre::v1::BillboardChain::preRender ( SceneManager sm,
RenderSystem rsys 
)
virtualinherited

Called just prior to the Renderable being rendered.

Remarks
OGRE is a queued renderer, so the actual render commands are executed at a later time than the point at which an object is discovered to be visible. This allows ordering & grouping of renders without the discovery process having to be aware of it. It also means OGRE uses declarative render information rather than immediate mode rendering - this is very useful in that certain effects and processes can automatically be applied to a wide range of scenes, but the downside is that special cases are more difficult to handle, because there is not the declared state to cope with it.
This method allows a Renderable to do something special at the actual point of rendering if it wishes to. When this method is called, all the material render state as declared by this Renderable has already been set, all that is left to do is to bind the buffers and perform the render. The Renderable may modify render state itself if it wants to (and restore it in the postRender call) before the automated render happens, or by returning 'false' from this method can actually suppress the automatic render and perform one of its own.
Returns
true if the automatic render should proceed, false to skip it on the assumption that the Renderable has done it manually.

Reimplemented from Ogre::Renderable.

◆ queryLights()

const LightList & Ogre::MovableObject::queryLights ( void  ) const
inlineinherited

Gets a list of lights, ordered relative to how close they are to this movable object.

Remarks
The lights are filled in
See also
buildLightList
Returns
The list of lights use to lighting this object.

◆ removeChainElement()

virtual void Ogre::v1::BillboardChain::removeChainElement ( size_t  chainIndex)
virtualinherited

Remove an element from the 'tail' of a chain.

Parameters
chainIndexThe index of the chain

◆ removeCustomParameter()

void Ogre::Renderable::removeCustomParameter ( size_t  index)
inlineinherited

Removes a custom value which is associated with this Renderable at the given index.

Parameters
indexIndex of the parameter to remove.
See also
setCustomParameter for full details.

◆ removeNode()

virtual void Ogre::v1::RibbonTrail::removeNode ( Node n)
virtual

Remove tracking on a given node.

◆ removeQueryFlags()

void Ogre::MovableObject::removeQueryFlags ( uint32  flags)
inlineinherited

As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object.

◆ removeVisibilityFlags()

void Ogre::MovableObject::removeVisibilityFlags ( uint32  flags)
inlineinherited

As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on this object.

◆ setCastShadows()

void Ogre::MovableObject::setCastShadows ( bool  enabled)
inlineinherited

Sets whether or not this object will cast shadows.

Remarks
This setting simply allows you to turn on/off shadows for a given object. An object will not cast shadows unless the scene supports it in any case (see SceneManager::setShadowTechnique), and also the material which is in use must also have shadow casting enabled. By default all entities cast shadows. If, however, for some reason you wish to disable this for a single object then you can do so using this method.
Note
This method normally refers to objects which block the light, but since Light is also a subclass of MovableObject, in that context it means whether the light causes shadows itself.

◆ setColourChange() [1/2]

virtual void Ogre::v1::RibbonTrail::setColourChange ( size_t  chainIndex,
const ColourValue valuePerSecond 
)
virtual

Enables / disables fading the trail using colour.

Parameters
chainIndexThe index of the chain
valuePerSecondThe amount to subtract from colour each second

◆ setColourChange() [2/2]

virtual void Ogre::v1::RibbonTrail::setColourChange ( size_t  chainIndex,
Real  r,
Real  g,
Real  b,
Real  a 
)
virtual

Enables / disables fading the trail using colour.

Parameters
chainIndexThe index of the chain
r,g,b,aThe amount to subtract from each colour channel per second

◆ setCustomParameter()

void Ogre::Renderable::setCustomParameter ( size_t  index,
const Vector4 value 
)
inlineinherited

Sets a custom parameter for this Renderable, which may be used to drive calculations for this specific Renderable, like GPU program parameters.

Remarks
Calling this method simply associates a numeric index with a 4-dimensional value for this specific Renderable. This is most useful if the material which this Renderable uses a vertex or fragment program, and has an ACT_CUSTOM parameter entry. This parameter entry can refer to the index you specify as part of this call, thereby mapping a custom parameter for this renderable to a program parameter.
Parameters
indexThe index with which to associate the value. Note that this does not have to start at 0, and can include gaps. It also has no direct correlation with a GPU program parameter index - the mapping between the two is performed by the ACT_CUSTOM entry, if that is used.
valueThe value to associate.

◆ setDatablock() [1/2]

virtual void Ogre::Renderable::setDatablock ( HlmsDatablock datablock)
virtualinherited

Assigns a datablock (i.e. HLMS Material) to this renderable.

Reimplemented in Ogre::v1::BillboardSet, Ogre::v1::SubEntity, and Ogre::v1::SubEntity.

◆ setDatablock() [2/2]

void Ogre::Renderable::setDatablock ( IdString  datablockName)
inherited

Assigns a datablock (i.e.

HLMS material) based on its unique name.

Remarks
An null IdString() is valid, it will use the default material

◆ setDatablockOrMaterialName()

void Ogre::Renderable::setDatablockOrMaterialName ( String  materialName,
String  groupName 
)
inherited

First tries to see if an HLMS datablock exist with the given name, if not, tries to search among low level materials.

◆ setDefaultQueryFlags()

static void Ogre::MovableObject::setDefaultQueryFlags ( uint32  flags)
inlinestaticinherited

Set the default query flags for all future MovableObject instances.

◆ setDefaultVisibilityFlags()

static void Ogre::MovableObject::setDefaultVisibilityFlags ( uint32  flags)
inlinestaticinherited

Set the default visibility flags for all future MovableObject instances.

◆ setDynamic()

virtual void Ogre::v1::BillboardChain::setDynamic ( bool  dyn)
virtualinherited

Sets whether or not the buffers created for this object are suitable for dynamic alteration.

◆ setFaceCamera()

void Ogre::v1::BillboardChain::setFaceCamera ( bool  faceCamera,
const Vector3 normalVector = Vector3::UNIT_X 
)
inherited

Sets whether the billboard should always be facing the camera or a custom direction set by each point element.

Remarks
Billboards facing the camera are useful for smoke trails, light beams, etc by simulating a cylinder. However, because of this property, wide trails can cause several artefacts unless the head is properly covered. Therefore, non-camera-facing billboards are much more convenient for leaving big trails of movement from thin objects, for example a sword swing as seen in many fighting games.
Parameters
faceCameraTrue to be always facing the camera (Default value: True)
normalVectorOnly used when faceCamera == false. Must be a non-zero vector. This vector is the "point of reference" for each point orientation. For example, if normalVector is Vector3::UNIT_Z, and the point's orientation is an identity matrix, the segment corresponding to that point will be facing towards UNIT_Z This vector is internally normalized.

◆ setInitialColour() [1/2]

virtual void Ogre::v1::RibbonTrail::setInitialColour ( size_t  chainIndex,
const ColourValue col 
)
virtual

Set the starting ribbon colour for a given segment.

Parameters
chainIndexThe index of the chain
colThe initial colour
Note
Only used if this instance is using vertex colours.

◆ setInitialColour() [2/2]

virtual void Ogre::v1::RibbonTrail::setInitialColour ( size_t  chainIndex,
Real  r,
Real  g,
Real  b,
Real  a = 1.0 
)
virtual

Set the starting ribbon colour.

Parameters
chainIndexThe index of the chain
r,b,g,aThe initial colour
Note
Only used if this instance is using vertex colours.

◆ setInitialWidth()

virtual void Ogre::v1::RibbonTrail::setInitialWidth ( size_t  chainIndex,
Real  width 
)
virtual

Set the starting ribbon width in world units.

Parameters
chainIndexThe index of the chain
widthThe initial width of the ribbon

◆ setLightMask()

void Ogre::MovableObject::setLightMask ( uint32  lightMask)
inlineinherited

Set a bitwise mask which will filter the lights affecting this object.

Remarks
This mask will be compared against the mask held against Light to determine if a light should affect a given object. By default, this mask is fully set meaning all lights will affect this object

◆ setListener()

void Ogre::MovableObject::setListener ( Listener listener)
inlineinherited

Sets a listener for this object.

Remarks
Note for size and performance reasons only one listener per object is allowed.

◆ setLocalAabb()

void Ogre::MovableObject::setLocalAabb ( const Aabb  box)
inherited

Sets the local axis-aligned bounding box for this object.

Remarks
This bounding box is in local coordinates.

◆ setMaterial()

virtual void Ogre::Renderable::setMaterial ( const MaterialPtr material)
virtualinherited

Sets the given material. Overrides HLMS materials.

Reimplemented in Ogre::v1::SimpleRenderable, Ogre::v1::BillboardSet, and Ogre::v1::SubEntity.

◆ setMaterialName()

void Ogre::Renderable::setMaterialName ( const String name,
const String groupName 
)
inherited

Sets the name of the Material to be used. Prefer using HLMS @See setHlms.

◆ setMaxChainElements()

void Ogre::v1::RibbonTrail::setMaxChainElements ( size_t  maxElements)
virtual

Set the maximum number of chain elements per chain.

Reimplemented from Ogre::v1::BillboardChain.

◆ setName()

void Ogre::MovableObject::setName ( const String name)
inlineinherited

Sets a custom name for this node.

Doesn't have to be unique

◆ setNumberOfChains()

void Ogre::v1::RibbonTrail::setNumberOfChains ( size_t  numChains)
virtual

Set the number of chain segments (this class can render multiple chains at once using the same material).

Reimplemented from Ogre::v1::BillboardChain.

◆ setOtherTextureCoordRange()

virtual void Ogre::v1::BillboardChain::setOtherTextureCoordRange ( Real  start,
Real  end 
)
virtualinherited

Set the range of the texture coordinates generated across the width of the chain elements.

Parameters
startStart coordinate, default 0.0
endEnd coordinate, default 1.0

◆ setPolygonModeOverrideable()

virtual void Ogre::Renderable::setPolygonModeOverrideable ( bool  override)
inlinevirtualinherited

Sets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.

Parameters
overridetrue means that a lower camera detail will override this renderables detail level, false means it won't.

◆ setPoseWeight()

void Ogre::Renderable::setPoseWeight ( size_t  index,
float  w 
)
inherited

◆ setQueryFlags()

void Ogre::MovableObject::setQueryFlags ( uint32  flags)
inlineinherited

Sets the query flags for this object.

Remarks
When performing a scene query, this object will be included or excluded according to flags on the object and flags on the query. This is a bitwise value, so only when a bit on these flags is set, will it be included in a query asking for that flag. The meaning of the bits is application-specific.

◆ setRenderingDistance()

void Ogre::MovableObject::setRenderingDistance ( Real  dist)
inlineinherited

Sets the distance at which the object is no longer rendered.

Parameters
distDistance beyond which the object will not be rendered (the default is FLT_MAX, which means objects are always rendered). Values equal or below zero will be ignored, and cause an assertion in debug mode.

◆ setRenderingMinPixelSize()

void Ogre::MovableObject::setRenderingMinPixelSize ( Real  pixelSize)
inlineinherited

Sets the minimum pixel size an object needs to be in both screen axes in order to be rendered.

Note
Camera::setUseMinPixelSize() needs to be called for this parameter to be used.
Parameters
pixelSizeNumber of minimum pixels (the default is 0, which means objects are always rendered).

◆ setRenderQueueGroup()

virtual void Ogre::MovableObject::setRenderQueueGroup ( uint8  queueID)
virtualinherited

Sets the render queue group this entity will be rendered through.

Remarks
Render queues are grouped to allow you to more tightly control the ordering of rendered objects. If you do not call this method, all Entity objects default to the default queue (RenderQueue::getDefaultQueueGroup), which is fine for most objects. You may want to alter this if you want this entity to always appear in front of other objects, e.g. for a 3D menu system or such.
See RenderQueue for more details.
Parameters
queueIDEnumerated value of the queue group to use. See the enum RenderQueueGroupID for what kind of values can be used here.
Valid render queue ids are between 0 & 254 inclusive

Reimplemented in Ogre::Decal, Ogre::v1::Entity, Ogre::Light, and Ogre::ParticleSystem.

◆ setRenderQueueSubGroup()

void Ogre::Renderable::setRenderQueueSubGroup ( uint8  subGroup)
inlineinherited

Sets the render queue sub group.

Remarks
Within the same RenderQueue ID, you may want to have the renderables to have a specific order (i.e. have a mesh, but the hair submesh with alpha blending needs to be rendered last).
RenderQueue Subgroups are useful for manually sorting objects, just like RenderQueue IDs. However, RenderQueue IDs can also be useful for skipping large number of objects through clever compositing and thus a performance optimization. Subgroups cannot be used for such optimizations.
Parameters
subGroupThe sub group. This value can't exceed OGRE_MAKE_MASK( SubRqIdBits ) @See RenderQueue

◆ setShadowRenderingDistance()

void Ogre::MovableObject::setShadowRenderingDistance ( Real  dist)
inlineinherited

Sets the distance at which the object is no longer casting shadows.

Parameters
distDistance beyond which the object will not cast shadows (the default is FLT_MAX, which means objects are always casting shadows). Values equal or below zero will be ignored, and cause an assertion in debug mode.
Note
ShadowRenderingDistance will be clamped to RenderingDistance value
See also
setRenderingDistance

◆ setStatic()

bool Ogre::MovableObject::setStatic ( bool  bStatic)
inherited

Turns this Node into static or dynamic.

Remarks
Switching between dynamic and static has some overhead and forces to update all static scene when converted to static. So don't do it frequently. Static objects are not updated every frame, only when requested explicitly. Use this feature if you plan to have this object unaltered for a very long times
Note all MovableObjects support switching between static & dynamic after they have been created (eg. InstancedEntity)
Changing this attribute will cause to switch the attribute to our parent node, and as a result, all of its other attached entities. @See Node::setStatic
Returns
True if setStatic made an actual change. False otherwise. Can fail because the object was already static/dynamic, or because switching is not supported

◆ setTextureCoordDirection()

virtual void Ogre::v1::BillboardChain::setTextureCoordDirection ( TexCoordDirection  dir)
virtualinherited

Sets the direction in which texture coords specified on each element are deemed to run along the length of the chain.

Parameters
dirThe direction, default is TCD_U.

◆ setTrailLength()

virtual void Ogre::v1::RibbonTrail::setTrailLength ( Real  len)
virtual

Set the length of the trail.

Remarks
This sets the length of the trail, in world units. It also sets how far apart each segment will be, ie length / max_elements.
Parameters
lenThe length of the trail in world units

◆ setUseIdentityProjection()

void Ogre::Renderable::setUseIdentityProjection ( bool  useIdentityProjection)
inlineinherited

Sets whether or not to use an 'identity' projection.

Remarks
Usually Renderable objects will use a projection matrix as determined by the active camera. However, if they want they can cancel this out and use an identity projection, which effectively projects in 2D using a {-1, 1} view space. Useful for overlay rendering. Normal renderables need not change this. The default is false.
See also
Renderable::getUseIdentityProjection

◆ setUseIdentityView()

void Ogre::Renderable::setUseIdentityView ( bool  useIdentityView)
inlineinherited

Sets whether or not to use an 'identity' view.

Remarks
Usually Renderable objects will use a view matrix as determined by the active camera. However, if they want they can cancel this out and use an identity matrix, which means all geometry is assumed to be relative to camera space already. Useful for overlay rendering. Normal renderables need not change this. The default is false.
See also
Renderable::getUseIdentityView

◆ setUserAny()

virtual OGRE_DEPRECATED void Ogre::Renderable::setUserAny ( const Any anything)
inlinevirtualinherited
Deprecated:
use UserObjectBindings::setUserAny via getUserObjectBindings() instead. Sets any kind of user value on this object.
Remarks
This method allows you to associate any user value you like with this Renderable. This can be a pointer back to one of your own classes for instance.

Reimplemented in Ogre::v1::InstanceBatch.

◆ setUseTextureCoords()

virtual void Ogre::v1::BillboardChain::setUseTextureCoords ( bool  use)
virtualinherited

Sets whether texture coordinate information should be included in the final buffers generated.

Note
You must use either texture coordinates or vertex colour since the vertices have no normals and without one of these there is no source of colour for the vertices.

◆ setUseVertexColours()

virtual void Ogre::v1::BillboardChain::setUseVertexColours ( bool  use)
virtualinherited

Sets whether vertex colour information should be included in the final buffers generated.

Note
You must use either texture coordinates or vertex colour since the vertices have no normals and without one of these there is no source of colour for the vertices.

◆ setVisibilityFlags()

void Ogre::MovableObject::setVisibilityFlags ( uint32  flags)
inlineinherited

Sets the visibility flags for this object.

Remarks
As well as a simple true/false value for visibility (as seen in setVisible), you can also set visibility flags that is applied a binary 'and' with the SceneManager's mask and a compositor node pass. To exclude particular objects from rendering. Changes to reserved visibility flags are ignored (won't take effect).

◆ setVisible()

void Ogre::MovableObject::setVisible ( bool  visible)
inlineinherited

Tells this object whether to be visible or not, if it has a renderable component.

Note
An alternative approach of making an object invisible is to detach it from it's SceneNode, or to remove the SceneNode entirely. Detaching a node means that structurally the scene graph changes. Once this change has taken place, the objects / nodes that have been removed have less overhead to the visibility detection pass than simply making the object invisible, so if you do this and leave the objects out of the tree for a long time, it's faster. However, the act of detaching / reattaching nodes is in itself more expensive than setting an object visibility flag, since in the latter case structural changes are not made. Therefore, small or frequent visibility changes are best done using this method; large or more longer term changes are best done by detaching.

◆ setWidthChange()

virtual void Ogre::v1::RibbonTrail::setWidthChange ( size_t  chainIndex,
Real  widthDeltaPerSecond 
)
virtual

Set the change in ribbon width per second.

Parameters
chainIndexThe index of the chain
widthDeltaPerSecondThe amount the width will reduce by per second

◆ updateAllBounds()

static void Ogre::MovableObject::updateAllBounds ( const size_t  numNodes,
ObjectData  t 
)
staticinherited

@See SceneManager::updateAllBounds

Remarks
We don't pass by reference on purpose (avoid implicit aliasing)

◆ updateChainElement()

virtual void Ogre::v1::BillboardChain::updateChainElement ( size_t  chainIndex,
size_t  elementIndex,
const Element billboardChainElement 
)
virtualinherited

Update the details of an existing chain element.

Parameters
chainIndexThe index of the chain
elementIndexThe element index within the chain, measured from the 'head' of the chain
billboardChainElementThe details to set

Member Data Documentation

◆ c_DefaultLodMesh

const FastArray<Real> Ogre::MovableObject::c_DefaultLodMesh
staticinherited

◆ mCustomParameter

uint8 Ogre::Renderable::mCustomParameter
inherited

Only valid when using low level materials.

◆ mGlobalIndex

size_t Ogre::MovableObject::mGlobalIndex
inherited

Index in the vector holding this MO reference (could be our parent node, or a global array tracking all movable objecst to avoid memory leaks).

Used for O(1) removals.

Remarks
It is the parent (or our creator) the one that sets this value, not ourselves. Do NOT modify it manually.

◆ mHlmsGlobalIndex

uint32 Ogre::Renderable::mHlmsGlobalIndex
inherited

Index in the vector holding this Rendrable reference in the HLMS datablock.

Used for O(1) removals.

Remarks
Despite being public, Do NOT modify it manually.

◆ mParentIndex

size_t Ogre::MovableObject::mParentIndex
inherited

Index in the vector holding this MO reference (could be our parent node, or a global array tracking all movable objecst to avoid memory leaks).

Used for O(1) removals.

Remarks
It is the parent (or our creator) the one that sets this value, not ourselves. Do NOT modify it manually.

◆ mRenderables

RenderableArray Ogre::MovableObject::mRenderables
inherited

The documentation for this class was generated from the following file: