TazGraph Project v0.1.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
Manager Class Reference

Public Types

enum  groupLabels : std::size_t {
  groupBackgroundLayer , panelBackground , groupGridLinks , groupSelectedEntities ,
  groupDebugBoxEntities , groupDebugRectangleEntities , groupLinks_0 , groupGroupLinks_0 ,
  groupGroupLinks_1 , groupPathLinks , groupPathInnerLinks , groupPathLinksHolder ,
  groupArrowHeads_0 , groupNodes_0 , groupGroupNodes_0 , groupGroupNodes_1 ,
  groupMinimapNodes , groupColliders , groupEmpties , groupSphereEmpties ,
  groupWireframeSphereEmpties , groupRenderSprites , groupPorts , groupPortSlots ,
  textLabels , __COUNT__
}
 

Public Member Functions

void setThreader (Threader &mthreader)
 
void update (float deltaTime=1.0f)
 
void updateFully (float deltaTime=1.0f)
 
void refresh (ICamera *camera=nullptr)
 
void aboutTo_updateActiveEntities ()
 
void updateActiveEntities ()
 
void updateVisibleEntities ()
 
void AddToGroup (EmptyEntity *mEntity, Group mGroup)
 
void AddToGroup (NodeEntity *mEntity, Group mGroup)
 
void AddLinkToGroup (LinkEntity *mEntity, Group mGroup)
 
const std::unordered_map< EntityID, std::unique_ptr< Entity > > & getEntities () const
 
template<typename T >
std::vector< Entity * > getVisible ()
 
template<typename T >
std::vector< Entity * > & getVisibleGroup (Group mGroup)
 
template<typename T >
void getAllTypeEntities (std::vector< Entity * > &output)
 
template<typename T >
std::vector< Entity * > & getGroup (Group mGroup)
 
std::vector< Entity * > getGroup_All (Group mGroup)
 
template<typename T , typename... TArgs>
T & addEntityNoId (TArgs &&... mArgs)
 
template<typename T , typename... TArgs>
T & addEntity (TArgs &&... mArgs)
 
template<typename T , typename... TArgs>
T & addEntityWithId (EntityID customId, TArgs &&... mArgs)
 
template<typename T , typename... TArgs>
T & addEntityFromParent (Entity *pEntity, const char *newID="", TArgs &&... mArgs)
 
void resetEntityId ()
 
void setNewLastEntityId ()
 
EntitygetEntityFromId (EntityID mId)
 
std::vector< Entity * > getEntities_FromIds (std::vector< EntityID > mIds)
 
bool hasEntity (EntityID mId)
 
void clearAllEntities ()
 
void removeAllEntites ()
 
void removeAllEntitiesFromGroup (Group mGroup)
 
void removeAllEntitiesFromEmptyGroup (Group mGroup)
 
void removeAllEntitiesFromLinkGroup (Group mGroup)
 
std::vector< EntityID > adjacentEntities (Entity *mainEntity, Group group)
 
void addGroup (std::string groupName)
 
std::string getGroupName (Group mGroup) const
 
void scanComponentNames (const std::string &folderPath)
 
void setComponentNames ()
 
std::vector< Entity * > collectVisibleEntities (std::initializer_list< Manager::groupLabels > groupNames, Taz::EntityType type)
 
std::vector< Entity * > collectEntities (std::initializer_list< Manager::groupLabels > groupNames, Taz::EntityType type)
 
bool entities_AllSameType (std::vector< Entity * > entities)
 

Public Attributes

std::list< SimulationStepsteps
 
int currentStep = 0
 
std::stack< std::unique_ptr< Command > > undoStack
 
std::vector< EntityID > movedNodes
 
std::mutex movedNodesMutex
 
bool idTextEnabled = false
 
bool arrowheadsEnabled = false
 
bool last_arrowheadsEnabled = false
 
std::unordered_map< std::string, std::vector< std::string > > componentNames
 
std::unique_ptr< Gridgrid
 
std::unordered_map< Group, std::string > groupNames
 
std::size_t nextGroup = groupLabels::__COUNT__
 dynamically add groups with Enum!
 

Member Function Documentation

◆ update()

void Manager::update ( float  deltaTime = 1.0f)
inline

THREADER CHECK

UPDATE LINK CELLS

UPDATE

FOR MAIN MENU


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