Tue, 11/29/2005 - 04:19
Forums:
Hi guys,
I have hilighted an object, and I want to try get ride of the hikight. what should I do? Should I change the color of the object and redisplay it?
if so, I have tried it. and it wasn't working.
Please help me...
thanks
Tue, 11/29/2005 - 13:47
Hallo howard,
Try to use the following code with myAISC as your interactive context:
for (myAISC->InitSelected(); myAISC->MoreSelected(); myAISC->NextSelected()) // Get all Selections
{ Handle_AIS_InteractiveObject Current = myAISC->Current();
myAISC->AddOrRemoveSelected(Current, Standard_False); // Switch the selected state
}
perhaps you will also have to update the viewer context
myAISC->UpdateCurrentViewer();
good luck
Karl-Heinz