X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvaluenode_stripes.cpp;h=424a73d7ab19dbdec45cd5a95bbb5eee387ff1bb;hb=4463620b876137696e62be58f3e386901cb69a7a;hp=ad67ee71266dc0ddb5d33595a10eb18735f4e806;hpb=7c6c9bc865caa5e585805199f7c2e5f595b1c030;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/valuenode_stripes.cpp b/synfig-core/trunk/src/synfig/valuenode_stripes.cpp index ad67ee7..424a73d 100644 --- a/synfig-core/trunk/src/synfig/valuenode_stripes.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_stripes.cpp @@ -6,6 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2008 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -89,48 +90,6 @@ synfig::ValueNode_Stripes::~ValueNode_Stripes() unlink_all(); } -bool -synfig::ValueNode_Stripes::set_color1(ValueNode::Handle a) -{ - if(a->get_type()!=ValueBase::TYPE_COLOR) - return false; - - color1_=a; - - return true; -} - -bool -synfig::ValueNode_Stripes::set_color2(ValueNode::Handle a) -{ - if(a->get_type()!=ValueBase::TYPE_COLOR) - return false; - - color2_=a; - - return true; -} - -bool -synfig::ValueNode_Stripes::set_width(ValueNode::Handle x) -{ - if(x->get_type()!=ValueBase::TYPE_REAL) - return false; - - width_=x; - - return true; -} - -bool -synfig::ValueNode_Stripes::set_stripes(ValueNode::Handle b) -{ - if(b->get_type()!=ValueBase::TYPE_INTEGER) - return false; - stripes_=b; - return true; -} - synfig::ValueBase synfig::ValueNode_Stripes::operator()(Time t)const { @@ -161,26 +120,17 @@ synfig::ValueNode_Stripes::operator()(Time t)const } bool -ValueNode_Stripes::set_link_vfunc(int i,ValueNode::Handle x) +ValueNode_Stripes::set_link_vfunc(int i,ValueNode::Handle value) { assert(i>=0 && i