{
case 0:
{
- DEBTRACE("Bounding box selection");
- AIS_PointCloud::ComputeSelection( theSelection, SM_BndBox);
+ DEBTRACE("Points selection");
+ AIS_PointCloud::ComputeSelection( theSelection, SM_Points);
break;
}
case 1:
{
DEBTRACE("Subset of points detection");
- AIS_PointCloud::ComputeSelection( theSelection, SM_SubsetOfPoints ); // SM_Points ?
+ AIS_PointCloud::ComputeSelection( theSelection, SM_SubsetOfPoints );
break;
}
default:
{
- DEBTRACE("Do Nothing");
- return;
+ DEBTRACE("Bounding box selection");
+ AIS_PointCloud::ComputeSelection( theSelection, SM_BndBox);
+ break;
}
}
DEBTRACE("bathy name: " << bath->GetShape()->getObject()->GetName().toStdString());
ctx->Deactivate(bath);
//ctx->Activate( bath, aSelectionMode, Standard_True );
- ctx->SetSelectionModeActive (bath, aSelectionMode, Standard_True, AIS_SelectionModesConcurrency_Multiple, Standard_False);
+ ctx->SetSelectionModeActive (bath, aSelectionMode, Standard_True, AIS_SelectionModesConcurrency_Single, Standard_False);
bath->SetAutoHilight( Standard_False ); // True bloque le passage dans hilightSelected...
// DEBTRACE("immediateMode: " << ctx->MainPrsMgr()->IsImmediateModeOn());
// if (!ctx->MainPrsMgr()->IsImmediateModeOn())
bath->SetAutoHilight( Standard_True );
bath->GetShape()->TextLabels( false );
ctx->Deactivate( bath );
- ctx->SetSelectionModeActive (bath, 0, Standard_True, AIS_SelectionModesConcurrency_Multiple, Standard_False);
+ ctx->SetSelectionModeActive (bath, 2, Standard_True, AIS_SelectionModesConcurrency_Multiple, Standard_False);
}
//ctx->CloseLocalContext( -1, Standard_True );
}