}
}
+void PartSet_Module::onBeforeObjectErase(ObjectPtr theObject, AISObjectPtr theAIS)
+{
+ // it should be recomputed in order to disappear in the viewer if the corresponded object
+ // is erased
+ if (myCustomPrs->isActive())
+ myCustomPrs->customize(theObject);
+}
+
void PartSet_Module::onViewTransformed(int theTrsfType)
{
// Set length of arrows constant in pixel size
/// \param theAIS a presentation object
virtual void onObjectDisplayed(ObjectPtr theObject, AISObjectPtr theAIS);
+ /// Slot called on before object erase
+ /// \param theObject a data object
+ /// \param theAIS a presentation object
+ virtual void onBeforeObjectErase(ObjectPtr theObject, AISObjectPtr theAIS);
+
/// Called on transformation in current viewer
/// \param theTrsfType type of tranformation
void onViewTransformed(int theTrsfType = 2);