Layer_Duplicate::Layer_Duplicate():
Layer_Composite(1.0,Color::BLEND_COMPOSITE)
{
Layer_Duplicate::Layer_Duplicate():
Layer_Composite(1.0,Color::BLEND_COMPOSITE)
{
- LinkableValueNode* index_value_node = ValueNode_Duplicate::create(int(3));
+ LinkableValueNode* index_value_node = ValueNode_Duplicate::create(Real(3));
connect_dynamic_param("index", index_value_node);
}
connect_dynamic_param("index", index_value_node);
}
SYNFIG_LAYER_MODULE_EXT
private:
SYNFIG_LAYER_MODULE_EXT
private:
mutable Time time_cur;
public:
mutable Time time_cur;
public:
ValueNode_Duplicate::ValueNode_Duplicate(const ValueBase &x):
LinkableValueNode(x.get_type())
{
ValueNode_Duplicate::ValueNode_Duplicate(const ValueBase &x):
LinkableValueNode(x.get_type())
{
- set_link("from", ValueNode_Const::create(int(1)));
- set_link("to", ValueNode_Const::create(x.get(int())));
- set_link("step", ValueNode_Const::create(int(1)));
- index = 1;
+ set_link("from", ValueNode_Const::create(Real(1.0)));
+ set_link("to", ValueNode_Const::create(x.get(Real())));
+ set_link("step", ValueNode_Const::create(Real(1.0)));
+ index = 1.0;
void
ValueNode_Duplicate::reset_index(Time t)const
{
void
ValueNode_Duplicate::reset_index(Time t)const
{
- int from = (*from_)(t).get(int());
+ Real from = (*from_)(t).get(Real());
index = from;
}
bool
ValueNode_Duplicate::step(Time t)const
{
index = from;
}
bool
ValueNode_Duplicate::step(Time t)const
{
- int from = (*from_)(t).get(int());
- int to = (*to_ )(t).get(int());
- int step = (*step_)(t).get(int());
+ Real from = (*from_)(t).get(Real());
+ Real to = (*to_ )(t).get(Real());
+ Real step = (*step_)(t).get(Real());
if (step == 0) return false;
if (step == 0) return false;
int
ValueNode_Duplicate::count_steps(Time t)const
{
int
ValueNode_Duplicate::count_steps(Time t)const
{
- int from = (*from_)(t).get(int());
- int to = (*to_ )(t).get(int());
- int step = (*step_)(t).get(int());
+ Real from = (*from_)(t).get(Real());
+ Real to = (*to_ )(t).get(Real());
+ Real step = (*step_)(t).get(Real());
ValueNode::RHandle from_;
ValueNode::RHandle to_;
ValueNode::RHandle step_;
ValueNode::RHandle from_;
ValueNode::RHandle to_;
ValueNode::RHandle step_;
public:
typedef etl::handle<ValueNode_Duplicate> Handle;
public:
typedef etl::handle<ValueNode_Duplicate> Handle;