Cogs.Core
Public Member Functions | Private Attributes | List of all members
Cogs::Core::InstancedMeshRenderBounds Class Referencefinal

Implement custom bounds calculation. More...

#include <InstancedMeshRenderSystem.h>

Inheritance diagram for Cogs::Core::InstancedMeshRenderBounds:
Cogs::Core::IGetBounds

Public Member Functions

 InstancedMeshRenderBounds (InstancedMeshRenderSystem *system)
 
virtual void getBounds (Context *context, Cogs::Geometry::BoundingBox &bounds) override
 Expand bounds including bounds of all entities in this system in world coordinates.
 
virtual bool getBounds (Context *context, const ComponentModel::Entity *entity, Cogs::Geometry::BoundingBox &bounds, bool ignoreVisibility) const override
 
- Public Member Functions inherited from Cogs::Core::IGetBounds
virtual void getBounds (Context *context, Cogs::Geometry::BoundingBox &bounds, float &)
 
virtual void getBounds (Context *context, Cogs::Geometry::BoundingBox &bounds)=0
 Expand bounds including bounds of all entities in this system in world coordinates.
 
virtual bool getBounds (Context *, const ComponentModel::Entity *, Cogs::Geometry::BoundingBox &, bool) const
 

Private Attributes

InstancedMeshRenderSystemsystem = nullptr
 

Detailed Description

Implement custom bounds calculation.

Definition at line 18 of file InstancedMeshRenderSystem.h.

Constructor & Destructor Documentation

◆ InstancedMeshRenderBounds()

Cogs::Core::InstancedMeshRenderBounds::InstancedMeshRenderBounds ( InstancedMeshRenderSystem system)
inlineexplicit

Definition at line 20 of file InstancedMeshRenderSystem.h.

Member Function Documentation

◆ getBounds() [1/2]

void Cogs::Core::InstancedMeshRenderBounds::getBounds ( Context context,
Cogs::Geometry::BoundingBox &  bounds 
)
overridevirtual

Expand bounds including bounds of all entities in this system in world coordinates.

Implements Cogs::Core::IGetBounds.

Definition at line 260 of file InstancedMeshRenderSystem.cpp.

◆ getBounds() [2/2]

bool Cogs::Core::InstancedMeshRenderBounds::getBounds ( Context ,
const ComponentModel::Entity ,
Cogs::Geometry::BoundingBox &  ,
bool   
) const
overridevirtual

Get bounds of an entity in world coordinates. Returns true + updated bounds if bounds could be calculated. No bounds change if not. bool getBounds(Context* context, const ComponentModel::Entity* entity, Cogs::Geometry::BoundingBox& bounds, bool ignoreVisibility) const

Reimplemented from Cogs::Core::IGetBounds.

Definition at line 269 of file InstancedMeshRenderSystem.cpp.

References Cogs::ComponentModel::Component::getComponent(), Cogs::ComponentModel::Entity::getComponent(), and Cogs::Core::SceneComponent::visible.

Member Data Documentation

◆ system

InstancedMeshRenderSystem* Cogs::Core::InstancedMeshRenderBounds::system = nullptr
private

Definition at line 26 of file InstancedMeshRenderSystem.h.


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