//! 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 toActivate a flag about activation or deactivation the filters
- void activateFilters(const bool toActivate);
+ //! Clear all validated cash in the widget
+ void clearValidatedCash();
protected:
/// Creates a backup of the current values of the attribute
/// \param theValues a list of presentations.
void filterPresentations(QList<ModuleBase_ViewerPrs>& theValues);
+ /// Remove subshapes of compsolids if whole compsolid is present.
+ /// \param theValues a list of presentations.
+ void filterCompSolids(QList<ModuleBase_ViewerPrs>& theValues);
+
+ /// It obtains selection filters from the workshop and activates them in the active viewer
+ /// \param toActivate a flag about activation or deactivation the filters
+ /// \return true if the selection filter of the widget is activated in viewer context
+ bool activateFilters(const bool toActivate);
+
+ /// Block the model flush of update and intialization of attribute
+ /// \param theToBlock flag whether the model is blocked or unblocked
+ /// \param isActive out value if model is blocked, in value if model is unblocked
+ /// to be used to restore flush state when unblocked
+ /// \param isAttributeSetInitializedBlocked out value if model is blocked
+ /// in value if model is unblocked to be used to restore previous state when unblocked
+ virtual void blockAttribute(const bool& theToBlock, bool& isFlushesActived,
+ bool& isAttributeSetInitializedBlocked);
+
protected:
/// Reference to workshop
ModuleBase_IWorkshop* myWorkshop;