AIS_Interactive Context Selections

I want to have the user select an object (making it current and selected) but i want to perorm operation on all other objects in the view ( erase) - to "hide all other objects". It seems that i can only do operations on the selected objects. And if i make a local context then i cannot access the lower layer. if anyone has any advide or awnsers, it would be most heplful.

Thanks

Henry

mbd_forever's picture

Hi Henry,

when you open a local context with AIS_InteractiveContext::OpenLocalContext(), default arguments involve that you load ALL objects in this LC.

If you use AIS_InteractiveContext::OpenLocalContext(Standard_False, ...), you won't load them directly. Then, you can load the ones you need with AIS_InteractiveContext::Load(theObject).

mbd_forever