本文整理汇总了C++中Timeline::Layers方法的典型用法代码示例。如果您正苦于以下问题:C++ Timeline::Layers方法的具体用法?C++ Timeline::Layers怎么用?C++ Timeline::Layers使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Timeline
的用法示例。
在下文中一共展示了Timeline::Layers方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: dump
//печать анимации
void dump (const Timeline& timeline, int level)
{
print_space (level++);
printf ("Timeline '%s'\n", timeline.Name ());
dump ("layers", timeline.Layers (), level);
}
示例2: CheckTimeline
bool XflParser::CheckTimeline (Timeline& timeline)
{
bool timeline_valid = true;
for (Timeline::LayerList::Iterator layer_iter = timeline.Layers ().CreateIterator (); layer_iter; ++layer_iter)
for (Layer::FrameList::Iterator frame_iter = layer_iter->Frames ().CreateIterator (); frame_iter; ++frame_iter)
{
ICollection<FrameElement>& elements = frame_iter->Elements ();
for (size_t i = 0; i < elements.Size ();)
{
if (!CheckFrameElement (elements [i]))
{
log.Printf ("Removing invalid frame element '%s'", elements [i].Name ());
elements.Remove (i);
timeline_valid = false;
}
else
i++;
}
}
return timeline_valid;
}