本文整理汇总了C++中OrderedTaskPoint::GetOZPoint方法的典型用法代码示例。如果您正苦于以下问题:C++ OrderedTaskPoint::GetOZPoint方法的具体用法?C++ OrderedTaskPoint::GetOZPoint怎么用?C++ OrderedTaskPoint::GetOZPoint使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OrderedTaskPoint
的用法示例。
在下文中一共展示了OrderedTaskPoint::GetOZPoint方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
void
TaskPointRenderer::DrawOZForeground(const OrderedTaskPoint &tp)
{
int offset = index - active_index;
if (mode_optional_start)
offset = -1; // render optional starts as deactivated
ozv.Draw(canvas, OZRenderer::LAYER_INACTIVE, m_proj, *tp.GetOZPoint(),
offset);
ozv.Draw(canvas, OZRenderer::LAYER_ACTIVE, m_proj, *tp.GetOZPoint(),
offset);
}
示例2: return
gcc_pure
static unsigned
get_radius(const OrderedTaskPoint &tp)
{
const ObservationZonePoint *oz = tp.GetOZPoint();
if (oz == NULL)
return Declaration::TurnPoint::SECTOR;
return (unsigned)((const CylinderZone *)oz)->getRadius();
}
示例3: switch
gcc_pure
static Declaration::TurnPoint::Shape
get_shape(const OrderedTaskPoint &tp)
{
const ObservationZonePoint *oz = tp.GetOZPoint();
if (oz == NULL)
return Declaration::TurnPoint::SECTOR;
switch (oz->shape) {
case ObservationZonePoint::LINE:
return Declaration::TurnPoint::LINE;
case ObservationZonePoint::CYLINDER:
return Declaration::TurnPoint::CYLINDER;
default:
return Declaration::TurnPoint::SECTOR;
}
}
示例4: wser
void
Serialiser::serialise(const OrderedTaskPoint& data, const TCHAR* name)
{
// do nothing
DataNode* child = m_node.add_child(_T("Point"));
child->set_attribute(_T("type"), name);
DataNode* wchild = child->add_child(_T("Waypoint"));
Serialiser wser(*wchild);
wser.serialise(data.GetWaypoint());
delete wchild;
DataNode* ochild = child->add_child(_T("ObservationZone"));
Serialiser oser(*ochild);
oser.serialise(*data.GetOZPoint());
delete ochild;
delete child;
}
示例5: GetRadius
static fixed
GetRadius(const OrderedTaskPoint &tp)
{
return GetRadius(*tp.GetOZPoint());
}