Nullify custom operation presentation on viewer closing in SALOME mode.
/// Returns data model object for representation of data tree in Object browser\r
virtual ModuleBase_IDocumentDataModel* dataModel() const = 0;\r
\r
+ /// Performs functionality on closing document\r
virtual void closeDocument() = 0;\r
\r
+ /// Clears specific presentations in the viewer\r
+ virtual void clearViewer() = 0;\r
+\r
/// Returns a list of modes, where the AIS objects should be activated\r
/// \param theModes a list of modes\r
virtual void activeSelectionModes(QIntList& theModes) {}\r
#include <ModuleBase_Operation.h>
#include <ModuleBase_Preferences.h>
#include <ModuleBase_ActionInfo.h>
+#include <ModuleBase_IModule.h>
#include <LightApp_Application.h>
#include <LightApp_SelectionMgr.h>
myProxyViewer->setSelector(0);
delete mySelector;
mySelector = 0;
+
+ myWorkshop->module()->clearViewer();
}
}
}
}
void PartSet_Module::closeDocument()
+{
+ clearViewer();
+}
+
+void PartSet_Module::clearViewer()
{
myCustomPrs->clearPrs();
}
/// Returns data model object for representation of data tree in Object browser
virtual ModuleBase_IDocumentDataModel* dataModel() const { return myDataModel; }
+ /// Performs functionality on closing document
virtual void closeDocument();
+ /// Clears specific presentations in the viewer
+ virtual void clearViewer();
+
/// Event Listener method
/// \param theMessage an event message
virtual void processEvent(const std::shared_ptr<Events_Message>& theMessage);