Cogs.Core
Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
Cogs::Core::EchoSounder::SwathPathMeshManager Class Reference

Classes

struct  EntityInfo
 
struct  Persistent
 

Public Types

typedef std::function< TaskFunction(MeshHandle &, uint32_t)> CreateBuildFunc
 
typedef std::function< EntityPtr()> CreateEntity
 
typedef std::function< void(EntityPtr, uint32_t)> ActivateEntity
 

Public Member Functions

bool ready ()
 
bool update (Context *context, SwathPathChunks &chunks, CreateBuildFunc &createBuildFunc, CreateEntity &createEntity, ActivateEntity &activateEntity)
 
void updateCurrent ()
 
void clear ()
 

Private Member Functions

void discardEntity (WeakEntityPtr entity)
 

Private Attributes

std::map< uint32_t, EntityInfocurrent
 
bool handleClear = false
 
uint32_t chunkGen = 0
 
bool update_current = false
 
std::map< uint32_t, EntityInfotoDiscard
 
std::shared_ptr< Persistentpersistent
 
std::list< WeakEntityPtrentityPool
 

Detailed Description

Definition at line 27 of file SwathPathMeshManager.h.

Member Typedef Documentation

◆ ActivateEntity

typedef std::function<void(EntityPtr, uint32_t)> Cogs::Core::EchoSounder::SwathPathMeshManager::ActivateEntity

Definition at line 32 of file SwathPathMeshManager.h.

◆ CreateBuildFunc

typedef std::function<TaskFunction(MeshHandle&,uint32_t)> Cogs::Core::EchoSounder::SwathPathMeshManager::CreateBuildFunc

Definition at line 30 of file SwathPathMeshManager.h.

◆ CreateEntity

typedef std::function<EntityPtr()> Cogs::Core::EchoSounder::SwathPathMeshManager::CreateEntity

Definition at line 31 of file SwathPathMeshManager.h.

Constructor & Destructor Documentation

◆ SwathPathMeshManager()

Cogs::Core::EchoSounder::SwathPathMeshManager::SwathPathMeshManager ( )
inline

Definition at line 48 of file SwathPathMeshManager.h.

Member Function Documentation

◆ clear()

void Cogs::Core::EchoSounder::SwathPathMeshManager::clear ( )
inline

Definition at line 59 of file SwathPathMeshManager.h.

◆ discardEntity()

void Cogs::Core::EchoSounder::SwathPathMeshManager::discardEntity ( WeakEntityPtr  entity)
private

Definition at line 12 of file SwathPathMeshManager.cpp.

◆ ready()

bool Cogs::Core::EchoSounder::SwathPathMeshManager::ready ( )

Definition at line 23 of file SwathPathMeshManager.cpp.

◆ update()

bool Cogs::Core::EchoSounder::SwathPathMeshManager::update ( Context context,
SwathPathChunks chunks,
CreateBuildFunc &  createBuildFunc,
CreateEntity &  createEntity,
ActivateEntity &  activateEntity 
)

Definition at line 32 of file SwathPathMeshManager.cpp.

◆ updateCurrent()

void Cogs::Core::EchoSounder::SwathPathMeshManager::updateCurrent ( )
inline

Definition at line 58 of file SwathPathMeshManager.h.

Member Data Documentation

◆ chunkGen

uint32_t Cogs::Core::EchoSounder::SwathPathMeshManager::chunkGen = 0
private

Definition at line 65 of file SwathPathMeshManager.h.

◆ current

std::map<uint32_t, EntityInfo> Cogs::Core::EchoSounder::SwathPathMeshManager::current
private

Definition at line 63 of file SwathPathMeshManager.h.

◆ entityPool

std::list<WeakEntityPtr> Cogs::Core::EchoSounder::SwathPathMeshManager::entityPool
private

Definition at line 71 of file SwathPathMeshManager.h.

◆ handleClear

bool Cogs::Core::EchoSounder::SwathPathMeshManager::handleClear = false
private

Definition at line 64 of file SwathPathMeshManager.h.

◆ persistent

std::shared_ptr<Persistent> Cogs::Core::EchoSounder::SwathPathMeshManager::persistent
private

Definition at line 70 of file SwathPathMeshManager.h.

◆ toDiscard

std::map<uint32_t, EntityInfo> Cogs::Core::EchoSounder::SwathPathMeshManager::toDiscard
private

Definition at line 68 of file SwathPathMeshManager.h.

◆ update_current

bool Cogs::Core::EchoSounder::SwathPathMeshManager::update_current = false
private

Definition at line 66 of file SwathPathMeshManager.h.


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