Salome HOME
Removed not used function SimpleAISobject
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Feature.cpp
index 9916b78e5e13d90937a050cda1770ee77fdc7255..dcd2f9847d14220cffbb693f67aed8448fb87e0d 100644 (file)
@@ -31,19 +31,13 @@ SketchPlugin_Sketch* SketchPlugin_Feature::sketch()
   return mySketch;
 }
 
-AISObjectPtr SketchPlugin_Feature::simpleAISObject(std::shared_ptr<ModelAPI_Result> theRes,
-                                                   AISObjectPtr thePrevious)
-{
-  std::shared_ptr<ModelAPI_ResultConstruction> aConstr = std::dynamic_pointer_cast<
-      ModelAPI_ResultConstruction>(theRes);
-
-  std::shared_ptr<GeomAPI_Shape> aPreview;
-  if (aConstr)
-    aPreview = aConstr->shape();
 
-  AISObjectPtr aResult = thePrevious;
-  if (!aResult)
-    aResult = AISObjectPtr(new GeomAPI_AISObject());
-  aResult->createShape(aPreview);
-  return aResult;
-}
+void SketchPlugin_Feature::customisePresentation(AISObjectPtr thePrs)
+{
+  // if this is an edge
+  if (thePrs->getShapeType() == 6)
+    thePrs->setWidth(3);
+  // if this is a vertex
+  else if (thePrs->getShapeType() == 7)
+    thePrs->setPointMarker(6, 2.);
+}
\ No newline at end of file