How to get the shape selected by the mouse in the view?

sjwa

CAD practitioner
Hello everyone, I have a question for you
In the case where I can display all the shapes of the parts
How to get the shape selected by the mouse
By QT
thanks
 

JSlyadne

Administrator
Staff member
Hello everyone, I have a question for you
In the case where I can display all the shapes of the parts
How to get the shape selected by the mouse
By QT
thanks
Hey,

AIS_InteractiveContext provides an access to selected presentable objects. Getting a presentable object, you then can access the properties it has.

const Handle(AIS_InteractiveContext)& context = ....;
for (context->InitSelected(); context->MoreSelected(); context->NextSelected())
{
...
}
 
Top