ezEngine Release 26.3
Loading...
Searching...
No Matches
ezMsgUpdateLocalBounds Struct Reference

#include <UpdateLocalBoundsMessage.h>

Inheritance diagram for ezMsgUpdateLocalBounds:

Public Member Functions

 EZ_DECLARE_MESSAGE_TYPE (ezMsgUpdateLocalBounds, ezMessage)
 
EZ_ALWAYS_INLINE void AddBounds (const ezBoundingBoxSphere &bounds, ezSpatialData::Category category)
 
EZ_ALWAYS_INLINE void SetAlwaysVisible (ezSpatialData::Category category)
 
- Public Member Functions inherited from ezMessage
virtual ezInt32 GetSortingKey () const
 Derived message types can override this method to influence sorting order. Smaller keys are processed first.
 
EZ_ALWAYS_INLINE ezMessageId GetId () const
 Returns the id for this message type.
 
EZ_ALWAYS_INLINE ezUInt16 GetSize () const
 Returns the size in byte of this message.
 
EZ_ALWAYS_INLINE ezUInt64 GetHash () const
 Calculates a hash of the message.
 
virtual void Serialize (ezStreamWriter &inout_stream) const
 Implement this for efficient transmission across process boundaries (e.g. network transfer etc.)
 
virtual void Deserialize (ezStreamReader &inout_stream, ezUInt8 uiTypeVersion)
 
- Public Member Functions inherited from ezReflectedClass
virtual const ezRTTIGetDynamicRTTI () const
 
bool IsInstanceOf (const ezRTTI *pType) const
 Returns whether the type of this instance is of the given type or derived from it.
 
template<typename T >
EZ_ALWAYS_INLINE bool IsInstanceOf () const
 Returns whether the type of this instance is of the given type or derived from it.
 

Friends

class ezGameObject
 

Additional Inherited Members

- Static Public Member Functions inherited from ezMessage
static void PackageForTransfer (const ezMessage &msg, ezStreamWriter &inout_stream)
 Writes msg to stream in such a way that ReplicatePackedMessage() can restore it even in another process.
 
static ezUniquePtr< ezMessageReplicatePackedMessage (ezStreamReader &inout_stream)
 Restores a message that was written by PackageForTransfer()
 
- Static Public Member Functions inherited from ezNoBase
static const ezRTTIGetStaticRTTI ()
 
- Protected Member Functions inherited from ezMessage
 ezMessage (size_t messageSize)
 
- Static Protected Member Functions inherited from ezMessage
static EZ_ALWAYS_INLINE ezMessageId GetNextMsgId ()
 
- Protected Attributes inherited from ezMessage
ezMessageId m_Id
 
ezUInt16 m_uiSize
 
- Static Protected Attributes inherited from ezMessage
static ezMessageId s_NextMsgId = 0
 

Detailed Description

Message sent to components to gather their local bounds for spatial data systems.

Components receive this message to contribute their local bounding volumes to the game object's overall bounds. Multiple components can add their bounds which are accumulated into a single result used for culling and spatial queries.

Member Function Documentation

◆ AddBounds()

EZ_ALWAYS_INLINE void ezMsgUpdateLocalBounds::AddBounds ( const ezBoundingBoxSphere bounds,
ezSpatialData::Category  category 
)
inline

Adds bounding volume to the accumulated local bounds.

Parameters
boundsThe local bounding volume to include
categoryThe spatial data category this bounds belongs to

◆ SetAlwaysVisible()

EZ_ALWAYS_INLINE void ezMsgUpdateLocalBounds::SetAlwaysVisible ( ezSpatialData::Category  category)
inline

Marks the object as always visible, bypassing culling systems.

Once set, this flag cannot be unset during the same message handling, as the message accumulates data from multiple components.

Parameters
categoryThe spatial data category for the always-visible flag

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