From: vsv Date: Mon, 24 Aug 2015 13:02:31 +0000 (+0300) Subject: Issue #853: make '+' as default point symbol X-Git-Tag: V_1.4.0_beta4~274 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b7d04c1292699c5192b3d29be84bf2393c7ba3fa;p=modules%2Fshaper.git Issue #853: make '+' as default point symbol --- diff --git a/src/GeomAPI/GeomAPI_AISObject.cpp b/src/GeomAPI/GeomAPI_AISObject.cpp index 10d720c83..b8b5a7b22 100644 --- a/src/GeomAPI/GeomAPI_AISObject.cpp +++ b/src/GeomAPI/GeomAPI_AISObject.cpp @@ -71,8 +71,16 @@ void GeomAPI_AISObject::createShape(std::shared_ptr theShape) aShapeAIS->Set(aTDS); aShapeAIS->Redisplay(Standard_True); } - } else - setImpl(new Handle(AIS_InteractiveObject)(new AIS_Shape(aTDS))); + } else { + // Set default point as a '+' symbol + Handle(AIS_Shape) aShape = new AIS_Shape(aTDS); + Handle(Prs3d_Drawer) aDrawer = aShape->Attributes(); + if (aDrawer->HasOwnPointAspect()) + aDrawer->PointAspect()->SetTypeOfMarker(Aspect_TOM_PLUS); + else + aDrawer->SetPointAspect(new Prs3d_PointAspect(Aspect_TOM_PLUS, Quantity_NOC_YELLOW, 1.)); + setImpl(new Handle(AIS_InteractiveObject)(aShape)); + } } void GeomAPI_AISObject::createDistance(std::shared_ptr theStartPoint,