synfig-core
1.0.3
|
#include <valuenode_composite.h>
Public Types | |
typedef etl::handle < ValueNode_Composite > | Handle |
typedef etl::handle< const ValueNode_Composite > | ConstHandle |
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 | |
~ValueNode_Composite () | |
virtual ValueNode::LooseHandle | get_link_vfunc (int i) const |
Virtual member to get the linked Value Node Handle. | |
virtual String | link_name (int i) const |
Returns the name of the 'i' linked Value Node. | |
virtual ValueBase | operator() (Time t) const |
Returns the value of the ValueNode at time t. | |
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 int | get_link_index_from_name (const String &name) const |
Returns the child index Value Node based on the name. | |
virtual Vocab | get_children_vocab_vfunc () const |
Pure Virtual member to get the children vocabulary. | |
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 ValueNode::Handle | clone (etl::loose_handle< Canvas > canvas, const GUID &deriv_guid=GUID()) const |
Clones a Value Node. | |
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. | |
virtual void | set_root_canvas (etl::loose_handle< Canvas > x) |
Member to store the children vocabulary. |
Static Public Member Functions | |
static bool | check_type (Type &type) |
static ValueNode_Composite * | create (const ValueBase &x, etl::loose_handle< Canvas > canvas=0) |
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 | |
virtual bool | set_link_vfunc (int i, ValueNode::Handle x) |
LinkableValueNode * | create_new () const |
Wrapper for new operator, used by clone() | |
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_Composite> synfig::ValueNode_Composite::Handle |
typedef etl::handle<const ValueNode_Composite> synfig::ValueNode_Composite::ConstHandle |
ValueNode_Composite::~ValueNode_Composite | ( | ) |
References synfig::LinkableValueNode::unlink_all().
|
virtual |
Virtual member to get the linked Value Node Handle.
Implements synfig::LinkableValueNode.
References synfig::LinkableValueNode::link_count().
|
virtual |
Returns the name of the 'i' linked Value Node.
Reimplemented from synfig::LinkableValueNode.
References synfig::get_file_version(), synfig::LinkableValueNode::link_count(), and synfig::RELEASE_VERSION_0_61_08.
Returns the value of the ValueNode at time t.
Reimplemented from synfig::ValueNode.
References _, synfig::Transformation::angle, synfig::types_namespace::TypePairBase::create_value(), synfig::types_namespace::TypeWeightedValueBase::create_weighted_value(), synfig::error(), synfig::Transformation::offset, synfig::Segment::p1, synfig::Segment::p2, synfig::Transformation::scale, synfig::Color::set_a(), synfig::Color::set_b(), synfig::Color::set_g(), synfig::DashItem::set_length(), synfig::WidthPoint::set_lower_bound(), synfig::DashItem::set_offset(), synfig::BLinePoint::set_origin(), synfig::WidthPoint::set_position(), synfig::Color::set_r(), synfig::DashItem::set_side_type_after(), synfig::WidthPoint::set_side_type_after(), synfig::DashItem::set_side_type_before(), synfig::WidthPoint::set_side_type_before(), synfig::BLinePoint::set_split_tangent_angle(), synfig::BLinePoint::set_split_tangent_both(), synfig::BLinePoint::set_split_tangent_radius(), synfig::BLinePoint::set_tangent1(), synfig::BLinePoint::set_tangent2(), synfig::WidthPoint::set_upper_bound(), synfig::BLinePoint::set_vertex(), synfig::WidthPoint::set_width(), synfig::BLinePoint::set_width(), synfig::Transformation::skew_angle, synfig::Segment::t1, synfig::Segment::t2, synfig::type_bline_point, synfig::type_color, synfig::type_dash_item, synfig::type_segment, synfig::type_transformation, synfig::type_vector, and synfig::type_width_point.
|
virtual |
Returns the name of the ValueNode type.
Implements synfig::ValueNode.
|
virtual |
|
virtual |
Returns the child index Value Node based on the name.
Reimplemented from synfig::LinkableValueNode.
References synfig::ValueNode::get_type(), synfig::LinkableValueNode::link_count(), synfig::type_bline_point, synfig::type_color, synfig::type_dash_item, synfig::type_segment, synfig::type_transformation, synfig::type_vector, and synfig::type_width_point.
|
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 synfig::types_namespace::TypeWeightedValueBase::get_contained_type(), synfig::types_namespace::TypePairBase::get_first_type(), synfig::types_namespace::TypePairBase::get_second_type(), synfig::ValueBase::get_type(), synfig::ValueNode::get_type(), synfig::LinkableValueNode::link_count(), synfig::type_bline_point, synfig::type_color, synfig::type_dash_item, synfig::type_segment, synfig::type_transformation, synfig::type_vector, and synfig::type_width_point.
|
protectedvirtual |
Wrapper for new operator, used by clone()
Implements synfig::LinkableValueNode.
References synfig::ValueNode::get_type().
|
static |
|
static |
|
virtual |
Pure Virtual member to get the children vocabulary.
Implements synfig::LinkableValueNode.
References _, synfig::LinkableValueNode::children_vocab, synfig::ValueNode::get_type(), synfig::type_bline_point, synfig::type_color, synfig::type_dash_item, synfig::WidthPoint::TYPE_FLAT, synfig::WidthPoint::TYPE_INTERPOLATE, synfig::WidthPoint::TYPE_PEAK, synfig::WidthPoint::TYPE_ROUNDED, synfig::type_segment, synfig::WidthPoint::TYPE_SQUARED, synfig::type_transformation, synfig::type_vector, and synfig::type_width_point.