本文整理汇总了C++中linkablevaluenode::Vocab类的典型用法代码示例。如果您正苦于以下问题:C++ Vocab类的具体用法?C++ Vocab怎么用?C++ Vocab使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Vocab类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: gradient
LinkableValueNode::Vocab
ValueNode_GradientColor::get_children_vocab_vfunc()const
{
if(children_vocab.size())
return children_vocab;
LinkableValueNode::Vocab ret;
ret.push_back(ParamDesc(ValueBase(),"gradient")
.set_local_name(_("Gradient"))
.set_description(_("The gradient where the color is picked from"))
);
ret.push_back(ParamDesc(ValueBase(),"index")
.set_local_name(_("Index"))
.set_description(_("The position of the color at the gradient (0,1]"))
);
ret.push_back(ParamDesc(ValueBase(),"loop")
.set_local_name(_("Loop"))
.set_description(_("When checked, the index would loop"))
);
return ret;
}
示例2:
LinkableValueNode::Vocab
ValueNode_Derivative::get_children_vocab_vfunc()const
{
if(children_vocab.size())
return children_vocab;
LinkableValueNode::Vocab ret;
ret.push_back(ParamDesc(ValueBase(),"link")
.set_local_name(_("Link"))
.set_description(_("Value to calculate the derivative"))
);
ret.push_back(ParamDesc(ValueBase(),"interval")
.set_local_name(_("Interval"))
.set_description(_("Interval of time to calculate the finite differences"))
);
ret.push_back(ParamDesc(ValueBase(),"accuracy")
.set_local_name(_("Accuracy"))
.set_description(_("Accuracy of the derivative"))
.set_hint("enum")
.add_enum_value(ROUGH,"rough",_("Rough"))
.add_enum_value(NORMAL,"normal",_("Normal"))
.add_enum_value(FINE,"fine",_("Fine"))
.add_enum_value(EXTREME,"extreme",_("Extreme"))
);
ret.push_back(ParamDesc(ValueBase(),"order")
.set_local_name(_("Order"))
.set_description(_("Order of the derivative"))
.set_hint("enum")
.add_enum_value(FIRST,"first",_("First Derivative"))
.add_enum_value(SECOND,"second",_("Second Derivative"))
);
return ret;
}
示例3:
LinkableValueNode::Vocab
ValueNode_TimeLoop::get_children_vocab_vfunc()const
{
if(children_vocab.size())
return children_vocab;
LinkableValueNode::Vocab ret;
ret.push_back(ParamDesc("link")
.set_local_name(_("Link"))
.set_description(_("The value node to time loop"))
);
ret.push_back(ParamDesc("link_time")
.set_local_name(_("Link Time"))
.set_description(_("Start time of the loop for the value node Timeline"))
);
ret.push_back(ParamDesc("local_time")
.set_local_name(_("Local Time"))
.set_description(_("The time when the resulted loop starts"))
);
ret.push_back(ParamDesc("duration")
.set_local_name(_("Duration"))
.set_description(_("Length of the loop"))
);
return ret;
}
示例4: time
LinkableValueNode::Vocab
ValueNode_Linear::get_children_vocab_vfunc()const
{
if(children_vocab.size())
return children_vocab;
LinkableValueNode::Vocab ret;
Type &type(get_type());
if (type == type_angle
|| type == type_color
|| type == type_integer
|| type == type_real
|| type == type_time)
{
ret.push_back(ParamDesc(ValueBase(),"slope")
.set_local_name(_("Rate"))
.set_description(_("Value that is multiplied by the current time (in seconds)"))
);
}
else
{
ret.push_back(ParamDesc(ValueBase(),"slope")
.set_local_name(_("Slope"))
.set_description(_("Value that is multiplied by the current time (in seconds)"))
);
}
ret.push_back(ParamDesc(ValueBase(),"offset")
.set_local_name(_("Offset"))
.set_description(_("Returned value when the current time is zero"))
);
return ret;
}
示例5: time
LinkableValueNode::Vocab
ValueNode_Linear::get_children_vocab_vfunc()const
{
if(children_vocab.size())
return children_vocab;
LinkableValueNode::Vocab ret;
switch(get_type())
{
case ValueBase::TYPE_ANGLE:
case ValueBase::TYPE_COLOR:
case ValueBase::TYPE_INTEGER:
case ValueBase::TYPE_REAL:
case ValueBase::TYPE_TIME:
ret.push_back(ParamDesc(ValueBase(),"slope")
.set_local_name(_("Rate"))
.set_description(_("Value that is multiplied by the current time (in seconds)"))
);
break;
case ValueBase::TYPE_VECTOR:
default:
ret.push_back(ParamDesc(ValueBase(),"slope")
.set_local_name(_("Slope"))
.set_description(_("Value that is multiplied by the current time (in seconds)"))
);
}
ret.push_back(ParamDesc(ValueBase(),"offset")
.set_local_name(_("Offset"))
.set_description(_("Returned value when the current time is zero"))
);
return ret;
}
示例6:
LinkableValueNode::Vocab
ValueNode_IntString::get_children_vocab_vfunc()const
{
if(children_vocab.size())
return children_vocab;
LinkableValueNode::Vocab ret;
ret.push_back(ParamDesc(ValueBase(),"int")
.set_local_name(_("Int"))
.set_description(_("Value to convert to string"))
);
ret.push_back(ParamDesc(ValueBase(),"width")
.set_local_name(_("Width"))
.set_description(_("Width of the string"))
);
ret.push_back(ParamDesc(ValueBase(),"zero_pad")
.set_local_name(_("Zero Padded"))
.set_description(_("When checked, the string is left filled with zeros to match the width"))
);
return ret;
}
示例7:
LinkableValueNode::Vocab
ValueNode_TimedSwap::get_children_vocab_vfunc()const
{
if(children_vocab.size())
return children_vocab;
LinkableValueNode::Vocab ret;
ret.push_back(ParamDesc(ValueBase(),"before")
.set_local_name(_("Before"))
.set_description(_("The value node returned when current time is before 'time' - 'length'"))
);
ret.push_back(ParamDesc(ValueBase(),"after")
.set_local_name(_("After"))
.set_description(_("The value node returned when current time is after 'time'"))
);
ret.push_back(ParamDesc(ValueBase(),"time")
.set_local_name(_("Time"))
.set_description(_("The time when the linear interpolation ends"))
);
ret.push_back(ParamDesc(ValueBase(),"length")
.set_local_name(_("Length"))
.set_description(_("The length of time when the linear interpolation between 'Before' and 'After' is made"))
);
return ret;
}
示例8:
LinkableValueNode::Vocab
ValueNode_Join::get_children_vocab_vfunc()const
{
if(children_vocab.size())
return children_vocab;
LinkableValueNode::Vocab ret;
ret.push_back(ParamDesc(ValueBase(),"strings")
.set_local_name(_("Strings"))
.set_description(_("The List of strings to join"))
);
ret.push_back(ParamDesc(ValueBase(),"before")
.set_local_name(_("Before"))
.set_description(_("The string to place before the joined strings"))
);
ret.push_back(ParamDesc(ValueBase(),"separator")
.set_local_name(_("Separator"))
.set_description(_("The string to place between each string joined"))
);
ret.push_back(ParamDesc(ValueBase(),"after")
.set_local_name(_("After"))
.set_description(_("The string to place after the joined strings"))
);
return ret;
}
示例9:
LinkableValueNode::Vocab
ValueNode_Logarithm::get_children_vocab_vfunc()const
{
if(children_vocab.size())
return children_vocab;
LinkableValueNode::Vocab ret;
ret.push_back(ParamDesc(ValueBase(),"link")
.set_local_name(_("Link"))
.set_description(_("Value node used to calculate the Neperian logarithm"))
);
ret.push_back(ParamDesc(ValueBase(),"epsilon")
.set_local_name(_("Epsilon"))
.set_description(_("Value used to compare 'link' with zero "))
);
ret.push_back(ParamDesc(ValueBase(),"infinite")
.set_local_name(_("Infinite"))
.set_description(_("Returned value when result tends to infinite"))
);
return ret;
}
示例10:
LinkableValueNode::Vocab
ValueNode_Reciprocal::get_children_vocab_vfunc()const
{
if(children_vocab.size())
return children_vocab;
LinkableValueNode::Vocab ret;
ret.push_back(ParamDesc(ValueBase(),"link")
.set_local_name(_("Link"))
.set_description(_("The value node used to calculate its reciprocal"))
);
ret.push_back(ParamDesc(ValueBase(),"epsilon")
.set_local_name(_("Epsilon"))
.set_description(_("The value used to decide whether 'Link' is too small to obtain its reciprocal"))
);
ret.push_back(ParamDesc(ValueBase(),"infinite")
.set_local_name(_("Infinite"))
.set_description(_("The resulting value when 'Link' < 'Epsilon'"))
);
return ret;
}
示例11:
LinkableValueNode::Vocab
ValueNode_Switch::get_children_vocab_vfunc()const
{
if(children_vocab.size())
return children_vocab;
LinkableValueNode::Vocab ret;
ret.push_back(ParamDesc(ValueBase(),"link_off")
.set_local_name(_("Link Off"))
.set_description(_("The value node returned when the switch is off"))
);
ret.push_back(ParamDesc(ValueBase(),"link_on")
.set_local_name(_("Link On"))
.set_description(_("The value node returned when the switch is on"))
);
ret.push_back(ParamDesc(ValueBase(),"switch")
.set_local_name(_("Switch"))
.set_description(_("When checked, returns 'Link On', otherwise returns 'Link Off'"))
);
return ret;
}
示例12:
LinkableValueNode::Vocab
ValueNode_Range::get_children_vocab_vfunc()const
{
if(children_vocab.size())
return children_vocab;
LinkableValueNode::Vocab ret;
ret.push_back(ParamDesc(ValueBase(),"min")
.set_local_name(_("Min"))
.set_description(_("Returned value when 'Link' is smaller"))
);
ret.push_back(ParamDesc(ValueBase(),"max")
.set_local_name(_("Max"))
.set_description(_("Returned value when 'Link' is greater"))
);
ret.push_back(ParamDesc(ValueBase(),"link")
.set_local_name(_("Link"))
.set_description(_("The value node to limit its range"))
);
return ret;
}
示例13:
LinkableValueNode::Vocab
ValueNode_DynamicList::get_children_vocab_vfunc()const
{
LinkableValueNode::Vocab ret;
for(unsigned int i=0; i<list.size();i++)
{
ret.push_back(ParamDesc(ValueBase(),strprintf("item%04d",i))
.set_local_name(etl::strprintf(_("Item %03d"),i+1))
);
}
return ret;
}
示例14:
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;
}
示例15:
LinkableValueNode::Vocab
ValueNode_Greyed::get_children_vocab_vfunc()const
{
if(children_vocab.size())
return children_vocab;
LinkableValueNode::Vocab ret;
ret.push_back(ParamDesc(ValueBase(),"link")
.set_local_name(_("Link"))
.set_description(_("The greyed value"))
);
return ret;
}