synfig-core  1.0.3
Classes | Namespaces | Macros | Functions
valuenode.h File Reference

Header file for implementation of the "Placeholder" valuenode conversion. More...

#include "vector.h"
#include "value.h"
#include "string.h"
#include "releases.h"
#include <ETL/handle>
#include <ETL/stringf>
#include "exception.h"
#include <map>
#include <sigc++/signal.h>
#include "guid.h"
#include <ETL/angle>
#include "paramdesc.h"
#include "interpolation.h"
#include "node.h"
#include <set>

Go to the source code of this file.

Classes

class  synfig::ValueNode
 Base class for all Value Nodes. More...
class  synfig::PlaceholderValueNode
class  synfig::LinkableValueNode
 Specialized Class of Value Nodes that has links to other Value Nodes. More...
struct  synfig::LinkableValueNode::BookEntry
class  synfig::ValueNodeList
 A searchable value_node list container. More...

Namespaces

namespace  synfig
 Where every function and class of the synfig library can be found.

Macros

#define VALUENODE_CHECK_TYPE(type)
#define VALUENODE_SET_VALUE(variable)
#define CHECK_TYPE_AND_SET_VALUE(variable, type)

Functions

ValueNode::LooseHandle synfig::find_value_node (const GUID &guid)

Detailed Description

Header file for implementation of the "Placeholder" valuenode conversion.

$Id$

Macro Definition Documentation

#define VALUENODE_CHECK_TYPE (   type)
Value:
/* I don't think this ever happens - maybe remove this code? */ \
if (get_type() == type_nil) { \
warning("%s:%d get_type() IS nil sometimes!", \
__FILE__, __LINE__); \
return false; \
} \
if (get_type() != type_nil && \
!(ValueBase::can_copy(value->get_type(), type)) && \
!PlaceholderValueNode::Handle::cast_dynamic(value)) { \
error(_("%s:%d wrong type for %s: need %s but got %s"), \
__FILE__, __LINE__, \
link_local_name(i).c_str(), \
type.description.local_name.c_str(), \
value->get_type().description.local_name.c_str() ); \
return false; \
}

Referenced by synfig::ValueNode_Bone::set_link_vfunc().

#define VALUENODE_SET_VALUE (   variable)
Value:
variable = value; \
signal_child_changed()(i); \
signal_value_changed()(); \
return true

Referenced by synfig::ValueNode_BoneLink::set_link_vfunc(), and synfig::ValueNode_Bone::set_link_vfunc().

#define CHECK_TYPE_AND_SET_VALUE (   variable,
  type 
)
Value:
VALUENODE_SET_VALUE(variable)

Referenced by synfig::ValueNode_Add::set_link_vfunc(), synfig::ValueNode_And::set_link_vfunc(), synfig::ValueNode_Subtract::set_link_vfunc(), synfig::ValueNode_Stripes::set_link_vfunc(), synfig::ValueNode_TimedSwap::set_link_vfunc(), synfig::ValueNode_Not::set_link_vfunc(), synfig::ValueNode_SegCalcVertex::set_link_vfunc(), synfig::ValueNode_AngleString::set_link_vfunc(), synfig::ValueNode_Or::set_link_vfunc(), synfig::ValueNode_BLineRevTangent::set_link_vfunc(), synfig::ValueNode_Reciprocal::set_link_vfunc(), synfig::ValueNode_Exp::set_link_vfunc(), synfig::ValueNode_Repeat_Gradient::set_link_vfunc(), synfig::ValueNode_VectorLength::set_link_vfunc(), synfig::ValueNode_VectorY::set_link_vfunc(), synfig::ValueNode_TimeString::set_link_vfunc(), synfig::ValueNode_TwoTone::set_link_vfunc(), synfig::ValueNode_VectorAngle::set_link_vfunc(), synfig::ValueNode_Logarithm::set_link_vfunc(), synfig::ValueNode_VectorX::set_link_vfunc(), synfig::ValueNode_DotProduct::set_link_vfunc(), synfig::ValueNode_Atan2::set_link_vfunc(), synfig::ValueNode_Reverse::set_link_vfunc(), synfig::ValueNode_SegCalcTangent::set_link_vfunc(), synfig::ValueNode_Linear::set_link_vfunc(), synfig::ValueNode_Sine::set_link_vfunc(), synfig::ValueNode_BoneWeightPair::set_link_vfunc(), synfig::ValueNode_BLineCalcVertex::set_link_vfunc(), synfig::ValueNode_Cos::set_link_vfunc(), synfig::ValueNode_Step::set_link_vfunc(), synfig::ValueNode_Reference::set_link_vfunc(), synfig::ValueNode_GradientColor::set_link_vfunc(), synfig::ValueNode_IntString::set_link_vfunc(), synfig::ValueNode_TimeLoop::set_link_vfunc(), synfig::ValueNode_Pow::set_link_vfunc(), synfig::ValueNode_Join::set_link_vfunc(), synfig::ValueNode_Real::set_link_vfunc(), synfig::ValueNode_RealString::set_link_vfunc(), synfig::ValueNode_BoneLink::set_link_vfunc(), synfig::ValueNode_Integer::set_link_vfunc(), synfig::ValueNode_Range::set_link_vfunc(), synfig::ValueNode_Compare::set_link_vfunc(), synfig::ValueNode_GradientRotate::set_link_vfunc(), synfig::ValueNode_BLineCalcWidth::set_link_vfunc(), synfig::ValueNode_BLineCalcTangent::set_link_vfunc(), synfig::ValueNode_Duplicate::set_link_vfunc(), synfig::ValueNode_Switch::set_link_vfunc(), synfig::ValueNode_BoneInfluence::set_link_vfunc(), synfig::ValueNode_Random::set_link_vfunc(), synfig::ValueNode_Scale::set_link_vfunc(), synfig::ValueNode_Derivative::set_link_vfunc(), synfig::ValueNode_Bone::set_link_vfunc(), and synfig::ValueNode_Dynamic::set_link_vfunc().