Utility class for bounds calculation of Scene / Entity.
More...
#include <GetBounds.h>
|
static COGSCORE_DLL_API Cogs::Geometry::BoundingBox | getBounds (Context *context, const ComponentModel::Entity *entity, bool ignoreVisibility=false) |
|
static Cogs::Geometry::BoundingBox | getTransformedBounds (const Cogs::Geometry::BoundingBox &bbox, const glm::mat4 &m) |
|
static Cogs::Geometry::BoundingBox | getTransformedBoundsWithDivision (const Cogs::Geometry::BoundingBox &bbox, const glm::mat4 &m) |
|
static COGSCORE_DLL_API Cogs::Geometry::BoundingBox | getBounds (Context *context, const EntityId id, bool ignoreVisibility=false) |
|
static COGSCORE_DLL_API Cogs::Geometry::BoundingBox | getBounds (Context *context, std::span< const EntityId > ids, bool ignoreVisibility=false) |
|
static void | getCameraDepthBounds (Context *context, float &depthBoundNear, float &depthBoundFar, const CameraComponent &cameraComponent) |
|
static Cogs::Geometry::BoundingBox | getShadowBounds (Context *context) |
|
Utility class for bounds calculation of Scene / Entity.
Definition at line 45 of file GetBounds.h.
◆ addBoundsExtension()
void Cogs::Core::Bounds::addBoundsExtension |
( |
IGetBounds * |
bounds | ) |
|
Use by extension to register Bounds calculations for Components in the extension. Registration should only be active when components in use.
Definition at line 895 of file GetBounds.cpp.
◆ getBounds() [1/3]
Cogs::Geometry::BoundingBox Cogs::Core::Bounds::getBounds |
( |
Context * |
context, |
|
|
const ComponentModel::Entity * |
entity, |
|
|
bool |
ignoreVisibility = false |
|
) |
| |
|
static |
◆ getBounds() [2/3]
Cogs::Geometry::BoundingBox Cogs::Core::Bounds::getBounds |
( |
Context * |
context, |
|
|
const EntityId |
id, |
|
|
bool |
ignoreVisibility = false |
|
) |
| |
|
static |
◆ getBounds() [3/3]
Cogs::Geometry::BoundingBox Cogs::Core::Bounds::getBounds |
( |
Context * |
context, |
|
|
std::span< const EntityId > |
ids, |
|
|
bool |
ignoreVisibility = false |
|
) |
| |
|
static |
◆ getCameraDepthBounds()
void Cogs::Core::Bounds::getCameraDepthBounds |
( |
Context * |
context, |
|
|
float & |
depthBoundNear, |
|
|
float & |
depthBoundFar, |
|
|
const CameraComponent & |
cameraComponent |
|
) |
| |
|
static |
◆ getClipPlanes()
void Cogs::Core::Bounds::getClipPlanes |
( |
Context * |
context, |
|
|
float & |
nearDist, |
|
|
float & |
farDist, |
|
|
const CameraComponent & |
cameraComponent, |
|
|
const glm::mat4 & |
viewMatrix |
|
) |
| |
◆ getExtensions()
std::span< IGetBounds * > Cogs::Core::Bounds::getExtensions |
( |
| ) |
|
|
inline |
Gets registered extensions.
Definition at line 72 of file GetBounds.h.
◆ getSceneBounds() [1/2]
void Cogs::Core::Bounds::getSceneBounds |
( |
Context * |
context, |
|
|
float * |
values, |
|
|
RenderLayers |
layerMask = RenderLayers::AllStandard |
|
) |
| |
◆ getSceneBounds() [2/2]
Cogs::Geometry::BoundingBox Cogs::Core::Bounds::getSceneBounds |
( |
Context * |
context, |
|
|
RenderLayers |
layerMask = RenderLayers::AllStandard |
|
) |
| |
◆ getShadowBounds()
Cogs::Geometry::BoundingBox Cogs::Core::Bounds::getShadowBounds |
( |
Context * |
context | ) |
|
|
static |
◆ getTransformedBounds()
Cogs::Geometry::BoundingBox Cogs::Core::Bounds::getTransformedBounds |
( |
const Cogs::Geometry::BoundingBox & |
bbox, |
|
|
const glm::mat4 & |
m |
|
) |
| |
|
static |
◆ getTransformedBoundsWithDivision()
Cogs::Geometry::BoundingBox Cogs::Core::Bounds::getTransformedBoundsWithDivision |
( |
const Cogs::Geometry::BoundingBox & |
bbox, |
|
|
const glm::mat4 & |
m |
|
) |
| |
|
static |
◆ removeBoundsExtension()
void Cogs::Core::Bounds::removeBoundsExtension |
( |
IGetBounds * |
bounds | ) |
|
◆ extensions
std::vector<IGetBounds *> Cogs::Core::Bounds::extensions |
|
private |
The documentation for this class was generated from the following files: