TazGraph Project v0.1.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Attributes | List of all members
LinkEntity Class Reference
Inheritance diagram for LinkEntity:
Inheritance graph
[legend]
Collaboration diagram for LinkEntity:
Collaboration graph
[legend]

Public Member Functions

 LinkEntity (Manager &mManager)
 
 LinkEntity (Manager &mManager, unsigned int mfromId, unsigned int mtoId)
 
 LinkEntity (Manager &mManager, NodeEntity *mfrom, NodeEntity *mto)
 
void setComponentEntity (LinkComponent *c) override
 
void removeFromCells ()
 
void removeEntity () override
 
NodeEntitygetFromNode () const
 
NodeEntitygetToNode () const
 
EmptyEntitygetFromPort ()
 
EmptyEntitygetToPort ()
 
virtual void updateLinkToPorts ()
 
virtual void updateLinkToNodes ()
 
virtual void updateArrowHeads ()
 
virtual void addArrowHead ()
 
virtual void removeArrowHead ()
 
- Public Member Functions inherited from MultiCellEntity
 MultiCellEntity (Manager &mManager)
 
void setOwnerCells (std::vector< Cell * > cells)
 
CellgetOwnerCells () const
 
- Public Member Functions inherited from Entity
void setId (unsigned int m_id)
 
unsigned int getId ()
 
void hide ()
 
void reveal ()
 
bool isHidden ()
 
 Entity (Manager &mManager)
 
virtual void update (float deltaTime)
 
virtual void cellUpdate ()
 
virtual CellgetOwnerCell () const
 
void draw (size_t e_index, PlaneModelRenderer &batch, TazGraphEngine::Window &window)
 
void draw (size_t e_index, LineRenderer &batch, TazGraphEngine::Window &window)
 
void draw (size_t e_index, PlaneColorRenderer &batch, TazGraphEngine::Window &window)
 
void draw (size_t e_index, LightRenderer &batch, TazGraphEngine::Window &window)
 
bool isActive ()
 
virtual void destroy ()
 
bool hasGroup (Group mGroup)
 
virtual void addGroup (Group mGroup)
 
void removeGroup (Group mGroup)
 
template<typename T >
bool hasComponent () const
 
template<typename T , typename... TArgs>
T & addComponent (TArgs &&... mArgs)
 have addScript function
 
template<typename T >
void removeComponent ()
 
virtual void setComponentEntity (Component *c)
 
virtual void setComponentEntity (NodeComponent *c)
 
template<typename T >
T & GetComponent () const
 
bool hasComponentByName (const std::string &componentName)
 
ManagergetManager ()
 
virtual void addMessage (std::string mMessage)
 
virtual EntitygetParentEntity ()
 
virtual void setParentEntity (Entity *pEntity)
 
virtual void imgui_print ()
 
virtual void imgui_display ()
 

Public Attributes

std::string fromPort
 
std::string toPort
 
- Public Attributes inherited from MultiCellEntity
std::vector< Cell * > ownerCells = {}
 
- Public Attributes inherited from Entity
std::unordered_map< std::string, EmptyEntity * > children
 
std::vector< std::unique_ptr< BaseComponent > > components
 

Protected Attributes

unsigned int fromId = 0
 
unsigned int toId = 0
 
NodeEntityfrom = nullptr
 
NodeEntityto = nullptr
 
- Protected Attributes inherited from Entity
std::optional< ComponentArray > nodeComponentArray
 
std::optional< ComponentBitSet > nodeComponentBitSet
 
Managermanager
 

Member Function Documentation

◆ removeEntity()

void LinkEntity::removeEntity ( )
inlineoverridevirtual

Reimplemented from Entity.

◆ setComponentEntity()

void LinkEntity::setComponentEntity ( LinkComponent c)
inlineoverridevirtual

Reimplemented from Entity.


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