ValueNode_Scale::ValueNode_Scale(const ValueBase &value):
LinkableValueNode(value.get_type())
{
+ Vocab ret(get_children_vocab());
+ set_children_vocab(ret);
set_link("scalar",ValueNode::Handle(ValueNode_Const::create(Real(1.0))));
ValueBase::Type id(value.get_type());
type==ValueBase::TYPE_TIME ||
type==ValueBase::TYPE_VECTOR;
}
+
+LinkableValueNode::Vocab
+ValueNode_Scale::get_children_vocab_vfunc()const
+{
+ if(children_vocab.size())
+ return children_vocab;
+
+ LinkableValueNode::Vocab ret;
+
+ ret.push_back(ParamDesc(ValueBase(),"link")
+ .set_local_name(_("Link"))
+ .set_description(_("The value node used to scale"))
+ );
+
+ ret.push_back(ParamDesc(ValueBase(),"scalar")
+ .set_local_name(_("Scalar"))
+ .set_description(_("Value that multiplies the value node"))
+ );
+
+ return ret;
+}