Handle(AIS_InteractiveObject)& aIO = aCTX->DetectedInteractive();
Handle(SelectMgr_EntityOwner) aDedected = aCTX->DetectedOwner();
if (aIO->Type() == AIS_KOI_Datum)
{
if (aDedected->IsKind(STANDARD_TYPE(AIS_TrihedronOwner)))
There is no need checking AIS_InteractiveObject::Type(), as it should be enough to cast AIS_InteractiveContext::DetectedOwner() to AIS_TrihedronOwner and check for NULL.
if (Handle(AIS_TrihedronOwner) aThOwner = Handle(AIS_TrihedronOwner)::DownCast(aCTX->DetectedOwner()))
{
...
}
Mon, 11/16/2020 - 13:54
Dear friend Kadir,
Here is the answer;
Mon, 11/16/2020 - 14:15
Tip
There is no need checking AIS_InteractiveObject::Type(), as it should be enough to cast AIS_InteractiveContext::DetectedOwner() to AIS_TrihedronOwner and check for NULL.
Tue, 10/10/2023 - 13:42
Thank you very much, I could achieve my goal with your help !! ;)