protected:\r
/// Sends the operation for launching\r
/// \param theOperation the operation\r
- void sendOperation(ModuleBase_Operation* theOperation);\r
+ virtual void sendOperation(ModuleBase_Operation* theOperation);\r
\r
/// Creates a new operation\r
/// \param theCmdId the operation name\r
} else {
AttributeSelectionPtr aSelectAttr = aData->selection(attributeID());
ResultPtr aResult = std::dynamic_pointer_cast<ModelAPI_Result>(theSelectedObject);
- if (aSelectAttr) {
+ if (aSelectAttr.get() != NULL) {
aSelectAttr->setValue(aResult, theShape);
isChanged = true;
}
breakOperationSequence();
}
+void PartSet_Module::sendOperation(ModuleBase_Operation* theOperation)
+{
+ // Install the document filter before any other filter
+ if (myDocumentShapeFilter.IsNull())
+ myDocumentShapeFilter = new PartSet_GlobalFilter(myWorkshop);
+ myWorkshop->viewer()->addSelectionFilter(myDocumentShapeFilter);
+
+ ModuleBase_IModule::sendOperation(theOperation);
+}
+
void PartSet_Module::operationStarted(ModuleBase_Operation* theOperation)
{
if (PartSet_SketcherMgr::isSketchOperation(theOperation)) {
else if (PartSet_SketcherMgr::isNestedSketchOperation(theOperation)) {
mySketchMgr->startNestedSketch(theOperation);
}
-
- if (myDocumentShapeFilter.IsNull())
- myDocumentShapeFilter = new PartSet_GlobalFilter(myWorkshop);
- myWorkshop->viewer()->addSelectionFilter(myDocumentShapeFilter);
}
void PartSet_Module::operationStopped(ModuleBase_Operation* theOperation)
/// Register properties of this module
virtual void registerProperties();
+ /// Sends the operation for launching
+ /// \param theOperation the operation
+ virtual void sendOperation(ModuleBase_Operation* theOperation);
+
private slots:
/// Processing of vertex selected
void onVertexSelected();