gwnavruntime/spatialization/tagvolumespatialization.h Source File
Go to the documentation of this file.
17 class DatabaseBinding;
31 bool IsComputed()
const {
return m_cellBox !=
CellBox(); }
32 void Compute(
const Box3f& aabb,
KyUInt32 obstacleTypeUInt, Database* database);
33 void Clear() { m_extendedAabb.Clear(); m_cellBox.Clear(); }
50 void Init(Ptr<DatabaseBinding> databaseBinding);
52 KyUInt32 GetTagVolumeDbDataCount()
const;
54 TagVolumeDbData& GetTagVolumeDbData(
KyUInt32 boundDatabaseIdx);
55 const TagVolumeDbData& GetTagVolumeDbData(
KyUInt32 boundDatabaseIdx)
const;
57 void ComputeTagVolumeDbData(
const Box3f& aabb,
KyUInt32 tagVolumeExtendOptions);
62 void CreateTagVolumeDbData();
63 void DestroyTagVolumeDbData();
66 Ptr<DatabaseBinding> m_databaseBinding;
67 TagVolumeDbData* m_tagVolumeDbData;
71 KY_INLINE
KyUInt32 TagVolumeDatabaseData::GetTagVolumeDbDataCount()
const {
return (m_databaseBinding ?
KyUInt32(m_databaseBinding->GetBoundDatabaseCount()) : 0); }
72 KY_INLINE TagVolumeDbData& TagVolumeDatabaseData::GetTagVolumeDbData(
KyUInt32 i) {
return m_tagVolumeDbData[i]; }
73 KY_INLINE
const TagVolumeDbData& TagVolumeDatabaseData::GetTagVolumeDbData(
KyUInt32 i)
const {
return m_tagVolumeDbData[i]; }
Box2i CellBox
A type that represents a bounding box around cells in a 2D grid.
Definition: navmeshtypes.h:31
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:132
3d axis aligned box of 32bits floating points
Definition: box3f.h:16
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
Each TagVolume instance aggregates one instance of this class to maintain its spatialization informat...
Definition: tagvolumespatialization.h:42