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

Public Member Functions

 Node (Manager &mManager)
 
void addToGroup (Group mGroup) override
 
void removeGroup (Group mGroup) override
 
void update (float deltaTime)
 
void cellUpdate () override
 
void imgui_print () override
 
void imgui_display () override
 
void destroy ()
 
void addPorts ()
 
void removePorts () override
 
void removeSlots () override
 
- Public Member Functions inherited from NodeEntity
 NodeEntity (Manager &mManager)
 
void setComponentEntity (NodeComponent *c) override
 
void removeEntityFromCell () override
 
void addInLink (EntityID link)
 
void addOutLink (EntityID link)
 
void removeInLink (EntityID link)
 
void removeOutLink (EntityID link)
 
const std::vector< EntityID > & getInLinks () const
 
const std::vector< EntityID > & getOutLinks () const
 
virtual void updatePorts (float deltaTime)
 
- Public Member Functions inherited from EmptyEntity
 EmptyEntity (Manager &mManager)
 
void setComponentEntity (Component *c) override
 
void removeFromCell () override
 
- Public Member Functions inherited from CellEntity
 CellEntity (Manager &mManager)
 
void setOwnerCell (Cell *cell)
 
CellgetOwnerCell () const
 
- Public Member Functions inherited from Entity
void setId (EntityID m_id)
 
EntityID getId ()
 
void hide ()
 
void reveal ()
 
bool isHidden ()
 
 Entity (Manager &mManager)
 
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 ()
 
bool hasGroup (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 (LinkComponent *c)
 
template<typename T >
T & GetComponent () const
 
template<typename T >
T * GetComponentPtr ()
 
bool hasComponentByName (const std::string &componentName)
 
ManagergetManager ()
 
virtual void removeFromCells ()
 

Additional Inherited Members

- Public Attributes inherited from CellEntity
CellownerCell = nullptr
 
- 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
 
- Protected Attributes inherited from NodeEntity
std::vector< EntityID > inLinks
 
std::vector< EntityID > outLinks
 
- 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

◆ addPorts()

void Node::addPorts ( )
inlinevirtual

Reimplemented from NodeEntity.

◆ addToGroup()

void Node::addToGroup ( Group  mGroup)
inlineoverridevirtual

Reimplemented from Entity.

◆ cellUpdate()

void Node::cellUpdate ( )
inlineoverridevirtual

Reimplemented from Entity.

◆ destroy()

void Node::destroy ( )
inlinevirtual

Reimplemented from Entity.

◆ imgui_display()

void Node::imgui_display ( )
inlineoverridevirtual

Reimplemented from Entity.

◆ imgui_print()

void Node::imgui_print ( )
inlineoverridevirtual

Reimplemented from Entity.

◆ removeGroup()

void Node::removeGroup ( Group  mGroup)
inlineoverridevirtual

Reimplemented from Entity.

◆ removePorts()

void Node::removePorts ( )
inlineoverridevirtual

Reimplemented from NodeEntity.

◆ removeSlots()

void Node::removeSlots ( )
inlineoverridevirtual

Reimplemented from NodeEntity.

◆ update()

void Node::update ( float  deltaTime)
inlinevirtual

Reimplemented from Entity.


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