Salome HOME
Fix for the issue #2753 : error when dump/load script
[modules/shaper.git] / src / SketchAPI / SketchAPI_Rotation.h
index 2deebb5650c0c3d61f377d9a08c29cae5fcf5aa6..d776efccce7f60668db9b0371cec30f4c4002965 100644 (file)
@@ -1,15 +1,29 @@
-// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
-// Name   : SketchAPI_Rotation.h
-// Purpose: 
+// Copyright (C) 2014-2017  CEA/DEN, EDF R&D
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.salome-platform.org/ or
+// email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
 //
-// History:
-// 16/06/16 - Sergey POKHODENKO - Creation of the file
 
 #ifndef SRC_SKETCHAPI_SKETCHAPI_ROTATION_H_
 #define SRC_SKETCHAPI_SKETCHAPI_ROTATION_H_
 
 //--------------------------------------------------------------------------------------
 #include "SketchAPI.h"
+#include "SketchAPI_SketchEntity.h"
 
 #include <list>
 
@@ -40,31 +54,34 @@ public:
                      const ModelHighAPI_RefAttr & theCenter,
                      const ModelHighAPI_Double & theAngle,
                      const ModelHighAPI_Integer & theNumberOfObjects,
-                     bool theFullValue = false);
+                     bool theFullValue = false,
+                     bool theReversed  = false);
   /// Destructor
   SKETCHAPI_EXPORT
   virtual ~SketchAPI_Rotation();
 
-  INTERFACE_7(SketchPlugin_MultiRotation::ID(),
+  INTERFACE_8(SketchPlugin_MultiRotation::ID(),
               rotationList, SketchPlugin_MultiRotation::ROTATION_LIST_ID(),
               ModelAPI_AttributeRefList, /** Rotation list */,
               center, SketchPlugin_MultiRotation::CENTER_ID(),
               ModelAPI_AttributeRefAttr, /** Center */,
               angle, SketchPlugin_MultiRotation::ANGLE_ID(),
               ModelAPI_AttributeDouble, /** Angle */,
+              reversed, SketchPlugin_MultiRotation::REVERSED_ID(),
+              ModelAPI_AttributeBoolean, /** Negative angle */,
               numberOfObjects, SketchPlugin_MultiRotation::NUMBER_OF_OBJECTS_ID(),
               ModelAPI_AttributeInteger, /** Number of objects */,
-              valueType, SketchPlugin_MultiRotation::ANGLE_TYPE(), 
+              valueType, SketchPlugin_MultiRotation::ANGLE_TYPE(),
               ModelAPI_AttributeString, /** Value type */,
-              referenceObjects, SketchPlugin_MultiRotation::ENTITY_A(), 
+              referenceObjects, SketchPlugin_MultiRotation::ENTITY_A(),
               ModelAPI_AttributeRefList, /** Reference objects */,
-              rotatedObjects, SketchPlugin_MultiRotation::ENTITY_B(), 
+              rotatedObjects, SketchPlugin_MultiRotation::ENTITY_B(),
               ModelAPI_AttributeRefList, /** Rotated objects */
   )
 
   /// List of rotated objects
   SKETCHAPI_EXPORT
-  std::list<std::shared_ptr<ModelHighAPI_Interface> > rotated() const;
+  std::list<std::shared_ptr<SketchAPI_SketchEntity> > rotated() const;
 
   /// Dump wrapped feature
   virtual void dump(ModelHighAPI_Dumper& theDumper) const;