/// \param theObject a model object\r
virtual bool canActivateSelection(const ObjectPtr& theObject) const;\r
\r
- /// Returns true if the given selection mode can be activated for the given presentgation\r
- /// \param theIO an object presentation\r
- /// \param theMode selection mode\r
- virtual bool canActivateSelectionMode(const Handle(AIS_InteractiveObject)& theIO, int theMode) const { return true; }\r
-\r
- /// Returns true if the given selection mode must be deactivated for the given presentgation in any case\r
- /// \param theIO an object presentation\r
- /// \param theMode selection mode\r
- virtual bool needDeactivateSelectionMode(const Handle(AIS_InteractiveObject)& theIO, int theMode) const { return false; }\r
-\r
/// Reacts to the delete action in module\r
/// \returns true if the action is processed\r
virtual bool deleteObjects() { return false; };\r
/// \param theModes a list of modes\r
virtual void activeSelectionModes(QIntList& theModes) {}\r
\r
+ /// Appends specific selection modes for the module to the list of types\r
+ /// \param theTypes a selection modes to be extended\r
+ virtual void customSubShapesSelectionModes(QIntList& theTypes) {}\r
+\r
/// Activate custom presentation for the object. Default realization is empty.\r
/// \param theFeature a feature instance\r
/// \param theFlag a flag of level of customization, which means that only part of sub-elements\r