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

Needs custom bounds calculation. More...

#include <SeaCurrentsSystem.h>

Inheritance diagram for Cogs::Core::SeaCurrentsBounds:
Cogs::Core::IGetBounds

Public Member Functions

 SeaCurrentsBounds (SeaCurrentsSystem *seaCurrentSystem)
 
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

SeaCurrentsSystemseaCurrentSystem = nullptr
 

Detailed Description

Needs custom bounds calculation.

Definition at line 25 of file SeaCurrentsSystem.h.

Constructor & Destructor Documentation

◆ SeaCurrentsBounds()

Cogs::Core::SeaCurrentsBounds::SeaCurrentsBounds ( SeaCurrentsSystem seaCurrentSystem)
inlineexplicit

Definition at line 27 of file SeaCurrentsSystem.h.

Member Function Documentation

◆ getBounds() [1/2]

void Cogs::Core::SeaCurrentsBounds::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 254 of file SeaCurrentsSystem.cpp.

◆ getBounds() [2/2]

bool Cogs::Core::SeaCurrentsBounds::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 263 of file SeaCurrentsSystem.cpp.

References Cogs::ComponentModel::Entity::getComponent().

Member Data Documentation

◆ seaCurrentSystem

SeaCurrentsSystem* Cogs::Core::SeaCurrentsBounds::seaCurrentSystem = nullptr
private

Definition at line 33 of file SeaCurrentsSystem.h.


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