-void
-ValueNode_Subtract::set_scalar(Real value)
-{
- set_link("scalar",ValueNode_Const::create(value));
-}
-
-bool
-synfig::ValueNode_Subtract::set_scalar(ValueNode::Handle value)
-{
- if(value->get_type()!=ValueBase::TYPE_REAL&& !PlaceholderValueNode::Handle::cast_dynamic(value))
- return false;
- scalar=value;
- return true;
-}
-
-bool
-synfig::ValueNode_Subtract::set_lhs(ValueNode::Handle x)
-{
- assert(get_type());
-
- if(!x ||
- (get_type()==ValueBase::TYPE_NIL && !check_type(x->get_type())) ||
- (get_type()!=ValueBase::TYPE_NIL && x->get_type()!=get_type() && !PlaceholderValueNode::Handle::cast_dynamic(x)))
- return false;
-
- ref_a=x;
-
- return true;
-}
-
-bool
-synfig::ValueNode_Subtract::set_rhs(ValueNode::Handle x)
-{
- assert(get_type());
-
- if(!x ||
- (get_type()==ValueBase::TYPE_NIL && !check_type(x->get_type())) ||
- (get_type()!=ValueBase::TYPE_NIL && x->get_type()!=get_type() && !PlaceholderValueNode::Handle::cast_dynamic(x)))
- return false;
-
- ref_b=x;
-
- return true;
-}
-