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

Public Types

enum class  ConnectionType { NODE_TO_NODE , PORT_TO_PORT , DIRECT_POSITIONS , GHOST_PORT_TO_PORT }
 

Public Member Functions

 LinkEntity (Manager &mManager)
 
 LinkEntity (Manager &mManager, EntityID mfromId, EntityID mtoId)
 
 LinkEntity (Manager &mManager, EntityID mfromId, EntityID mtoId, EntityID m_fromPort, EntityID m_toPort, int m_fromSlot, int m_toSlot)
 
 LinkEntity (Manager &mManager, glm::vec3 mfrom, glm::vec3 mto)
 
void setComponentEntity (LinkComponent *c) override
 
void removeFromCells () override
 
void removeEntityFromCell () override
 
EntityID getFromNode () const
 
EntityID getToNode () const
 
virtual void setConnectionType (ConnectionType setType)
 
virtual void updateConnection ()
 
virtual void updatePortSlots ()
 
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 (EntityID m_id)
 
EntityID 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)
 
virtual void onCreation ()
 
EntitygetParentEntity ()
 
void setParentEntity (Entity *pEntity)
 
bool isActive ()
 
virtual void destroy ()
 
bool hasGroup (Group mGroup)
 
virtual void addToGroup (Group mGroup)
 
virtual 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
 
template<typename T >
T * GetComponentPtr ()
 
bool hasComponentByName (const std::string &componentName)
 
ManagergetManager ()
 
virtual void imgui_print ()
 
virtual void imgui_display ()
 
virtual void removeFromCell ()
 

Public Attributes

EntityID fromId = 0
 When Node_to_Node.
 
EntityID toId = 0
 
ConnectionType type = ConnectionType::NODE_TO_NODE
 
glm::vec3 fromPos = glm::vec3(0)
 When DirectPosition.
 
glm::vec3 toPos = glm::vec3(0)
 
EntityID fromPort = -1
 When Port_to_Port.
 
EntityID toPort = -1
 
int fromSlotIndex = -1
 
int toSlotIndex = -1
 
- Public Attributes inherited from MultiCellEntity
std::vector< Cell * > ownerCells = {}
 
- Public Attributes inherited from Entity
bool isVertical = false
 
float slotSpacing = 0.0f
 
std::map< EntityID, EntityID > children
 child_index(id) -> real_entity_id
 
std::vector< std::unique_ptr< BaseComponent > > components
 

Additional Inherited Members

- Protected Attributes inherited from Entity
bool active = true
 
bool hidden = false
 
ComponentArray componentArray = {}
 
ComponentBitSet componentBitSet
 
GroupBitSet groupBitSet
 
std::optional< ComponentArray > nodeComponentArray
 
std::optional< ComponentBitSet > nodeComponentBitSet
 
Entityparent_entity = nullptr
 
Managermanager
 the object doesnt move, so we can have pointer
 

Member Function Documentation

◆ removeEntityFromCell()

void LinkEntity::removeEntityFromCell ( )
inlineoverridevirtual

Reimplemented from Entity.

◆ removeFromCells()

void LinkEntity::removeFromCells ( )
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: