本文整理汇总了C++中Marker::ops方法的典型用法代码示例。如果您正苦于以下问题:C++ Marker::ops方法的具体用法?C++ Marker::ops怎么用?C++ Marker::ops使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Marker
的用法示例。
在下文中一共展示了Marker::ops方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: drawMarkers
void Graph::drawMarkers(Drawable drawable, int under)
{
for (ChainLink* link = Chain_LastLink(markers_.displayList); link;
link = Chain_PrevLink(link)) {
Marker* markerPtr = (Marker*)Chain_GetValue(link);
MarkerOptions* mops = (MarkerOptions*)markerPtr->ops();
if ((mops->drawUnder != under) || markerPtr->clipped_ || mops->hide)
continue;
if (isElementHidden(markerPtr))
continue;
markerPtr->draw(drawable);
}
}
示例2: mapMarkers
void Graph::mapMarkers()
{
for (ChainLink* link = Chain_FirstLink(markers_.displayList); link;
link = Chain_NextLink(link)) {
Marker* markerPtr = (Marker*)Chain_GetValue(link);
MarkerOptions* mops = (MarkerOptions*)markerPtr->ops();
if (mops->hide)
continue;
if ((flags & MAP_MARKERS) || (markerPtr->flags & MAP_ITEM)) {
markerPtr->map();
markerPtr->flags &= ~MAP_ITEM;
}
}
flags &= ~MAP_MARKERS;
}
示例3: printMarkers
void Graph::printMarkers(PSOutput* psPtr, int under)
{
for (ChainLink* link = Chain_LastLink(markers_.displayList); link;
link = Chain_PrevLink(link)) {
Marker* markerPtr = (Marker*)Chain_GetValue(link);
MarkerOptions* mops = (MarkerOptions*)markerPtr->ops();
if (mops->drawUnder != under)
continue;
if (mops->hide)
continue;
if (isElementHidden(markerPtr))
continue;
psPtr->format("%% Marker \"%s\" is a %s.\n",
markerPtr->name_, markerPtr->className());
markerPtr->print(psPtr);
}
}
示例4: nearestMarker
Marker* Graph::nearestMarker(int x, int y, int under)
{
Point2d point;
point.x = (double)x;
point.y = (double)y;
for (ChainLink* link = Chain_FirstLink(markers_.displayList); link;
link = Chain_NextLink(link)) {
Marker* markerPtr = (Marker*)Chain_GetValue(link);
MarkerOptions* mops = (MarkerOptions*)markerPtr->ops();
if ((markerPtr->flags & MAP_ITEM) || mops->hide)
continue;
if (isElementHidden(markerPtr))
continue;
if (mops->drawUnder == under)
if (markerPtr->pointIn(&point))
return markerPtr;
}
return NULL;
}