SHAPER  9.12.0
ModuleBase_ShapeDocumentFilter Class Reference

A filter which provides filtering of selection in 3d viewer. More...

Inheritance diagram for ModuleBase_ShapeDocumentFilter:
Inheritance graph

Public Member Functions

 ModuleBase_ShapeDocumentFilter (ModuleBase_IWorkshop *theWorkshop)
 Constructor. More...
 
virtual Standard_Boolean IsOk (const Handle &&theOwner) const
 Returns True if the given owner is acceptable for selection. More...
 
void addNonSelectableType (const QString &theType)
 Add an object type name to list of non selectable objects. More...
 
void removeNonSelectableType (const QString &theType)
 Removes an object type name from list of non selectable objects. More...
 
QStringList nonSelectableTypes () const
 Returns list of non-selectable an object type names. More...
 

Data Fields

DEFINE_STANDARD_RTTIEXT(ModuleBase_ShapeDocumentFilter, SelectMgr_Filter) protected QStringList myNonSelectableTypes
 

Detailed Description

A filter which provides filtering of selection in 3d viewer.

Installing of this filter lets to select objects which belong to currently active document or to global document

Constructor & Destructor Documentation

◆ ModuleBase_ShapeDocumentFilter()

ModuleBase_ShapeDocumentFilter::ModuleBase_ShapeDocumentFilter ( ModuleBase_IWorkshop theWorkshop)
inline

Constructor.

Parameters
theWorkshopinstance of workshop interface

Member Function Documentation

◆ IsOk()

Standard_Boolean ModuleBase_ShapeDocumentFilter::IsOk ( const Handle &&  theOwner) const
virtual

Returns True if the given owner is acceptable for selection.

Parameters
theOwnerthe selected owner

Reimplemented in PartSet_GlobalFilter.

◆ addNonSelectableType()

void ModuleBase_ShapeDocumentFilter::addNonSelectableType ( const QString &  theType)
inline

Add an object type name to list of non selectable objects.

Parameters
theType- a name of an object type

◆ removeNonSelectableType()

void ModuleBase_ShapeDocumentFilter::removeNonSelectableType ( const QString &  theType)
inline

Removes an object type name from list of non selectable objects.

Parameters
theType- a name of an object type

◆ nonSelectableTypes()

QStringList ModuleBase_ShapeDocumentFilter::nonSelectableTypes ( ) const
inline

Returns list of non-selectable an object type names.