ValueNode_Sine::ValueNode_Sine(const ValueBase &value):
LinkableValueNode(value.get_type())
{
+ Vocab ret(get_children_vocab());
+ set_children_vocab(ret);
switch(value.get_type())
{
case ValueBase::TYPE_REAL:
throw Exception::BadLinkName(name);
}
+
+LinkableValueNode::Vocab
+ValueNode_Sine::get_children_vocab_vfunc()const
+{
+ if(children_vocab.size())
+ return children_vocab;
+
+ LinkableValueNode::Vocab ret;
+
+ ret.push_back(ParamDesc(ValueBase(),"angle")
+ .set_local_name(_("Angle"))
+ .set_description(_("The angle where the sine is calculated from"))
+ );
+
+ ret.push_back(ParamDesc(ValueBase(),"amp")
+ .set_local_name(_("Amplitude"))
+ .set_description(_("The value that multiplies the resulting sine"))
+ );
+
+ return ret;
+}