X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_TestOCC.cpp;h=dc02950203fc922581494c571bb4334e2ae0e67e;hb=ac8b1dc043f53cbf4f9c2a368e0c214669c21176;hp=d56025223178272795be6ff8cb6bd0d1d6bde416;hpb=b18d3a463f8c666fbbe65f760b055f0634a338ff;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_TestOCC.cpp b/src/PartSet/PartSet_TestOCC.cpp index d56025223..dc0295020 100644 --- a/src/PartSet/PartSet_TestOCC.cpp +++ b/src/PartSet/PartSet_TestOCC.cpp @@ -18,7 +18,7 @@ #include static double myTestDelta; -static boost::shared_ptr myTestFeature; +static FeaturePtr myTestFeature; #include #include @@ -127,12 +127,12 @@ void PartSet_TestOCC::createTestLine(XGUI_Workshop* theWorkshop) ModuleBase_Operation* anOperation = theWorkshop->operationMgr()->currentOperation(); PartSet_OperationSketchBase* aPreviewOp = dynamic_cast(anOperation); - boost::shared_ptr aSketch; + FeaturePtr aSketch; if (aPreviewOp) { // create a line boost::shared_ptr aDoc = ModelAPI_PluginManager::get()->rootDocument(); - boost::shared_ptr aFeature = aDoc->addFeature( + FeaturePtr aFeature = aDoc->addFeature( PartSet_OperationSketchLine::Type().c_str()); if (aFeature) // TODO: generate an error if feature was not created aFeature->execute(); @@ -195,7 +195,7 @@ void PartSet_TestOCC::changeTestLine(XGUI_Workshop* theWorkshop) // change the line if (!myTestFeature) return; - boost::shared_ptr aFeature = myTestFeature; + FeaturePtr aFeature = myTestFeature; myTestDelta = myTestDelta - 50; double aDelta = myTestDelta; @@ -204,7 +204,7 @@ void PartSet_TestOCC::changeTestLine(XGUI_Workshop* theWorkshop) boost::shared_ptr aPreview = PartSet_OperationSketchLine::preview(aFeature); Handle(AIS_InteractiveObject) aPrevAIS; - boost::shared_ptr aSketch;//NULL + FeaturePtr aSketch;//NULL Handle(AIS_InteractiveObject) anAIS = PartSet_Presentation::createPresentation( aFeature, aSketch, aPreview ? aPreview->impl() : TopoDS_Shape(),