X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConstructionPlugin%2FConstructionPlugin_Plane.h;h=ce66bb66f32ae2d1ecc6e0c9c759398f5ee387aa;hb=ea593bc59e7e9461f6c4e2afd3f24d621edb1011;hp=15894a2f6ee7d34b13cdacf068e5c92e75fc287c;hpb=5d613df7d51faeba83c5225ac9ba78e35f80094c;p=modules%2Fshaper.git diff --git a/src/ConstructionPlugin/ConstructionPlugin_Plane.h b/src/ConstructionPlugin/ConstructionPlugin_Plane.h index 15894a2f6..ce66bb66f 100644 --- a/src/ConstructionPlugin/ConstructionPlugin_Plane.h +++ b/src/ConstructionPlugin/ConstructionPlugin_Plane.h @@ -1,8 +1,21 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: ConstructionPlugin_Plane.h -// Created: 12 Dec 2014 -// Author: Vitaly Smetannikov +// 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 +// #ifndef ConstructionPlugin_Plane_H #define ConstructionPlugin_Plane_H @@ -145,6 +158,13 @@ public: return ATTR_ID; } + /// Attribute name for perpendicular flag. + inline static const std::string& PERPENDICULAR() + { + static const std::string ATTR_ID("perpendicular"); + return ATTR_ID; + } + /// Attribute name for selected plane. inline static const std::string& PLANE() { @@ -159,11 +179,11 @@ public: return ATTR_ID; } - /// Attribute name for reverse in distance from other case - inline static const std::string& DISTANCE_REVERSE() + /// Attribute name for reverse flag. + inline static const std::string& REVERSE() { - static const std::string ATTR_DISTANCE_REVERSE_ID("distance_reverse"); - return ATTR_DISTANCE_REVERSE_ID; + static const std::string ATTR_ID("reverse"); + return ATTR_ID; } /// Attribute name for coincident point. @@ -231,9 +251,6 @@ public: /// Request for initialization of data model of the feature: adding all attributes CONSTRUCTIONPLUGIN_EXPORT virtual void initAttributes(); - /// Construction result is always recomputed on the fly - CONSTRUCTIONPLUGIN_EXPORT virtual bool isPersistentResult() {return false;} - /// Use plugin manager for features creation ConstructionPlugin_Plane();