+ switch(get_type())
+ {
+ case ValueBase::TYPE_ANGLE:
+ set_link("before",ValueNode_Const::create(value.get(Angle())));
+ set_link("after",ValueNode_Const::create(value.get(Angle())));
+ break;
+ case ValueBase::TYPE_COLOR:
+ set_link("before",ValueNode_Const::create(value.get(Color())));
+ set_link("after",ValueNode_Const::create(value.get(Color())));
+ break;
+ case ValueBase::TYPE_INTEGER:
+ set_link("before",ValueNode_Const::create(value.get(int())));
+ set_link("after",ValueNode_Const::create(value.get(int())));
+ break;
+ case ValueBase::TYPE_REAL:
+ set_link("before",ValueNode_Const::create(value.get(Real())));
+ set_link("after",ValueNode_Const::create(value.get(Real())));
+ break;
+ case ValueBase::TYPE_TIME:
+ set_link("before",ValueNode_Const::create(value.get(Time())));
+ set_link("after",ValueNode_Const::create(value.get(Time())));
+ break;
+ case ValueBase::TYPE_VECTOR:
+ set_link("before",ValueNode_Const::create(value.get(Vector())));
+ set_link("after",ValueNode_Const::create(value.get(Vector())));
+ break;
+ default:
+ throw Exception::BadType(ValueBase::type_name(get_type()));
+ }
+
+ set_link("time",ValueNode_Const::create(Time(2)));
+ set_link("length",ValueNode_Const::create(Time(1)));