Cogs.Core
Public Member Functions | Private Attributes | List of all members
Cogs::Core::TerrainBounds Class Reference
Inheritance diagram for Cogs::Core::TerrainBounds:
Cogs::Core::IGetBounds

Public Member Functions

 TerrainBounds (TerrainComponent *terrain, TerrainData *terrainData)
 
void getBounds (Context *context, Cogs::Geometry::BoundingBox &bounds, float &nearPlaneLimit) final
 
void getBounds (Context *context, Cogs::Geometry::BoundingBox &bounds) final
 Expand bounds including bounds of all entities in this system in world coordinates.
 
- 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

TerrainComponentterrain
 
TerrainDataterrainData
 

Detailed Description

Definition at line 41 of file TerrainSystem.h.

Constructor & Destructor Documentation

◆ TerrainBounds()

Cogs::Core::TerrainBounds::TerrainBounds ( TerrainComponent terrain,
TerrainData terrainData 
)
inline

Definition at line 44 of file TerrainSystem.h.

Member Function Documentation

◆ getBounds() [1/2]

void Cogs::Core::TerrainBounds::getBounds ( Context context,
Cogs::Geometry::BoundingBox &  bounds 
)
inlinefinalvirtual

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

Implements Cogs::Core::IGetBounds.

Definition at line 48 of file TerrainSystem.h.

References getBounds().

Referenced by getBounds().

◆ getBounds() [2/2]

void Cogs::Core::TerrainBounds::getBounds ( Context context,
Cogs::Geometry::BoundingBox &  bounds,
float &   
)
inlinefinalvirtual

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

This function also allows the bounds provided to specify a near-plane limit for the main camera.

Reimplemented from Cogs::Core::IGetBounds.

Definition at line 231 of file TerrainSystem.cpp.

References Cogs::ComponentModel::Component::getComponent(), and Cogs::Core::TransformSystem::getOrigin().

Member Data Documentation

◆ terrain

TerrainComponent* Cogs::Core::TerrainBounds::terrain
private

Definition at line 51 of file TerrainSystem.h.

◆ terrainData

TerrainData* Cogs::Core::TerrainBounds::terrainData
private

Definition at line 52 of file TerrainSystem.h.


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