]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fixed execute() calls on features creation from CPP High API
authordbv <dbv@opencascade.com>
Tue, 14 Jun 2016 15:44:49 +0000 (18:44 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Fri, 17 Jun 2016 11:41:08 +0000 (14:41 +0300)
src/FeaturesAPI/FeaturesAPI_Placement.cpp
src/FeaturesAPI/FeaturesAPI_Rotation.cpp
src/FeaturesAPI/FeaturesAPI_Translation.cpp

index e071487f189c3157f63fb977dd05fec608cf82c8..e704114179d49c3ec5f7fdd076323663f5952fef 100644 (file)
@@ -25,10 +25,10 @@ FeaturesAPI_Placement::FeaturesAPI_Placement(const std::shared_ptr<ModelAPI_Feat
 : ModelHighAPI_Interface(theFeature)
 {
   if(initialize()) {
-    setObjects(theObjects);
-    setStartShape(theStartShape);
-    setEndShape(theEndShape);
-    setReverseDirection(theReverseDirection);
+    fillAttribute(theObjects, myobjects);
+    fillAttribute(theStartShape, mystartShape);
+    fillAttribute(theEndShape, myendShape);
+    fillAttribute(theReverseDirection, myreverseDirection);
     setCentering(theCentering);
   }
 }
index fdc8996deefe0cb8e74cffebb8a73ca1e6206ad8..053a10f7df6ab8dac3019d9e50a86ef22d35a670 100644 (file)
@@ -23,8 +23,8 @@ FeaturesAPI_Rotation::FeaturesAPI_Rotation(const std::shared_ptr<ModelAPI_Featur
 : ModelHighAPI_Interface(theFeature)
 {
   if(initialize()) {
-    setMainObjects(theMainObjects);
-    setAxisObject(theAxisObject);
+    fillAttribute(theMainObjects, mymainObjects);
+    fillAttribute(theAxisObject, myaxisObject);
     setAngle(theAngle);
   }
 }
index e4c61d95458f096f6fd55c726784f1b5f304078c..5037e4bfd391126b7dc51b40e26810b96b21791b 100644 (file)
@@ -23,8 +23,8 @@ FeaturesAPI_Translation::FeaturesAPI_Translation(const std::shared_ptr<ModelAPI_
 : ModelHighAPI_Interface(theFeature)
 {
   if(initialize()) {
-    setMainObjects(theMainObjects);
-    setAxisObject(theAxisObject);
+    fillAttribute(theMainObjects, mymainObjects);
+    fillAttribute(theAxisObject, myaxisObject);
     setDistance(theDistance);
   }
 }