]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix PointCoordindates to PointCoordinates in SketchPlugin
authorspo <sergey.pokhodenko@opencascade.com>
Wed, 9 Dec 2015 08:38:26 +0000 (11:38 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Wed, 9 Dec 2015 09:03:04 +0000 (12:03 +0300)
src/PythonAPI/modeler/sketcher.py
src/SketchPlugin/SketchPlugin_Point.h
src/SketchPlugin/Test/TestConstraintDistance.py
src/SketchPlugin/Test/TestSketchPointLine.py
src/SketchPlugin/plugin-Sketch.xml
test.squish/suite_STANDALONE/tst_DISTANCE/test.py

index c3bad7c5c565a8db8418f4ad9204717af9fec77f..95d10eafc69ee0f0fd2ed93e9f0e00e656275532 100644 (file)
@@ -183,12 +183,12 @@ class Point():
     """Constructor"""
     ### Create the feature
     self.my = sketch.addFeature("SketchPoint")
-    geomDataAPI_Point2D( self.my.data().attribute("PointCoordindates") ).setValue(x, y)
+    geomDataAPI_Point2D( self.my.data().attribute("PointCoordinates") ).setValue(x, y)
     self.my.execute()
 
   def pointData (self):
     """Returns points attribute"""
-    return geomDataAPI_Point2D( self.my.data().attribute("PointCoordindates") )
+    return geomDataAPI_Point2D( self.my.data().attribute("PointCoordinates") )
 
   def result (self):
     """Returns result object"""
index 59995ff4310aeb44edc72c2f950f4d3e09c0c119..1e1a4f65cc842ac70804ab32dbfa3bc6368fdb60 100644 (file)
@@ -28,7 +28,7 @@ class SketchPlugin_Point : public SketchPlugin_SketchEntity
   /// Coordinates of the point
   inline static const std::string& COORD_ID()
   {
-    static const std::string MY_COORD_ID("PointCoordindates");
+    static const std::string MY_COORD_ID("PointCoordinates");
     return MY_COORD_ID;
   }
   /// Returns the kind of a feature
index 1e0880e68bbc6d980e8226c2dc433a1a11ef74b8..938c3af8a9769a82de379a85d455902250571c7b 100644 (file)
@@ -59,7 +59,7 @@ aSession.finishOperation()
 aSession.startOperation()
 aSketchPoint = aSketchFeature.addFeature("SketchPoint")
 aSketchPointCoords = geomDataAPI_Point2D(
-    aSketchPoint.attribute("PointCoordindates"))
+    aSketchPoint.attribute("PointCoordinates"))
 aSketchPointCoords.setValue(50., 50.)
 aSketchLine = aSketchFeature.addFeature("SketchLine")
 aLineAStartPoint = geomDataAPI_Point2D(aSketchLine.attribute("StartPoint"))
index b37b0f61dd8ed40904ef4567ce0cf431ce7b2909..8ff318091753d8dff555bcc7dc0d309612777104 100644 (file)
@@ -46,7 +46,7 @@ assert (len(aSketchReflist.list()) == 0)
 # aSketchPoint = aDocument.addFeature("SketchPoint")
 aSketchPoint = aSketchFeature.addFeature("SketchPoint")
 assert (aSketchPoint.getKind() == "SketchPoint")
-coords = geomDataAPI_Point2D(aSketchPoint.attribute("PointCoordindates"))
+coords = geomDataAPI_Point2D(aSketchPoint.attribute("PointCoordinates"))
 assert (coords.x() == 0)
 assert (coords.y() == 0)
 assert (not coords.isInitialized())
@@ -58,7 +58,7 @@ aSession.finishOperation()
 aSketchReflist = aSketchFeature.reflist("Features")
 assert (aSketchReflist.size() == 1)
 assert (len(aSketchReflist.list()) == 1)
-coords = geomDataAPI_Point2D(aSketchPoint.attribute("PointCoordindates"))
+coords = geomDataAPI_Point2D(aSketchPoint.attribute("PointCoordinates"))
 assert (coords.x() == 10.0)
 assert (coords.y() == 10.0)
 #=========================================================================
index a1986c159bced41d5679d563f392655c91257338..11f3449fb082bc1f4057b2abb379f7b0ebd77d1f 100644 (file)
@@ -18,7 +18,7 @@
       <!--icon=":pictures/x_point.png"-->
       </feature>
       <feature id="SketchPoint" title="Point" tooltip="Create point" icon=":icons/point.png">
-        <sketch-2dpoint_selector id="PointCoordindates" title="Point" tooltip="Point coordinates"/>
+        <sketch-2dpoint_selector id="PointCoordinates" title="Point" tooltip="Point coordinates"/>
         <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
       </feature>
       <feature id="SketchLine" title="Line" tooltip="Create line" icon=":icons/line.png">
index 7e4ecaa96227b631283cda3c4be85a7859ce9fc9..2227b8971325ae750159d2de53d158bf26c46ccd 100644 (file)
@@ -9,7 +9,7 @@ def sketch():
     
     mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), annotaion_point[0], annotaion_point[1], 0, Qt.LeftButton)
     waitFor("object.exists(':Distance.First object_QLineEdit')", 20000)
-    test.compare(str(findObject(":Distance.First object_QLineEdit").text), "SketchPoint_1/PointCoordindates")
+    test.compare(str(findObject(":Distance.First object_QLineEdit").text), "SketchPoint_1/PointCoordinates")
     waitFor("object.exists(':Distance.Second object_QLineEdit')", 20000)
     test.compare(str(findObject(":Distance.Second object_QLineEdit").text), "SketchLine_1")
     waitFor("object.exists(':Distance.ConstraintValue_ModuleBase_ParamSpinBox')", 20000)