X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FConstructionPlugin%2FConstructionPlugin_Point.cpp;h=c164e44a40225855d89111b0ed14b17be1a45e2e;hb=592b8a38b3c9e2a6a7d3d1d180b1f9b5406c4415;hp=671a38cd7a1daf72a4d802470e5f3e60d2f02bdd;hpb=694482299ca580d780c221cc6a3e7574e59fd2c3;p=modules%2Fshaper.git diff --git a/src/ConstructionPlugin/ConstructionPlugin_Point.cpp b/src/ConstructionPlugin/ConstructionPlugin_Point.cpp index 671a38cd7..c164e44a4 100644 --- a/src/ConstructionPlugin/ConstructionPlugin_Point.cpp +++ b/src/ConstructionPlugin/ConstructionPlugin_Point.cpp @@ -29,9 +29,9 @@ const std::string& ConstructionPlugin_Point::getKind() void ConstructionPlugin_Point::initAttributes() { - data()->addAttribute(ConstructionPlugin_Point::X(), ModelAPI_AttributeDouble::type()); - data()->addAttribute(ConstructionPlugin_Point::Y(), ModelAPI_AttributeDouble::type()); - data()->addAttribute(ConstructionPlugin_Point::Z(), ModelAPI_AttributeDouble::type()); + data()->addAttribute(ConstructionPlugin_Point::X(), ModelAPI_AttributeDouble::typeId()); + data()->addAttribute(ConstructionPlugin_Point::Y(), ModelAPI_AttributeDouble::typeId()); + data()->addAttribute(ConstructionPlugin_Point::Z(), ModelAPI_AttributeDouble::typeId()); } void ConstructionPlugin_Point::execute() @@ -45,3 +45,13 @@ void ConstructionPlugin_Point::execute() aConstr->setShape(GeomAlgoAPI_PointBuilder::point(aPnt)); setResult(aConstr); } + +bool ConstructionPlugin_Point::customisePresentation(ResultPtr theResult, + AISObjectPtr thePrs, + std::shared_ptr theDefaultPrs) +{ + bool isCustomized = theDefaultPrs.get() != NULL && + theDefaultPrs->customisePresentation(theResult, thePrs, theDefaultPrs); + //thePrs->setPointMarker(1, 1.); // Set point as a '+' symbol + return true; +}