本文整理汇总了C++中action::Param::get_activepoint方法的典型用法代码示例。如果您正苦于以下问题:C++ Param::get_activepoint方法的具体用法?C++ Param::get_activepoint怎么用?C++ Param::get_activepoint使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类action::Param
的用法示例。
在下文中一共展示了Param::get_activepoint方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: value_desc
bool
Action::ActivepointSimpleAdd::set_param(const synfig::String& name, const Action::Param ¶m)
{
if(name=="value_desc" && param.get_type()==Param::TYPE_VALUEDESC)
{
ValueDesc value_desc(param.get_value_desc());
if(!value_desc.parent_is_value_node())
return false;
value_node=ValueNode_DynamicList::Handle::cast_dynamic(value_desc.get_parent_value_node());
if(!value_node)
return false;
index=value_desc.get_index();
return true;
}
if(name=="activepoint" && param.get_type()==Param::TYPE_ACTIVEPOINT)
{
activepoint = param.get_activepoint();
return true;
}
return Action::CanvasSpecific::set_param(name,param);
}
示例2:
bool
Action::ActivepointSetSmart::set_param(const synfig::String& name, const Action::Param ¶m)
{
if(name=="value_desc" && param.get_type()==Param::TYPE_VALUEDESC)
{
value_desc=param.get_value_desc();
if(!value_desc.parent_is_value_node())
return false;
value_node=ValueNode_DynamicList::Handle::cast_dynamic(value_desc.get_parent_value_node());
if(!value_node)
return false;
index=value_desc.get_index();
if(time_set)
calc_activepoint();
return true;
}
if(name=="activepoint" && param.get_type()==Param::TYPE_ACTIVEPOINT && !time_set)
{
activepoint=param.get_activepoint();
return true;
}
if(name=="time" && param.get_type()==Param::TYPE_TIME && activepoint.get_time()==Time::begin()-1)
{
activepoint.set_time(param.get_time());
time_set=true;
if(value_node)
calc_activepoint();
return true;
}
return Action::CanvasSpecific::set_param(name,param);
return Action::CanvasSpecific::set_param(name,param);
}