if (theCompositeFeature) {
myFeature = theCompositeFeature->addFeature(getDescription()->operationId().toStdString());
} else {
- boost::shared_ptr<ModelAPI_Document> aDoc = document();
+ std::shared_ptr<ModelAPI_Document> aDoc = document();
myFeature = aDoc->addFeature(getDescription()->operationId().toStdString());
}
if (myFeature) { // TODO: generate an error if feature was not created
}
-boost::shared_ptr<ModelAPI_Document> ModuleBase_Operation::document() const
+std::shared_ptr<ModelAPI_Document> ModuleBase_Operation::document() const
{
return ModelAPI_Session::get()->moduleDocument();
}
double aX, anY;
if (getViewerPoint(aPrs, theViewer, aX, anY))
- aValue->setPoint(boost::shared_ptr<GeomAPI_Pnt2d>(new GeomAPI_Pnt2d(aX, anY)));
+ aValue->setPoint(std::shared_ptr<GeomAPI_Pnt2d>(new GeomAPI_Pnt2d(aX, anY)));
myPreSelection.append(aValue);
}
}
return false;
ModuleBase_WidgetValueFeature* aValue = new ModuleBase_WidgetValueFeature();
aValue->setObject(theFeature);
- aValue->setPoint(boost::shared_ptr<GeomAPI_Pnt2d>(new GeomAPI_Pnt2d(theX, theY)));
+ aValue->setPoint(std::shared_ptr<GeomAPI_Pnt2d>(new GeomAPI_Pnt2d(theX, theY)));
bool isApplyed = aActiveWgt->setValue(aValue);
delete aValue;