Tue, 09/18/2012 - 17:50
Forums:
i want to get the shape when i click on the item of the treectrl. and the ais_shape will be hilight.
i try this:
AIS_ListOfInteractive aList;
myAISContext->DisplayedObjects(aList);
AIS_ListIteratorOfListOfInteractive aListIterator;
for(aListIterator.Initialize(aList);aListIterator.More();aListIterator.Next())
{
myAISContext->SetSelected(aListIterator.Value());
TopoDS_Shape S =myAISContext->SelectShape(); this step will have error.
}
what shall i do?
Sat, 09/22/2012 - 01:38
1. To highlight I use hilight metohd.
2. To get the shape which corresponds to AIS_Shape. write ((AIS_shape*)aListIterator.Value())->Shape();
Fri, 09/28/2012 - 10:45
thank