synfig-core
1.0.3
|
#include <node.h>
Public Types | |
typedef TimePointSet | time_set |
Public Member Functions | |
sigc::signal< void > & | signal_deleted () |
sigc::signal< void > & | signal_changed () |
sigc::signal< void, GUID > & | signal_guid_changed () |
GUID Changed. | |
virtual | ~Node () |
void | changed () |
const GUID & | get_guid () const |
Gets the GUID for this Node. | |
virtual void | set_guid (const GUID &x) |
Sets the GUID for this Node. | |
int | get_time_last_changed () const |
Gets the time when the Node was changed. | |
void | add_child (Node *x) |
Adds the parameter as the child of the current Node. | |
void | remove_child (Node *x) |
Removes the parameter as a child of the current Node. | |
int | parent_count () const |
Returns how many parenst has the current Node. | |
const time_set & | get_times () const |
Returns the cached times values for all the children. | |
RWLock & | get_rw_lock () const |
Writeme! | |
virtual String | get_string () const =0 |
Public Attributes | |
std::set< Node * > | parent_set |
Protected Member Functions | |
Node () | |
void | begin_delete () |
virtual void | on_changed () |
virtual void | on_guid_changed (GUID guid) |
virtual void | get_times_vfunc (time_set &set) const =0 |
typedef TimePointSet synfig::Node::time_set |
|
protected |
References global_node_map(), and synfig::GUID::make_unique().
|
virtual |
References begin_delete(), and global_node_map().
|
inline |
Referenced by begin_delete().
|
inline |
Referenced by on_changed(), and synfig::Canvas::signal_dirty().
|
inline |
void Node::changed | ( | ) |
References __sys_clock, and on_changed().
Referenced by synfig::Canvas::clear(), synfig::Layer::connect_dynamic_param(), synfig::Layer::disconnect_dynamic_param(), synfig::Canvas::erase(), synfig::Canvas::insert(), synfig::ValueNode_DynamicList::insert_time(), synfig::Canvas::push_back_simple(), synfig::LinkableValueNode::set_link(), synfig::Layer_PasteCanvas::set_param(), and synfig::ValueNode_Const::set_value().
const synfig::GUID & Node::get_guid | ( | ) | const |
Gets the GUID for this value node.
References global_node_map().
Referenced by synfig::ValueNode_Const::clone(), synfig::ValueNode_StaticList::clone(), synfig::ValueNode_DynamicList::clone(), synfig::PlaceholderValueNode::clone(), synfig::LinkableValueNode::clone(), synfig::Layer::clone(), synfig::Canvas::clone(), synfig::PlaceholderValueNode::get_string(), refresh_node(), synfig::ValueNode_Bone::set_guid(), synfig::ValueNode_Bone::set_root_canvas(), synfig::ValueNode_Bone::ValueNode_Bone(), and synfig::ValueNode_Bone::~ValueNode_Bone().
|
virtual |
Sets the GUID for this value node.
Reimplemented in synfig::ValueNode_Bone_Root, and synfig::ValueNode_Bone.
References global_node_map(), on_guid_changed(), and refresh_node().
Referenced by synfig::ValueNode_Const::clone(), synfig::ValueNode_StaticList::clone(), synfig::ValueNode_DynamicList::clone(), synfig::PlaceholderValueNode::clone(), and synfig::LinkableValueNode::clone().
int Node::get_time_last_changed | ( | ) | const |
Gets the time when the Node was changed.
void Node::add_child | ( | Node * | x | ) |
Adds the parameter as the child of the current Node.
References get_string(), and parent_set.
Referenced by synfig::ValueNode_DynamicList::add(), synfig::Layer::connect_dynamic_param(), synfig::Canvas::insert(), synfig::ValueNode::replace(), synfig::LinkableValueNode::set_link(), synfig::Layer_PasteCanvas::set_sub_canvas(), and synfig::ValueNode_Const::set_value().
void Node::remove_child | ( | Node * | x | ) |
Removes the parameter as a child of the current Node.
References get_string(), and parent_set.
Referenced by synfig::Layer::connect_dynamic_param(), synfig::Layer::disconnect_dynamic_param(), synfig::ValueNode_DynamicList::erase(), synfig::Canvas::erase(), synfig::ValueNode::replace(), synfig::LinkableValueNode::set_link(), synfig::Layer_PasteCanvas::set_sub_canvas(), synfig::ValueNode_Const::set_value(), and synfig::ValueNode_Const::~ValueNode_Const().
int Node::parent_count | ( | ) | const |
Returns how many parenst has the current Node.
References parent_set.
const Node::time_set & Node::get_times | ( | ) | const |
Returns the cached times values for all the children.
References get_times_vfunc().
|
inline |
Writeme!
|
pure virtual |
Implemented in synfig::Layer, synfig::Canvas, synfig::PlaceholderValueNode, synfig::ValueNode, and synfig::ValueNode_Animated.
Referenced by add_child(), on_changed(), and remove_child().
|
protected |
References signal_deleted().
Referenced by synfig::Canvas::~Canvas(), ~Node(), and synfig::ValueNode::~ValueNode().
|
protectedvirtual |
Used when the node has changed. Makes changed the parent too. To be overloaded by the derivative classes. Emits a signal where the the GUI can be connected to.
Reimplemented in synfig::Canvas, synfig::Layer, synfig::ValueNode, and synfig::ValueNode_Bone.
References get_string(), parent_set, and signal_changed().
Referenced by changed().
|
protectedvirtual |
Used when the node's GUID has changed. To be overloaded by the derivative classes. Emits a signal where the the GUI can be connected to.
References signal_guid_changed().
Referenced by set_guid().
|
protectedpure virtual |
Function to be overloaded that fills the Time Point Set with all the children Time Points.
Implemented in synfig::Canvas, synfig::Layer, synfig::LinkableValueNode, synfig::PlaceholderValueNode, synfig::ValueNode_DynamicList, synfig::Layer_PasteCanvas, synfig::ValueNode_Animated, and synfig::ValueNode_Const.
Referenced by get_times().
std::set<Node*> synfig::Node::parent_set |
A set of pointers to parent nodes
Referenced by add_child(), synfig::LinkableValueNode::get_description(), synfig::Canvas::invoke_signal_value_node_child_removed(), on_changed(), parent_count(), remove_child(), synfig::ValueNode::replace(), and synfig::Canvas::~Canvas().