synfig-core  1.0.3
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
synfig::ValueNode_Const Class Reference

#include <valuenode_const.h>

Inheritance diagram for synfig::ValueNode_Const:
synfig::ValueNode synfig::Node

Public Types

typedef etl::handle
< ValueNode_Const
Handle
typedef etl::handle< const
ValueNode_Const
ConstHandle
- Public Types inherited from synfig::ValueNode
typedef etl::handle< ValueNodeHandle
typedef etl::loose_handle
< ValueNode
LooseHandle
typedef etl::handle< const
ValueNode
ConstHandle
typedef etl::rhandle< ValueNodeRHandle
- 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 ValueBaseget_value () const
ValueBaseget_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 Stringget_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.
Typeget_type () const
 Returns the type of the ValueNode.
etl::loose_handle< Canvasget_parent_canvas () const
 Returns a handle to the parent canvas, if it has one.
etl::loose_handle< Canvasget_root_canvas () const
 Returns a handle to the parent canvas, if it has one.
etl::loose_handle< Canvasget_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 GUIDget_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_setget_times () const
 Returns the cached times values for all the children.
RWLockget_rw_lock () const
 Writeme!

Static Public Member Functions

static ValueNodecreate (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

Member Typedef Documentation

Constructor & Destructor Documentation

ValueNode_Const::~ValueNode_Const ( )
virtual

Member Function Documentation

ValueBase ValueNode_Const::operator() ( Time  ) const
virtual

Returns the value of the ValueNode at time t.

Reimplemented from synfig::ValueNode.

const ValueBase & ValueNode_Const::get_value ( ) const
ValueBase & ValueNode_Const::get_value ( )
void ValueNode_Const::set_value ( const ValueBase data)
bool synfig::ValueNode_Const::get_static ( ) const
inline
void synfig::ValueNode_Const::set_static ( bool  x)
inline
virtual Interpolation synfig::ValueNode_Const::get_interpolation ( ) const
inlinevirtual

Get the default interpolation for Value Nodes.

Reimplemented from synfig::ValueNode.

References synfig::ValueBase::get_interpolation(), and get_value().

virtual void synfig::ValueNode_Const::set_interpolation ( Interpolation  )
inlinevirtual

Set the default interpolation for Value Nodes.

Reimplemented from synfig::ValueNode.

References get_value(), and synfig::ValueBase::set_interpolation().

String ValueNode_Const::get_name ( ) const
virtual

Returns the name of the ValueNode type.

Implements synfig::ValueNode.

String ValueNode_Const::get_local_name ( ) const
virtual

Returns the localized name of the ValueNode type.

Implements synfig::ValueNode.

References _.

ValueNode::Handle ValueNode_Const::clone ( etl::loose_handle< Canvas canvas,
const GUID deriv_guid = GUID() 
) const
virtual
ValueNode * ValueNode_Const::create ( const ValueBase x = ValueBase(),
etl::loose_handle< Canvas canvas = 0 
)
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().

void ValueNode_Const::get_times_vfunc ( Node::time_set set) const
protectedvirtual

Function to be overloaded that fills the Time Point Set with all the children Time Points.

Implements synfig::Node.


The documentation for this class was generated from the following files: