synfig-core
1.0.3
|
#include <valuenode_bone.h>
Public Types | |
typedef etl::handle < ValueNode_Bone > | Handle |
typedef etl::handle< const ValueNode_Bone > | ConstHandle |
typedef etl::loose_handle < ValueNode_Bone > | LooseHandle |
typedef std::map< synfig::GUID, LooseHandle > | BoneMap |
typedef std::map < etl::loose_handle< const Canvas >, BoneMap > | CanvasMap |
typedef std::set< LooseHandle > | BoneSet |
typedef std::list< LooseHandle > | BoneList |
Public Types inherited from synfig::LinkableValueNode | |
typedef etl::handle < LinkableValueNode > | Handle |
typedef etl::loose_handle < LinkableValueNode > | LooseHandle |
typedef etl::handle< const LinkableValueNode > | ConstHandle |
typedef etl::rhandle < LinkableValueNode > | RHandle |
typedef LinkableValueNode *(* | Factory )(const ValueBase &, etl::loose_handle< Canvas > canvas) |
Type that represents a pointer to a ValueNode's constructor. | |
typedef bool(* | CheckType )(Type &type) |
This represents a pointer to a Type check member fucntion. | |
typedef std::map< String, BookEntry > | Book |
Book of types of linkable value nodes indexed by type name. | |
typedef ParamVocab | Vocab |
The vocabulary of the children. | |
Public Types inherited from synfig::ValueNode | |
typedef etl::handle< ValueNode > | Handle |
typedef etl::loose_handle < ValueNode > | LooseHandle |
typedef etl::handle< const ValueNode > | ConstHandle |
typedef etl::rhandle< ValueNode > | RHandle |
Public Types inherited from synfig::Node | |
typedef TimePointSet | time_set |
Public Member Functions | |
virtual ValueBase | operator() (Time t) const |
Returns the value of the ValueNode at time t. | |
virtual ValueNode::Handle | clone (etl::loose_handle< Canvas > canvas, const GUID &deriv_guid=GUID()) const |
Clones a Value Node. | |
virtual | ~ValueNode_Bone () |
virtual void | set_guid (const GUID &new_guid) |
Sets the GUID for this Node. | |
virtual void | set_root_canvas (etl::loose_handle< Canvas > canvas) |
Member to store the children vocabulary. | |
virtual String | get_name () const |
Returns the name of the ValueNode type. | |
virtual String | get_local_name () const |
Returns the localized name of the ValueNode type. | |
virtual String | get_bone_name (Time t) const |
virtual ValueNode::LooseHandle | get_link_vfunc (int i) const |
Virtual member to get the linked Value Node Handle. | |
bool | have_influence_on (Time t, const Vector &x) const |
virtual Vocab | get_children_vocab_vfunc () const |
Pure Virtual member to get the children vocabulary. | |
ValueNode_Bone::LooseHandle | find (String name) const |
String | unique_name (String name) const |
ValueNode_Bone::ConstHandle | is_ancestor_of (ValueNode_Bone::ConstHandle bone, Time t) const |
virtual bool | is_root () const |
Public Member Functions inherited from synfig::LinkableValueNode | |
LinkableValueNode (Type &type=type_nil) | |
Member to store the children vocabulary. | |
virtual int | link_count () const |
Returns the number of linked Value Nodes. | |
virtual String | link_local_name (int i) const |
Returns the local name of the 'i' linked Value Node. | |
virtual String | link_name (int i) const |
Returns the name of the 'i' linked Value Node. | |
virtual int | get_link_index_from_name (const String &name) const |
Returns the child index Value Node based on the name. | |
bool | set_link (int i, ValueNode::Handle x) |
Sets a new Value Node link by its index. | |
bool | set_link (const String &name, ValueNode::Handle x) |
Sets a new Value Node link by its name. | |
ValueNode::LooseHandle | get_link (int i) const |
Returns a Loose Handle to the Value Node based on the link's index. | |
ValueNode::LooseHandle | get_link (const String &name) const |
Returns a Loose Handle to the Value Node based on the link's name. | |
String | get_description (int index=-1, bool show_exported_name=true) const |
Return a full description of the linked ValueNode given by the index. | |
String | get_description (bool show_exported_name=true) const |
virtual Vocab | get_children_vocab () const |
Gets the children vocabulary for linkable value nodes. |
Static Public Member Functions | |
static bool | check_type (Type &type) |
static ValueNode_Bone * | create (const ValueBase &x, etl::loose_handle< Canvas > canvas=0) |
static void | show_bone_map (etl::loose_handle< Canvas > canvas, const char *file, int line, String text, Time t=0) |
static BoneMap | get_bone_map (etl::handle< const Canvas > canvas) |
static BoneList | get_ordered_bones (etl::handle< const Canvas > canvas) |
static BoneSet | get_bones_referenced_by (ValueNode::Handle value_node, bool recursive=true) |
static BoneSet | get_bones_affected_by (ValueNode::Handle value_node) |
static BoneSet | get_possible_parent_bones (ValueNode::Handle value_node) |
static ValueNode_Bone::Handle | get_root_bone () |
Static Public Member Functions inherited from synfig::LinkableValueNode | |
static Book & | book () |
static Handle | create (const String &name, const ValueBase &x, etl::loose_handle< Canvas > canvas) |
static bool | check_type (const String &name, Type &x) |
Member to store the children vocabulary. | |
Static Public Member Functions inherited from synfig::ValueNode | |
static bool | subsys_init () |
Instantiates the book of ValaueNodes and register all the valid valuenodes on it. | |
static bool | subsys_stop () |
Deletes the book of ValueNodes. | |
static void | breakpoint () |
Protected Member Functions | |
ValueNode_Bone () | |
ValueNode_Bone (const ValueBase &value, etl::loose_handle< Canvas > canvas=0) | |
LinkableValueNode * | create_new () const |
Wrapper for new operator, used by clone() | |
virtual bool | set_link_vfunc (int i, ValueNode::Handle x) |
virtual void | on_changed () |
Protected Member Functions inherited from synfig::LinkableValueNode | |
void | unlink_all () |
void | set_type (Type &t) |
Sets the type of the ValueNode. | |
virtual void | get_times_vfunc (Node::time_set &set) const |
Returns the cached times values for all the children (linked Value Nodes) | |
virtual void | set_children_vocab (const Vocab &rvocab) |
Virtual memebr to set the children vocabulary to a given value. |
Additional Inherited Members | |
Public Attributes inherited from synfig::Node | |
std::set< Node * > | parent_set |
Protected Attributes inherited from synfig::LinkableValueNode | |
Vocab | children_vocab |
Member to store the children vocabulary. |
typedef etl::handle<ValueNode_Bone> synfig::ValueNode_Bone::Handle |
typedef etl::handle<const ValueNode_Bone> synfig::ValueNode_Bone::ConstHandle |
typedef etl::loose_handle<ValueNode_Bone> synfig::ValueNode_Bone::LooseHandle |
typedef std::map<synfig::GUID, LooseHandle> synfig::ValueNode_Bone::BoneMap |
typedef std::map<etl::loose_handle<const Canvas>, BoneMap> synfig::ValueNode_Bone::CanvasMap |
typedef std::set<LooseHandle> synfig::ValueNode_Bone::BoneSet |
typedef std::list<LooseHandle> synfig::ValueNode_Bone::BoneList |
|
protected |
References synfig::LinkableValueNode::get_children_vocab(), synfig::Node::get_guid(), synfig::ValueNode::get_string(), and synfig::LinkableValueNode::set_children_vocab().
Referenced by create(), and create_new().
|
protected |
References _, bone_counter, canvas_map, synfig::ValueNode_Const::create(), synfig::Type::description, synfig::ValueBase::get(), synfig::LinkableValueNode::get_children_vocab(), synfig::Node::get_guid(), GET_GUID_CSTR, get_root_bone(), synfig::ValueNode::get_root_canvas(), synfig::ValueBase::get_type(), synfig::Type::Description::local_name, synfig::LinkableValueNode::set_children_vocab(), synfig::LinkableValueNode::set_link(), synfig::ValueNode::set_parent_canvas(), show_bone_map(), synfig::type_bone_object, and unique_name().
|
virtual |
Returns the value of the ValueNode at time t.
Reimplemented from synfig::ValueNode.
Reimplemented in synfig::ValueNode_Bone_Root.
References get_bone_name(), synfig::Bone::set_angle(), synfig::Bone::set_animated_matrix(), synfig::Bone::set_depth(), synfig::Bone::set_length(), synfig::Bone::set_name(), synfig::Bone::set_origin(), synfig::Bone::set_parent(), synfig::Bone::set_scalelx(), synfig::Bone::set_scalex(), synfig::Bone::set_tipwidth(), and synfig::Bone::set_width().
|
virtual |
Reimplemented from synfig::LinkableValueNode.
References synfig::LinkableValueNode::clone(), synfig::LinkableValueNode::get_link(), and unique_name().
|
virtual |
Sets the GUID for this value node.
Reimplemented from synfig::Node.
Reimplemented in synfig::ValueNode_Bone_Root.
References canvas_map, synfig::Node::get_guid(), GET_GUID_CSTR, synfig::ValueNode::get_root_canvas(), and show_bone_map().
|
virtual |
Member to store the children vocabulary.
Reimplemented from synfig::LinkableValueNode.
Reimplemented in synfig::ValueNode_Bone_Root.
References canvas_map, synfig::Node::get_guid(), synfig::ValueNode::get_root_canvas(), show_bone_map(), and synfig::warning().
|
virtual |
Returns the name of the ValueNode type.
Implements synfig::ValueNode.
Reimplemented in synfig::ValueNode_Bone_Root.
|
virtual |
Returns the localized name of the ValueNode type.
Implements synfig::ValueNode.
Reimplemented in synfig::ValueNode_Bone_Root.
References _.
Reimplemented in synfig::ValueNode_Bone_Root.
References synfig::LinkableValueNode::get_link().
Referenced by operator()().
|
virtual |
Virtual member to get the linked Value Node Handle.
Implements synfig::LinkableValueNode.
References synfig::LinkableValueNode::link_count().
References have_influence_on().
Referenced by have_influence_on().
|
protectedvirtual |
Wrapper for new operator, used by clone()
Implements synfig::LinkableValueNode.
Reimplemented in synfig::ValueNode_Bone_Root.
References synfig::ValueNode::get_type(), and ValueNode_Bone().
|
protectedvirtual |
Stores the Value Node in the sub parameter i after check if the type is the same. It has to be defined by the derived class.
Implements synfig::LinkableValueNode.
References CHECK_TYPE_AND_SET_VALUE, synfig::error(), get_bones_referenced_by(), synfig::LinkableValueNode::link_count(), synfig::type_angle, synfig::type_bone_valuenode, synfig::type_real, synfig::type_string, synfig::type_vector, VALUENODE_CHECK_TYPE, and VALUENODE_SET_VALUE.
|
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 from synfig::ValueNode.
|
static |
Reimplemented in synfig::ValueNode_Bone_Root.
References synfig::type_bone_object.
|
static |
References ValueNode_Bone().
Referenced by synfig::ValueNode_StaticList::create_from().
|
virtual |
Pure Virtual member to get the children vocabulary.
Implements synfig::LinkableValueNode.
References _.
ValueNode_Bone::LooseHandle ValueNode_Bone::find | ( | String | name | ) | const |
References canvas_map, and synfig::ValueNode::get_root_canvas().
Referenced by unique_name().
References find().
Referenced by clone(), and ValueNode_Bone().
|
static |
References canvas_map, GET_NODE_DESC_CSTR, and GET_NODE_PARENT_NODE.
Referenced by synfig::ValueNode_StaticList::clone(), set_guid(), set_root_canvas(), ValueNode_Bone(), ~ValueNode_Bone(), and synfig::ValueNode_StaticList::~ValueNode_StaticList().
|
static |
References canvas_map.
|
static |
References canvas_map.
ValueNode_Bone::ConstHandle ValueNode_Bone::is_ancestor_of | ( | ValueNode_Bone::ConstHandle | bone, |
Time | t | ||
) | const |
References GET_NODE_DESC_CSTR, GET_NODE_PARENT_NODE, and get_root_bone().
|
inlinevirtual |
Reimplemented in synfig::ValueNode_Bone_Root.
Referenced by synfig::Bone::is_root().
|
static |
References synfig::error(), and synfig::type_bone_valuenode.
Referenced by get_possible_parent_bones(), and set_link_vfunc().
|
static |
Referenced by get_possible_parent_bones().
|
static |
References canvas_map, get_bones_affected_by(), get_bones_referenced_by(), and synfig::warning().
|
static |
References rooot.
Referenced by synfig::ValueNode_Bone_Root::create(), is_ancestor_of(), ValueNode_Bone(), and synfig::ValueNode_BoneLink::ValueNode_BoneLink().