X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConstructionPlugin%2FConstructionPlugin_Point.cpp;h=e5d40b7c1e163eca0c1890103248da3cf7acd62f;hb=eff356718b41364a03e808e5a6c790ac718a572d;hp=b3feb1999331399f2f074f7d7cc394f388c18fef;hpb=211b4c8a95cbab590adbcdfd4c52241109d75ef1;p=modules%2Fshaper.git diff --git a/src/ConstructionPlugin/ConstructionPlugin_Point.cpp b/src/ConstructionPlugin/ConstructionPlugin_Point.cpp index b3feb1999..e5d40b7c1 100644 --- a/src/ConstructionPlugin/ConstructionPlugin_Point.cpp +++ b/src/ConstructionPlugin/ConstructionPlugin_Point.cpp @@ -33,14 +33,13 @@ const std::string& ConstructionPlugin_Point::getKind() //================================================================================================== void ConstructionPlugin_Point::initAttributes() { - data()->addAttribute(CREATION_METHOD(), ModelAPI_AttributeString::typeId()); + //data()->addAttribute(CREATION_METHOD(), ModelAPI_AttributeString::typeId()); data()->addAttribute(X(), ModelAPI_AttributeDouble::typeId()); data()->addAttribute(Y(), ModelAPI_AttributeDouble::typeId()); data()->addAttribute(Z(), ModelAPI_AttributeDouble::typeId()); -/* - data()->addAttribute(EDGE(), ModelAPI_AttributeSelection::typeId()); + /*data()->addAttribute(EDGE(), ModelAPI_AttributeSelection::typeId()); data()->addAttribute(DISTANCE_VALUE(), ModelAPI_AttributeDouble::typeId()); data()->addAttribute(DISTANCE_PERCENT(), ModelAPI_AttributeBoolean::typeId()); data()->addAttribute(REVERSE(), ModelAPI_AttributeBoolean::typeId()); @@ -52,16 +51,15 @@ void ConstructionPlugin_Point::initAttributes() data()->addAttribute(SECOND_LINE(), ModelAPI_AttributeSelection::typeId()); data()->addAttribute(INTERSECTION_LINE(), ModelAPI_AttributeSelection::typeId()); - data()->addAttribute(INTERSECTION_PLANE(), ModelAPI_AttributeSelection::typeId()); -*/ - string("creation_method")->setValue("by_xyz"); + data()->addAttribute(INTERSECTION_PLANE(), ModelAPI_AttributeSelection::typeId());*/ } //================================================================================================== void ConstructionPlugin_Point::execute() { GeomShapePtr aShape = createByXYZ(); -/* GeomShapePtr aShape; + + /*GeomShapePtr aShape; std::string aCreationMethod = string(CREATION_METHOD())->value(); if(aCreationMethod == CREATION_METHOD_BY_XYZ()) { @@ -74,8 +72,8 @@ void ConstructionPlugin_Point::execute() aShape = createByLinesIntersection(); } else if(aCreationMethod == CREATION_METHOD_BY_LINE_AND_PLANE_INTERSECTION()) { aShape = createByLineAndPlaneIntersection(); - } - */ + }*/ + if(!aShape.get()) { return; } @@ -104,7 +102,7 @@ std::shared_ptr ConstructionPlugin_Point::createByXYZ() real(Z())->value()); } -//================================================================================================== +/*//================================================================================================== std::shared_ptr ConstructionPlugin_Point::createByDistanceOnEdge() { // Get edge. @@ -189,4 +187,4 @@ std::shared_ptr ConstructionPlugin_Point::createByLineAndPlaneIn std::shared_ptr aFace(new GeomAPI_Face(aPlaneShape)); return GeomAlgoAPI_PointBuilder::vertexByIntersection(anEdge, aFace); -} +}*/