-// Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
-
-// File: SketchPlugin_MultiRotation.h
-// Created: 21 Apr 2015
-// Author: Artem ZHIDKOV
+// Copyright (C) 2014-2023 CEA, EDF
+//
+// 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
+//
#ifndef SketchPlugin_MultiRotation_H_
#define SketchPlugin_MultiRotation_H_
static const std::string MY_ANGLE_ID("MultiRotationAngle");
return MY_ANGLE_ID;
}
- /// End point of translation
- inline static const std::string& ANGLE_FULL_ID()
- {
- static const std::string MY_ANGLE_FULL_ID("MultiRotationFullAngle");
- return MY_ANGLE_FULL_ID;
- }
/// Total number of objects, initial and translated objects
inline static const std::string& NUMBER_OF_OBJECTS_ID()
return MY_NUMBER_OF_OBJECTS_ID;
}
+ /// Name of the flag to reverse rotation
+ inline static const std::string& REVERSED_ID()
+ {
+ static const std::string MY_REVERSED_ID("MultiRotationReversed");
+ return MY_REVERSED_ID;
+ }
+
/// \brief Creates a new part document if needed
SKETCHPLUGIN_EXPORT virtual void execute();
/// Returns the AIS preview
SKETCHPLUGIN_EXPORT virtual AISObjectPtr getAISObject(AISObjectPtr thePrevious);
+ /// removes all fields from this feature: results, data, etc
+ SKETCHPLUGIN_EXPORT virtual void erase();
+
/// \brief Use plugin manager for features creation
SketchPlugin_MultiRotation();
private:
ObjectPtr copyFeature(ObjectPtr theObject);
- void rotateFeature(ObjectPtr theInitial, ObjectPtr theTarget,
- double theCenterX, double theCenterY, double theAngle);
+ //void rotateFeature(ObjectPtr theInitial, ObjectPtr theTarget,
+ // double theCenterX, double theCenterY, double theAngle);
bool updateFullAngleValue();
-private:
- bool myBlockAngle; /// a boolean state to avoid recusive angle change in attributeChanged
+ bool isUpdatingAngle;
};
#endif