]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Revert back: Fix PointCoordindates to PointCoordinates in SketchPlugin. Problem with...
authorspo <sergey.pokhodenko@opencascade.com>
Mon, 14 Dec 2015 06:33:05 +0000 (09:33 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Mon, 14 Dec 2015 06:33:32 +0000 (09:33 +0300)
src/PythonAPI/model/sketcher/point.py
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 603a6234adde92835d6f24bd6d5e0a827f3878ef..ce6c2839afc77fd090a36670280a4154f97676b5 100644 (file)
@@ -12,7 +12,7 @@ class Point(Interface):
         
         # Initialize attributes of the feature
         self._point_data = geomDataAPI_Point2D(
-            self._feature.data().attribute("PointCoordinates")
+            self._feature.data().attribute("PointCoordindates")
             )
         self.setValue(x, y)
         self.execute()
index 95d10eafc69ee0f0fd2ed93e9f0e00e656275532..c3bad7c5c565a8db8418f4ad9204717af9fec77f 100644 (file)
@@ -183,12 +183,12 @@ class Point():
     """Constructor"""
     ### Create the feature
     self.my = sketch.addFeature("SketchPoint")
-    geomDataAPI_Point2D( self.my.data().attribute("PointCoordinates") ).setValue(x, y)
+    geomDataAPI_Point2D( self.my.data().attribute("PointCoordindates") ).setValue(x, y)
     self.my.execute()
 
   def pointData (self):
     """Returns points attribute"""
-    return geomDataAPI_Point2D( self.my.data().attribute("PointCoordinates") )
+    return geomDataAPI_Point2D( self.my.data().attribute("PointCoordindates") )
 
   def result (self):
     """Returns result object"""
index 1e1a4f65cc842ac70804ab32dbfa3bc6368fdb60..59995ff4310aeb44edc72c2f950f4d3e09c0c119 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("PointCoordinates");
+    static const std::string MY_COORD_ID("PointCoordindates");
     return MY_COORD_ID;
   }
   /// Returns the kind of a feature
index 938c3af8a9769a82de379a85d455902250571c7b..1e0880e68bbc6d980e8226c2dc433a1a11ef74b8 100644 (file)
@@ -59,7 +59,7 @@ aSession.finishOperation()
 aSession.startOperation()
 aSketchPoint = aSketchFeature.addFeature("SketchPoint")
 aSketchPointCoords = geomDataAPI_Point2D(
-    aSketchPoint.attribute("PointCoordinates"))
+    aSketchPoint.attribute("PointCoordindates"))
 aSketchPointCoords.setValue(50., 50.)
 aSketchLine = aSketchFeature.addFeature("SketchLine")
 aLineAStartPoint = geomDataAPI_Point2D(aSketchLine.attribute("StartPoint"))
index 8ff318091753d8dff555bcc7dc0d309612777104..b37b0f61dd8ed40904ef4567ce0cf431ce7b2909 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("PointCoordinates"))
+coords = geomDataAPI_Point2D(aSketchPoint.attribute("PointCoordindates"))
 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("PointCoordinates"))
+coords = geomDataAPI_Point2D(aSketchPoint.attribute("PointCoordindates"))
 assert (coords.x() == 10.0)
 assert (coords.y() == 10.0)
 #=========================================================================
index 11f3449fb082bc1f4057b2abb379f7b0ebd77d1f..a1986c159bced41d5679d563f392655c91257338 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="PointCoordinates" title="Point" tooltip="Point coordinates"/>
+        <sketch-2dpoint_selector id="PointCoordindates" 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 2227b8971325ae750159d2de53d158bf26c46ccd..7e4ecaa96227b631283cda3c4be85a7859ce9fc9 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/PointCoordinates")
+    test.compare(str(findObject(":Distance.First object_QLineEdit").text), "SketchPoint_1/PointCoordindates")
     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)