For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

AIS_Interactive Context Selections

Henry Durrant's picture
Forums: 

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