Rename get_param_vocab to get_children_vocab and use a wrapper for the pure virtual...
[synfig.git] / synfig-core / src / synfig / valuenode_atan2.cpp
index c4dd5e7..ceec7a7 100644 (file)
@@ -62,8 +62,6 @@ ValueNode_Atan2::ValueNode_Atan2(const ValueBase &value):
        default:
                throw Exception::BadType(ValueBase::type_local_name(value.get_type()));
        }
-
-       DCAST_HACK_ENABLE();
 }
 
 LinkableValueNode*
@@ -178,3 +176,21 @@ ValueNode_Atan2::get_link_index_from_name(const String &name)const
 
        throw Exception::BadLinkName(name);
 }
+
+LinkableValueNode::Vocab
+ValueNode_Atan2::get_children_vocab_vfunc()const
+{
+       LinkableValueNode::Vocab ret;
+
+       ret.push_back(ParamDesc(ValueBase(),"x")
+               .set_local_name(_("X"))
+               .set_description(_("Cosine of the angle"))
+       );
+
+       ret.push_back(ParamDesc(ValueBase(),"y")
+               .set_local_name(_("Y"))
+               .set_description(_("Sine of the angle"))
+       );
+
+       return ret;
+}