ValueNode_VectorY::ValueNode_VectorY(const ValueBase &value):
LinkableValueNode(value.get_type())
{
+ Vocab ret(get_children_vocab());
+ set_children_vocab(ret);
switch(value.get_type())
{
case ValueBase::TYPE_REAL:
default:
throw Exception::BadType(ValueBase::type_local_name(value.get_type()));
}
-
- DCAST_HACK_ENABLE();
}
LinkableValueNode*
{
return type==ValueBase::TYPE_REAL;
}
+
+LinkableValueNode::Vocab
+ValueNode_VectorY::get_children_vocab_vfunc()const
+{
+ if(children_vocab.size())
+ return children_vocab;
+
+ LinkableValueNode::Vocab ret;
+
+ ret.push_back(ParamDesc(ValueBase(),"vector")
+ .set_local_name(_("Vector"))
+ .set_description(_("The vector where the Y coordinate is extracted from"))
+ );
+
+ return ret;
+}