X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchAPI%2FSketchAPI_Translation.h;h=91c48b157ef90d67e0bf024551333a760df79286;hb=fc72d43b677baa05ae7fd317346fd8b723b799ed;hp=aee6e38bfab883e8fcad08b2efe09378b89762ba;hpb=63f80d9837b4dcb16e9fafc3b07fac36f6f7b00d;p=modules%2Fshaper.git diff --git a/src/SketchAPI/SketchAPI_Translation.h b/src/SketchAPI/SketchAPI_Translation.h index aee6e38bf..91c48b157 100644 --- a/src/SketchAPI/SketchAPI_Translation.h +++ b/src/SketchAPI/SketchAPI_Translation.h @@ -1,15 +1,28 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D -// Name : SketchAPI_Translation.h -// Purpose: +// Copyright (C) 2014-2023 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 // -// History: -// 16/06/16 - Sergey POKHODENKO - Creation of the file #ifndef SRC_SKETCHAPI_SKETCHAPI_TRANSLATION_H_ #define SRC_SKETCHAPI_SKETCHAPI_TRANSLATION_H_ //-------------------------------------------------------------------------------------- #include "SketchAPI.h" +#include "SketchAPI_SketchEntity.h" #include @@ -61,9 +74,18 @@ public: ModelAPI_AttributeRefList, /** Translationed objects */ ) - /// List of translated objects + /// Set list of objects to be translated + SKETCHAPI_EXPORT + void setTranslationList(const std::list >& theObjects); + + /// List of translated objects. + /// [DEPRECATED]: use translatedList() instead. + SKETCHAPI_EXPORT + std::list > translated() const; + + /// List of translated objects. SKETCHAPI_EXPORT - std::list > translated() const; + std::list > translatedList() const; /// Dump wrapped feature virtual void dump(ModelHighAPI_Dumper& theDumper) const;