OCP icon indicating copy to clipboard operation
OCP copied to clipboard

No binding for SelectMgr_IndexedMapOfOwner type

Open russelmann opened this issue 2 years ago • 2 comments

Calling method EntityOwners of AIS_InteractiveContext requires data type SelectMgr_IndexedMapOfOwner which seems to be missing in module SelectMgr of OCP. Calling the function contains the following report:

TypeError: EntityOwners(): incompatible function arguments. The following argument types are supported:
    1. (self: OCP.AIS.AIS_InteractiveContext, theOwners: NCollection_Shared<NCollection_IndexedMap<opencascade::handle<SelectMgr_EntityOwner>,NCollection_DefaultHasher<opencascade::handle<SelectMgr_EntityOwner> > >,void>, theIObj: OCP.AIS.AIS_InteractiveObject, theMode: int = -1) -> Tuple[]

I guess the annotation for argument theOwners is an additional indication that the underlying C++ type is not associated with any Python type. I wonder if it would be possible to enable this method in OCP.

russelmann avatar Feb 04 '22 15:02 russelmann