本文整理汇总了C++中AcDbEntity::unhighlight方法的典型用法代码示例。如果您正苦于以下问题:C++ AcDbEntity::unhighlight方法的具体用法?C++ AcDbEntity::unhighlight怎么用?C++ AcDbEntity::unhighlight使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AcDbEntity
的用法示例。
在下文中一共展示了AcDbEntity::unhighlight方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: acdbOpenAcDbEntity
//.........这里部分代码省略.........
case AcDb::kOsMaskMid:
strcpy(osnapInfo, "\nOsnap:\n mid");
break;
case AcDb::kOsMaskCen:
strcpy(osnapInfo, "\nOsnap:\n center");
break;
case AcDb::kOsMaskNode:
strcpy(osnapInfo, "\nOsnap:\n node");
break;
case AcDb::kOsMaskQuad:
strcpy(osnapInfo, "\nOsnap:\n quadrant");
break;
case AcDb::kOsMaskInt:
strcpy(osnapInfo, "\nOsnap:\n intersection");
break;
case AcDb::kOsMaskIns:
strcpy(osnapInfo, "\nOsnap:\n insert");
break;
case AcDb::kOsMaskPerp:
strcpy(osnapInfo, "\nOsnap:\n perpendicular");
break;
case AcDb::kOsMaskTan:
strcpy(osnapInfo, "\nOsnap:\n tangent");
break;
case AcDb::kOsMaskNear:
strcpy(osnapInfo, "\nOsnap:\n near");
break;
case AcDb::kOsMaskQuick:
strcpy(osnapInfo, "\nOsnap:\n quick");
break;
case AcDb::kOsMaskApint:
strcpy(osnapInfo, "\nOsnap:\n apint");
break;
case AcDb::kOsMaskImmediate:
strcpy(osnapInfo, "\nOsnap:\n immediate");
break;
case AcDb::kOsMaskAllowTan:
strcpy(osnapInfo, "\nOsnap:\n allowTan");
break;
case AcDb::kOsMaskDisablePerp:
strcpy(osnapInfo, "\nOsnap:\n DisablePerp");
break;
case AcDb::kOsMaskRelCartesian:
strcpy(osnapInfo, "\nOsnap:\n RelCartesian");
break;
case AcDb::kOsMaskRelPolar:
strcpy(osnapInfo, "\nOsnap:\n RelPolar");
break;
}
if (strlen(osnapInfo))
{
if (keyPointEntities.length())
{
strcat(osnapInfo, "\nKey entities:");
for (int i=0; i<keyPointEntities.length(); ++i)
{
if (Acad::eOk != (es = acdbOpenAcDbEntity(pEnt, keyPointEntities[i], AcDb::kForRead)))
continue;
sprintf(tempStr, "\n %s", pEnt->isA()->name());
strcat(osnapInfo, tempStr);
pEnt->close();
}
}
}
strcat(mtooltipStr, osnapInfo);
}
}
//
// Do highlighting, only the top level entity is highlighted.
//
static AcDbObjectId oldHighlightId = AcDbObjectId::kNull;
if(highlightId != oldHighlightId)
{
if (AcDbObjectId::kNull != oldHighlightId)
{
es = acdbOpenAcDbEntity(pEnt, oldHighlightId, AcDb::kForRead);
if (es == Acad::eOk)
{
es = pEnt->unhighlight();
pEnt->close();
oldHighlightId = AcDbObjectId::kNull;
}
}
es = acdbOpenAcDbEntity(pEnt, highlightId, AcDb::kForRead);
if (es == Acad::eOk)
{
es = pEnt->highlight();
pEnt->close();
oldHighlightId = highlightId;
}
}
// Turn on additional tooltip.
bAppendToTooltipStr = true;
pAdditionalTooltipString = mtooltipStr;
return Acad::eOk;
}