本文整理汇总了C++中OrderedTask::GetOptionalStartPoints方法的典型用法代码示例。如果您正苦于以下问题:C++ OrderedTask::GetOptionalStartPoints方法的具体用法?C++ OrderedTask::GetOptionalStartPoints怎么用?C++ OrderedTask::GetOptionalStartPoints使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OrderedTask
的用法示例。
在下文中一共展示了OrderedTask::GetOptionalStartPoints方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
void
TaskRenderer::Draw(const OrderedTask &task)
{
tpv.SetBoundingBox(task.GetBoundingBox(screen_bounds));
tpv.SetActiveIndex(task.GetActiveIndex());
for (unsigned i = 0; i < 4; i++) {
tpv.ResetIndex();
if (i != TaskPointRenderer::LAYER_SYMBOLS &&
i != TaskPointRenderer::LAYER_LEG) {
tpv.SetModeOptional(true);
for (const auto &tp : task.GetOptionalStartPoints())
tpv.Draw(tp, (TaskPointRenderer::Layer)i);
}
tpv.SetModeOptional(false);
for (const auto &tp : task.GetPoints())
tpv.Draw(tp, (TaskPointRenderer::Layer)i);
}
if (task.GetFactoryType() == TaskFactoryType::MAT) {
// now draw MAT circles
tpv.ResetIndex();
tpv.SetModeOptional(false);
for (const auto *i : task.GetMatPoints())
tpv.Draw(*i, (TaskPointRenderer::Layer)2);
}
}
示例2: GetTaskFactoryType
void
SaveTask(WritableDataNode &node, const OrderedTask &task)
{
node.SetAttribute(_T("type"), GetTaskFactoryType(task.GetFactoryType()));
Serialise(node, task.GetOrderedTaskSettings());
for (const auto &tp : task.GetPoints())
Serialise(node, tp, false);
for (const auto &tp : task.GetOptionalStartPoints())
Serialise(node, tp, true);
}
示例3: GetTaskFactoryType
void
Serialiser::Serialise(const OrderedTask &task)
{
node.SetAttribute(_T("type"), GetTaskFactoryType(task.GetFactoryType()));
Serialise(task.GetOrderedTaskBehaviour());
mode_optional_start = false;
for (const auto &tp : task.GetPoints())
Serialise(tp);
mode_optional_start = true;
for (const auto &tp : task.GetOptionalStartPoints())
Serialise(tp);
}
示例4:
void
TaskRenderer::Draw(const OrderedTask &task)
{
tpv.SetBoundingBox(task.GetBoundingBox(screen_bounds));
tpv.SetActiveIndex(task.GetActiveIndex());
for (unsigned i = 0; i < 4; i++) {
tpv.ResetIndex();
if (i != TaskPointRenderer::LAYER_SYMBOLS &&
i != TaskPointRenderer::LAYER_LEG) {
tpv.SetModeOptional(true);
for (const auto &tp : task.GetOptionalStartPoints())
tpv.Draw(tp, (TaskPointRenderer::Layer)i);
}
tpv.SetModeOptional(false);
for (const auto &tp : task.GetPoints())
tpv.Draw(tp, (TaskPointRenderer::Layer)i);
}
}