//! Returns data object by AIS
ObjectPtr findPresentedObject(const AISObjectPtr& theAIS) const;
+ /// It obtains selection filters from the workshop and activates them in the active viewer
+ /// \param theWorkshop an active workshop
+ /// \param toActivate a flag about activation or deactivation the filters
+ void activateFilters(const bool toActivate);
+
protected:
/// Creates a backup of the current values of the attribute
/// It should be realized in the specific widget because of different
/// parameters of the current attribute
- virtual void storeAttributeValue() = 0;
+ virtual void storeAttributeValue();
/// Creates a backup of the current values of the attribute
/// It should be realized in the specific widget because of different
/// parameters of the current attribute
/// \param theValid a boolean flag, if restore happens for valid parameters
- virtual void restoreAttributeValue(const bool theValid) = 0;
+ virtual void restoreAttributeValue(const bool theValid);
/// Checks the widget validity. By default, it returns true.
/// \param theValue a selected presentation in the view
/// \return boolean value
bool isFilterActivated() const;
- /// It obtains selection filters from the workshop and activates them in the active viewer
- /// \param theWorkshop an active workshop
- /// \param toActivate a flag about activation or deactivation the filters
- void activateFilters(const bool toActivate);
-
/// Gets the validity state of the presentation in an internal map. Returns true if the valid state of value is stored
/// \param theValue a viewer presentation
/// \param theValid a valid state
protected:
ModuleBase_IWorkshop* myWorkshop; /// Reference to workshop
+ bool myIsInValidate; // the widget is in validation mode: store is performed, restore is not
private:
ObjectPtr myPresentedObject; /// back up of the filtered object