mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0031221: Visualization - selection filter in context
This commit is contained in:
@@ -180,7 +180,7 @@ AIS_SelectStatus AIS_Selection::selectOwner (const Handle(SelectMgr_EntityOwner)
|
||||
const int theSelScheme,
|
||||
const Handle(SelectMgr_Filter)& theFilter)
|
||||
{
|
||||
if (theOwner.IsNull() || !theOwner->HasSelectable() || !theFilter->IsOk (theOwner))
|
||||
if (theOwner.IsNull() || !theOwner->HasSelectable() || !theFilter->IsOk (theOwner, SelectMgr_FilterReaction_Select))
|
||||
return AIS_SS_NotDone;
|
||||
|
||||
if (theSelScheme & AIS_SelectionScheme_Add)
|
||||
|
@@ -40,11 +40,11 @@ public:
|
||||
//! more types of entity.
|
||||
Standard_EXPORT SelectMgr_AndFilter();
|
||||
|
||||
Standard_EXPORT Standard_Boolean IsOk (const Handle(SelectMgr_EntityOwner)& anobj) const Standard_OVERRIDE
|
||||
{ return Standard_False; }
|
||||
Standard_EXPORT Standard_Boolean IsOk (const Handle(SelectMgr_EntityOwner)& theObj) const Standard_OVERRIDE
|
||||
{ (void)theObj; return Standard_False; }
|
||||
|
||||
Standard_EXPORT virtual Standard_Boolean IsOk (const Handle(SelectMgr_EntityOwner)& theObj,
|
||||
const SelectMgr_FilterReaction& theReaction) const;
|
||||
const SelectMgr_FilterReaction& theReaction) const Standard_OVERRIDE;
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(SelectMgr_AndFilter,SelectMgr_CompositionFilter)
|
||||
|
@@ -76,8 +76,8 @@ public:
|
||||
//! an AIS local context, you will need to implement the
|
||||
//! virtual function ActsOn.
|
||||
Standard_EXPORT virtual Standard_Boolean IsOk (const Handle(SelectMgr_EntityOwner)& theObj,
|
||||
const SelectMgr_FilterReaction& theReaction)
|
||||
{ return IsOk (theObj); }
|
||||
const SelectMgr_FilterReaction& theReaction) const
|
||||
{ (void)theReaction; return IsOk (theObj); }
|
||||
|
||||
//! Returns true in an AIS local context, if this filter
|
||||
//! operates on a type of subshape defined in a filter
|
||||
|
Reference in New Issue
Block a user