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:
return 0;
}
-int
-ValueNode_VectorY::link_count()const
-{
- return 1;
-}
-
-String
-ValueNode_VectorY::link_local_name(int i)const
-{
- assert(i>=0 && i<link_count());
-
- if(i==0)
- return _("Vector");
- return String();
-}
-
-String
-ValueNode_VectorY::link_name(int i)const
-{
- assert(i>=0 && i<link_count());
-
- if(i==0)
- return "vector";
- return String();
-}
-
-int
-ValueNode_VectorY::get_link_index_from_name(const String &name)const
-{
- if(name=="vector")
- return 0;
-
- throw Exception::BadLinkName(name);
-}
-
String
ValueNode_VectorY::get_name()const
{
{
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;
+}