X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_MultiTranslation.h;h=c27c887adb7c6994048f6960b16c1af981739c53;hb=86f4ec4eb5ff5f119914f3d44cf945b49845d8c2;hp=ed9a8f878ff8e62880fcd8c74f7d53097e8490a6;hpb=ee089fbd0d64d718380bdc443f0e3b7dfec39b26;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_MultiTranslation.h b/src/SketchPlugin/SketchPlugin_MultiTranslation.h index ed9a8f878..c27c887ad 100644 --- a/src/SketchPlugin/SketchPlugin_MultiTranslation.h +++ b/src/SketchPlugin/SketchPlugin_MultiTranslation.h @@ -1,8 +1,21 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D --> - -// File: SketchPlugin_MultiTranslation.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_MultiTranslation_H_ #define SketchPlugin_MultiTranslation_H_ @@ -59,18 +72,13 @@ class SketchPlugin_MultiTranslation : public SketchPlugin_ConstraintBase static const std::string MY_START_POINT_ID("MultiTranslationStartPoint"); return MY_START_POINT_ID; } + /// End point of translation inline static const std::string& END_POINT_ID() { static const std::string MY_END_POINT_ID("MultiTranslationEndPoint"); return MY_END_POINT_ID; } - /// End point of translation - inline static const std::string& END_FULL_POINT_ID() - { - static const std::string MY_END_FULL_POINT_ID("MultiTranslationFullEndPoint"); - return MY_END_FULL_POINT_ID; - } /// Total number of objects, initial and translated objects inline static const std::string& NUMBER_OF_OBJECTS_ID() @@ -92,14 +100,15 @@ class SketchPlugin_MultiTranslation : public SketchPlugin_ConstraintBase /// 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_MultiTranslation(); private: ObjectPtr copyFeature(ObjectPtr theObject); -private: - bool myBlockValue; /// a boolean state to avoid recusive value change in attributeChanged }; #endif