Game of Ur 0.3.3
This is a computer adaptation of Game of Ur, written in C++ mainly using SDL and OpenGL.
Loading...
Searching...
No Matches
ToyMaker::SpatialQuerySystem::StaticModelBoundsComputeSystem Class Reference

A subsystem of the SpatialQuery system which tracks StaticModel objects in the scene and updates the position and shapes of their associated object bounds accordingly. More...

#include <spatial_query_system.hpp>

Inheritance diagram for ToyMaker::SpatialQuerySystem::StaticModelBoundsComputeSystem:
ToyMaker::System< StaticModelBoundsComputeSystem, std::tuple< std::shared_ptr< StaticModel > >, std::tuple< ObjectBounds > >

Public Member Functions

 StaticModelBoundsComputeSystem (std::weak_ptr< ECSWorld > world)
 

Static Public Member Functions

static std::string getSystemTypeName ()
 The system type string for this class.
 

Private Member Functions

void onEntityEnabled (EntityID entityID) override
 Computes object bounds for an entity as soon as its enabled for this system.
 
void onEntityUpdated (EntityID entityID) override
 Computes object bounds for an entity when it has moved or been scaled.
 
void recomputeObjectBounds (EntityID entityID)
 The method responsible for actually recomputing an entity's object bounds.
 

Detailed Description

A subsystem of the SpatialQuery system which tracks StaticModel objects in the scene and updates the position and shapes of their associated object bounds accordingly.

Member Function Documentation

◆ getSystemTypeName()

static std::string ToyMaker::SpatialQuerySystem::StaticModelBoundsComputeSystem::getSystemTypeName ( )
inlinestatic

The system type string for this class.

Returns
std::string This class' system type string.

◆ onEntityEnabled()

void SpatialQuerySystem::StaticModelBoundsComputeSystem::onEntityEnabled ( EntityID entityID)
overrideprivate

Computes object bounds for an entity as soon as its enabled for this system.

Parameters
entityIDThe entity whose object bounds should be recomputed.

◆ onEntityUpdated()

void SpatialQuerySystem::StaticModelBoundsComputeSystem::onEntityUpdated ( EntityID entityID)
overrideprivate

Computes object bounds for an entity when it has moved or been scaled.

Parameters
entityIDThe entity whose object bounds should be recomputed.

◆ recomputeObjectBounds()

void SpatialQuerySystem::StaticModelBoundsComputeSystem::recomputeObjectBounds ( EntityID entityID)
private

The method responsible for actually recomputing an entity's object bounds.

Parameters
entityIDThe entity whose object bounds are being recomputed.

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