PartSet_Module::~PartSet_Module()
{
+ if (!myDocumentShapeFilter.IsNull())
+ myDocumentShapeFilter.Nullify();
+ if (!myPlaneFilter.IsNull())
+ myPlaneFilter.Nullify();
}
void PartSet_Module::registerValidators()
myPlaneFilter->setPlane(aPln->impl<gp_Pln>());
}
}
+ if (myDocumentShapeFilter.IsNull())
+ myDocumentShapeFilter = new ModuleBase_ShapeDocumentFilter(myWorkshop);
+ myWorkshop->viewer()->addSelectionFilter(myDocumentShapeFilter);
}
void PartSet_Module::onOperationStopped(ModuleBase_Operation* theOperation)
myCurrentSketch = CompositeFeaturePtr();
myWorkshop->viewer()->removeSelectionFilter(myPlaneFilter);
}
+ myWorkshop->viewer()->removeSelectionFilter(myDocumentShapeFilter);
}
void PartSet_Module::onPlaneSelected(const std::shared_ptr<GeomAPI_Pln>& thePln)