|
dyng
DynamicGraphLayout
|
19 #include "identifiers.h"
42 bool is_new()
const {
return m_newly_added; }
45 void is_new(
bool value) { m_newly_added = value; }
48 bool is_old()
const {
return m_to_be_deleted; }
51 void is_old(
bool value) { m_to_be_deleted = value; }
60 float alpha()
const {
return m_alpha; }
63 void alpha(
float value) { m_alpha = value; }
75 bool m_newly_added =
false;
76 bool m_to_be_deleted =
false;
float alpha() const
Returns current alpha value.
Definition: node.h:60
coords & pos()
Returns current coordinates.
Definition: node.h:69
Class representing coordinates in 2D space.
Definition: coords.h:21
void is_new(bool value)
Sets if the node is new in its current state.
Definition: node.h:45
node_id id() const
Returns the id.
Definition: node.h:39
void alpha(float value)
Sets the current alpha value.
Definition: node.h:63
const coords & pos() const
Returns current coordinates.
Definition: node.h:66
bool is_old() const
Returns if the node is going to be deleted in the next state.
Definition: node.h:48
Type used as an identifier for nodes.
Definition: identifiers.h:77
void is_old(bool value)
Sets if the node is going to be deleted in the next state.
Definition: node.h:51
bool is_new() const
Returns if the node is new in its current state.
Definition: node.h:42
node(node_id id)
Sets the id of the node.
Definition: node.h:35