X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2FSketchAPI%2FSketchAPI_Translation.h;h=8fe15aefd8074548be535f85bfc38561847bc02c;hb=5afcc18216ad228eafcaf632c5008d1aebd3122e;hp=4e3fd270f9391d825b8faca65584b2189b88c272;hpb=7be6ffd35a5a91e67aec25716e46b44f72b985b2;p=modules%2Fshaper.git diff --git a/src/SketchAPI/SketchAPI_Translation.h b/src/SketchAPI/SketchAPI_Translation.h index 4e3fd270f..8fe15aefd 100644 --- a/src/SketchAPI/SketchAPI_Translation.h +++ b/src/SketchAPI/SketchAPI_Translation.h @@ -1,14 +1,28 @@ -// Name : SketchAPI_Translation.h -// Purpose: +// Copyright (C) 2014-2019 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 @@ -44,15 +58,26 @@ public: virtual ~SketchAPI_Translation(); INTERFACE_7(SketchPlugin_MultiTranslation::ID(), - translationList, SketchPlugin_MultiTranslation::TRANSLATION_LIST_ID(), ModelAPI_AttributeRefList, /** Translation list */, - startPoint, SketchPlugin_MultiTranslation::START_POINT_ID(), ModelAPI_AttributeRefAttr, /** Start point */, - endPoint, SketchPlugin_MultiTranslation::END_POINT_ID(), ModelAPI_AttributeRefAttr, /** Start point */, - numberOfObjects, SketchPlugin_MultiTranslation::NUMBER_OF_OBJECTS_ID(), ModelAPI_AttributeInteger, /** Number of objects */, - valueType, SketchPlugin_MultiTranslation::VALUE_TYPE(), ModelAPI_AttributeString, /** Value type */, - referenceObjects, SketchPlugin_MultiTranslation::ENTITY_A(), ModelAPI_AttributeRefList, /** Reference objects */, - translatedObjects, SketchPlugin_MultiTranslation::ENTITY_B(), ModelAPI_AttributeRefList, /** Translationed objects */ + translationList, SketchPlugin_MultiTranslation::TRANSLATION_LIST_ID(), + ModelAPI_AttributeRefList, /** Translation list */, + startPoint, SketchPlugin_MultiTranslation::START_POINT_ID(), + ModelAPI_AttributeRefAttr, /** Start point */, + endPoint, SketchPlugin_MultiTranslation::END_POINT_ID(), + ModelAPI_AttributeRefAttr, /** Start point */, + numberOfObjects, SketchPlugin_MultiTranslation::NUMBER_OF_OBJECTS_ID(), + ModelAPI_AttributeInteger, /** Number of objects */, + valueType, SketchPlugin_MultiTranslation::VALUE_TYPE(), + ModelAPI_AttributeString, /** Value type */, + referenceObjects, SketchPlugin_MultiTranslation::ENTITY_A(), + ModelAPI_AttributeRefList, /** Reference objects */, + translatedObjects, SketchPlugin_MultiTranslation::ENTITY_B(), + ModelAPI_AttributeRefList, /** Translationed objects */ ) + /// List of translated objects + SKETCHAPI_EXPORT + std::list > translated() const; + /// Dump wrapped feature virtual void dump(ModelHighAPI_Dumper& theDumper) const; };