Cogs.Core
OGC3DTilesBounds.h
1#pragma once
2
3#include <Context.h>
4#include <Scene/GetBounds.h>
5
6namespace Cogs {
7 namespace Core {
8
9 class OGC3DTilesSystem;
10 struct OGC3DTilesComponent;
11
12 class OGC3DTilesBounds final : public IGetBounds {
13 public:
15 void getBounds(Context* context, Cogs::Geometry::BoundingBox& bounds) override;
16 bool getBounds(Context* context, const ComponentModel::Entity* entity, Cogs::Geometry::BoundingBox& bounds, bool ignoreVisibility) const override;
17
18 private:
19 bool getBounds(Context* context, const OGC3DTilesComponent& comp, Cogs::Geometry::BoundingBox& bounds, bool ignoreVisibility) const;
20 OGC3DTilesSystem* system = nullptr;
21 };
22 }
23}
24
Container for components, providing composition of dynamic entities.
Definition: Entity.h:18
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition: Context.h:83
void getBounds(Context *context, Cogs::Geometry::BoundingBox &bounds) override
Expand bounds including bounds of all entities in this system in world coordinates.
Contains all Cogs related functionality.
Definition: FieldSetter.h:23