for (int aGroupIndex = 0; aGroupIndex < aGroupCount; ++aGroupIndex)
{
ResultGroupPtr aResultGroup =
- std::dynamic_pointer_cast<ModelAPI_ResultGroup>((*aDoc)->object(ModelAPI_ResultGroup::group(), aGroupIndex));
+ std::dynamic_pointer_cast<ModelAPI_ResultGroup>((*aDoc)->object(ModelAPI_ResultGroup::group(),
+ aGroupIndex));
if (!aResultGroup.get() || !aResultGroup->shape().get())
continue;
AttributeSelectionListPtr aNewSelectionList = aNewGroupFeature->selectionList("group_list");
aNewSelectionList->setSelectionType (aSelectionList->selectionType());
- GeomAPI_Shape::ShapeType aTypeOfShape = GeomAPI_Shape::shapeTypeByStr (aSelectionList->selectionType());
+ GeomAPI_Shape::ShapeType aTypeOfShape =
+ GeomAPI_Shape::shapeTypeByStr(aSelectionList->selectionType());
for (int aLocalSelIndex = 0; aLocalSelIndex < aSelectionList->size(); aLocalSelIndex++) {
setImpl(new Handle(AIS_InteractiveObject)(aPerpendicular));
} else {
- Handle(PrsDim_PerpendicularRelation) aPerpendicular = Handle(PrsDim_PerpendicularRelation)::DownCast(
- anAIS);
+ Handle(PrsDim_PerpendicularRelation) aPerpendicular =
+ Handle(PrsDim_PerpendicularRelation)::DownCast(anAIS);
if (!aPerpendicular.IsNull()) {
aPerpendicular->SetFirstShape(theLine1->impl<TopoDS_Shape>());
aPerpendicular->SetSecondShape(theLine2->impl<TopoDS_Shape>());
{
for (int anIndex = theSize - 1; anIndex >= 0; --anIndex) {
ObjectPtr anObject = theDoc->object(theGroup, anIndex);
- anObject->setDisplayed((theDisplayingId == 1 && anIndex == theSize - 1) || theDisplayingId == 2);
+ anObject->setDisplayed((theDisplayingId == 1 && anIndex == theSize - 1) ||
+ theDisplayingId == 2);
}
}
return;
}
- setDisplayingByLoop(aDoc, aConstructionSize,
- ModelAPI_ResultConstruction::group(), theDisplayFromScript, aDisplayingId);
- setDisplayingByLoop(aDoc, aGroupSize, ModelAPI_ResultGroup::group(), theDisplayFromScript, aDisplayingId);
- setDisplayingByLoop(aDoc, aFieldSize, ModelAPI_ResultField::group(), theDisplayFromScript, aDisplayingId);
- setDisplayingByLoop(aDoc, aResultSize, ModelAPI_ResultBody::group(), theDisplayFromScript, aDisplayingId);
+ setDisplayingByLoop(aDoc, aConstructionSize, ModelAPI_ResultConstruction::group(),
+ theDisplayFromScript, aDisplayingId);
+ setDisplayingByLoop(aDoc, aGroupSize, ModelAPI_ResultGroup::group(),
+ theDisplayFromScript, aDisplayingId);
+ setDisplayingByLoop(aDoc, aFieldSize, ModelAPI_ResultField::group(),
+ theDisplayFromScript, aDisplayingId);
+ setDisplayingByLoop(aDoc, aResultSize, ModelAPI_ResultBody::group(),
+ theDisplayFromScript, aDisplayingId);
isDoingDisplay = false;
}
#ifdef DEBUG_RESULT_COMPSOLID
ResultPtr aRes = std::dynamic_pointer_cast<ModelAPI_Result>(anObject);
if (aRes.get()) {
- ResultCompSolidPtr aCompSolidRes = std::dynamic_pointer_cast<ModelAPI_ResultCompSolid>(aRes);
+ ResultCompSolidPtr aCompSolidRes =
+ std::dynamic_pointer_cast<ModelAPI_ResultCompSolid>(aRes);
if (aCompSolidRes.get()) {
qDebug(QString("COMPSOLID, numberOfSubs = %1")
.arg(aCompSolidRes->numberOfSubs()).toStdString().c_str());