X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelHighAPI%2FModelHighAPI_Double.h;h=6861a7c0a3f55b9a5898acbc3ea61556841f541b;hb=95375993f1f35e4716475c0b0c8e265c082c875d;hp=59686dfa23f97789fb916a6882db8fff7cc9b16e;hpb=a94fc319f2aa64b43c9a73b5ff7063923648faec;p=modules%2Fshaper.git diff --git a/src/ModelHighAPI/ModelHighAPI_Double.h b/src/ModelHighAPI/ModelHighAPI_Double.h index 59686dfa2..6861a7c0a 100644 --- a/src/ModelHighAPI/ModelHighAPI_Double.h +++ b/src/ModelHighAPI/ModelHighAPI_Double.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// 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 @@ -12,10 +12,9 @@ // // 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 +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or -// email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #ifndef SRC_MODELHIGHAPI_MODELHIGHAPI_DOUBLE_H_ @@ -28,6 +27,7 @@ #include //-------------------------------------------------------------------------------------- class ModelAPI_AttributeDouble; +class GeomDataAPI_Point; //-------------------------------------------------------------------------------------- /**\class ModelHighAPI_Double * \ingroup CPPHighAPI @@ -53,6 +53,13 @@ public: MODELHIGHAPI_EXPORT virtual void fillAttribute(const std::shared_ptr & theAttribute) const; + /// Sets the zero-based coordinates of a point + MODELHIGHAPI_EXPORT virtual void fillAttribute( + const std::shared_ptr & thePoint, + const ModelHighAPI_Double & theX, + const ModelHighAPI_Double & theY, + const ModelHighAPI_Double & theZ) const; + private: enum VariantType { VT_DOUBLE, VT_STRING } myVariantType; double myDouble;