synfig-core
1.0.3
|
#include <valuenode_const.h>
Public Types | |
typedef etl::handle < ValueNode_Const > | Handle |
typedef etl::handle< const ValueNode_Const > | ConstHandle |
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_Const () |
const ValueBase & | get_value () const |
ValueBase & | get_value () |
void | set_value (const ValueBase &data) |
bool | get_static () const |
void | set_static (bool x) |
virtual Interpolation | get_interpolation () const |
Get the default interpolation for Value Nodes. | |
virtual void | set_interpolation (Interpolation x) |
Set the default interpolation for Value Nodes. | |
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 ValueNode::Handle | clone (etl::loose_handle< Canvas > canvas, const GUID &deriv_guid=GUID()) const |
Clones a Value Node. | |
Public Member Functions inherited from synfig::ValueNode | |
sigc::signal< void > & | signal_value_changed () |
ValueBase Changed. | |
sigc::signal< void, int * > & | signal_children_reordered () |
Children Reordered. | |
sigc::signal< void, int > & | signal_child_changed () |
Child Changed. | |
sigc::signal< void, int > & | signal_child_removed () |
Child Removed. | |
sigc::signal< void, int > & | signal_child_inserted () |
Child Inserted. | |
sigc::signal< void > & | signal_id_changed () |
ID Changed. | |
virtual | ~ValueNode () |
void | set_id (const String &x) |
const String & | get_id () const |
Returns the id of the ValueNode. | |
virtual String | get_description (bool show_exported_name=true) const |
Return a full description of the ValueNode and its parentage. | |
String | get_string () const |
bool | is_exported () const |
Returns if the Value Node has an ID (has been exported) | |
bool | is_descendant (ValueNode::Handle value_node_dest) |
Check recursively if is a descendant of the Value Node. | |
Type & | get_type () const |
Returns the type of the ValueNode. | |
etl::loose_handle< Canvas > | get_parent_canvas () const |
Returns a handle to the parent canvas, if it has one. | |
etl::loose_handle< Canvas > | get_root_canvas () const |
Returns a handle to the parent canvas, if it has one. | |
etl::loose_handle< Canvas > | get_non_inline_ancestor_canvas () const |
Returns a handle to the parent canvas, if it has one. | |
void | set_parent_canvas (etl::loose_handle< Canvas > x) |
Sets the parent canvas for the Value Node. | |
virtual void | set_root_canvas (etl::loose_handle< Canvas > x) |
Sets the root canvas parent for the Value Node. | |
String | get_relative_id (etl::loose_handle< const Canvas > x) const |
Returns the relative ID of a Node when accessed form the Canvas. | |
int | replace (etl::handle< ValueNode > x) |
Public Member Functions inherited from synfig::Node | |
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! |
Static Public Member Functions | |
static ValueNode * | create (const ValueBase &x=ValueBase(), etl::loose_handle< Canvas > canvas=0) |
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 void | get_times_vfunc (Node::time_set &set) const |
Protected Member Functions inherited from synfig::ValueNode | |
ValueNode (Type &type=type_nil) | |
void | set_type (Type &t) |
Sets the type of the ValueNode. | |
virtual void | on_changed () |
Protected Member Functions inherited from synfig::Node | |
Node () | |
void | begin_delete () |
virtual void | on_guid_changed (GUID guid) |
Additional Inherited Members | |
Public Attributes inherited from synfig::Node | |
std::set< Node * > | parent_set |
typedef etl::handle<ValueNode_Const> synfig::ValueNode_Const::Handle |
typedef etl::handle<const ValueNode_Const> synfig::ValueNode_Const::ConstHandle |
|
virtual |
Returns the value of the ValueNode at time t.
Reimplemented from synfig::ValueNode.
const ValueBase & ValueNode_Const::get_value | ( | ) | const |
Referenced by get_interpolation(), get_static(), set_interpolation(), set_static(), and ~ValueNode_Const().
ValueBase & ValueNode_Const::get_value | ( | ) |
void ValueNode_Const::set_value | ( | const ValueBase & | data | ) |
|
inline |
References synfig::ValueBase::get_static(), and get_value().
|
inline |
References get_value(), and synfig::ValueBase::set_static().
|
inlinevirtual |
Get the default interpolation for Value Nodes.
Reimplemented from synfig::ValueNode.
References synfig::ValueBase::get_interpolation(), and get_value().
|
inlinevirtual |
Set the default interpolation for Value Nodes.
Reimplemented from synfig::ValueNode.
References get_value(), and synfig::ValueBase::set_interpolation().
|
virtual |
Returns the name of the ValueNode type.
Implements synfig::ValueNode.
|
virtual |
|
virtual |
Implements synfig::ValueNode.
References synfig::find_value_node(), synfig::Node::get_guid(), synfig::Node::set_guid(), and synfig::ValueNode::set_parent_canvas().
|
static |
References synfig::ValueBase::get_type(), synfig::type_bone_object, and synfig::type_bone_weight_pair.
Referenced by synfig::Layer::clone(), synfig::ValueNode_Greyed::create(), synfig::ValueNode_WeightedAverage::create(), synfig::ValueNode_BLineRevTangent::create(), synfig::ValueNode_TimeLoop::create(), synfig::ValueNode_Reference::create(), synfig::ValueNode_BoneInfluence::create(), synfig::ValueNode_BLine::create(), synfig::ValueNode_StaticList::create_from(), synfig::ValueNode_DynamicList::create_from(), synfig::optimize_layers(), synfig::ValueNode_Random::randomize_seed(), Layer_TimeLoop::reset_version(), synfig::ValueNode_Add::ValueNode_Add(), synfig::ValueNode_And::ValueNode_And(), synfig::ValueNode_Bone::ValueNode_Bone(), synfig::ValueNode_BoneLink::ValueNode_BoneLink(), synfig::ValueNode_Compare::ValueNode_Compare(), synfig::ValueNode_Duplicate::ValueNode_Duplicate(), synfig::ValueNode_GradientRotate::ValueNode_GradientRotate(), synfig::ValueNode_Integer::ValueNode_Integer(), synfig::ValueNode_Logarithm::ValueNode_Logarithm(), synfig::ValueNode_Not::ValueNode_Not(), synfig::ValueNode_Or::ValueNode_Or(), synfig::ValueNode_Pow::ValueNode_Pow(), synfig::ValueNode_Real::ValueNode_Real(), synfig::ValueNode_Reciprocal::ValueNode_Reciprocal(), synfig::ValueNode_Repeat_Gradient::ValueNode_Repeat_Gradient(), synfig::ValueNode_Reverse::ValueNode_Reverse(), synfig::ValueNode_Stripes::ValueNode_Stripes(), synfig::ValueNode_Subtract::ValueNode_Subtract(), synfig::ValueNode_Switch::ValueNode_Switch(), and synfig::ValueNode_TimeLoop::ValueNode_TimeLoop().
|
protectedvirtual |
Function to be overloaded that fills the Time Point Set with all the children Time Points.
Implements synfig::Node.