//! Returns list of currently selected data objects
virtual ModuleBase_ISelection* selection() const;
- /// Activate sub-shapes selection (opens local context if it was not opened)
- /// Types has to be dined according to TopAbs_ShapeEnum
- virtual void activateSubShapesSelection(const QIntList& theTypes);
-
- /// Activate objects in the module selection modes(opens local context)
- virtual void activateModuleSelectionModes();
-
- /// Deactivate sub-shapes selection (closes local context)
- virtual void deactivateSubShapesSelection();
-
//! Returns instance of loaded module
virtual ModuleBase_IModule* module() const;
//! Returns error manager
virtual ModuleBase_IErrorMgr* errorMgr() const;
+ /// A selection activate in 3D View handler
+ virtual ModuleBase_ISelectionActivate* selectionActivate() const;
+
//! Returns currently active operation
virtual ModuleBase_Operation* currentOperation() const;
//! Returns data object by AIS
virtual ObjectPtr findPresentedObject(const AISObjectPtr& theAIS) const;
+ //! Returns true if the object is displayed
+ //! \param theObject a data object
+ virtual bool isVisible(const ObjectPtr& theObject) const;
+
//! Select features clearing previous selection.
//! If the list is empty then selection will be cleared
virtual void setSelected(const QList<std::shared_ptr<ModuleBase_ViewerPrs>>& theValues);
/// Return application main window
virtual QMainWindow* desktop() const;
+ /// Returns true if SHIFT is pressed
+ /// \return boolean value
+ virtual bool hasSHIFTPressed() const;
//! Returns workshop
XGUI_Workshop* workshop() const { return myWorkshop; }