ValueNode_SegCalcTangent::ValueNode_SegCalcTangent(const ValueBase::Type &x):
LinkableValueNode(x)
{
+ Vocab ret(get_children_vocab());
+ set_children_vocab(ret);
if(x!=ValueBase::TYPE_VECTOR)
throw Exception::BadType(ValueBase::type_local_name(x));
{
return new ValueNode_SegCalcTangent(ValueBase::TYPE_VECTOR);
}
+
+LinkableValueNode::Vocab
+ValueNode_SegCalcTangent::get_children_vocab_vfunc()const
+{
+ if(children_vocab.size())
+ return children_vocab;
+
+ LinkableValueNode::Vocab ret;
+
+ ret.push_back(ParamDesc(ValueBase(),"segment")
+ .set_local_name(_("Segment"))
+ .set_description(_("The Segment where the tangent is linked to"))
+ );
+
+ ret.push_back(ParamDesc(ValueBase(),"amount")
+ .set_local_name(_("Amount"))
+ .set_description(_("The position of the linked tangent on the Segment (0,1]"))
+ );
+ return ret;
+}