#include "ModuleBase_IWorkshop.h"\r
\r
#include <ModelAPI_Feature.h>\r
+#include <ModelAPI_Attribute.h>\r
+\r
+#include <GeomAPI_Shape.h>\r
\r
#include <QString>\r
#include <QObject>\r
/// \param theObject a model object\r
virtual bool canDisplayObject(const ObjectPtr& theObject) const;\r
\r
+ /// Make some functionality after the objects are hidden in viewer\r
+ /// \param theObjects a list of hidden objects\r
+ virtual void processHiddenObject(const std::list<ObjectPtr>& theObjects) {};\r
+\r
/// Returns true if selection for the object can be activate.\r
/// By default a result or feature of the current operation can not be activated\r
/// \param theObject a model object\r
/// Default realization is empty\r
virtual void beforeOperationStopped(ModuleBase_Operation* theOperation) {};\r
\r
+ /// Finds a shape by attribute if it is possible\r
+ /// \param theAttribute an attribute\r
+ /// \return a geom shape\r
+ virtual GeomShapePtr findShape(const AttributePtr& theAttribute) = 0;\r
+\r
+ /// Finds an attribute by geom shape if it is possible\r
+ /// \param theObject an object of the attribute\r
+ /// \param theGeomShape a geom shape\r
+ /// \return theAttribute\r
+ virtual AttributePtr findAttribute(const ObjectPtr& theObject,\r
+ const GeomShapePtr& theGeomShape) = 0;\r
+\r
signals:\r
/// Signal which is emitted when operation is launched\r
void operationLaunched();\r