X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Face.h;h=c50e980d03e55e67be44bdd12626504e53b6d3e2;hb=f60dc9dd94d5d4b0ea07e3e3cbfd5b3028f0942d;hp=54fb506c109b6d4c0cda79c9b39f6125c40fe83f;hpb=423c10234142d14d0d5de89383f2f96a4ec5930f;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Face.h b/src/GeomAPI/GeomAPI_Face.h index 54fb506c1..c50e980d0 100644 --- a/src/GeomAPI/GeomAPI_Face.h +++ b/src/GeomAPI/GeomAPI_Face.h @@ -1,8 +1,22 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: GeomAPI_Face.h -// Created: 2 Dec 2014 -// Author: Artem ZHIDKOV +// Copyright (C) 2014-2017 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 GeomAPI_Face_H_ #define GeomAPI_Face_H_ @@ -10,6 +24,10 @@ #include class GeomAPI_Pln; +class GeomAPI_Sphere; +class GeomAPI_Cylinder; +class GeomAPI_Cone; +class GeomAPI_Torus; /**\class GeomAPI_Face * \ingroup DataModel @@ -37,7 +55,25 @@ public: /// Returns the base plane of the face (if it is planar) with location in the center of the face GEOMAPI_EXPORT std::shared_ptr getPlane() const; + + /// Returns sphere if the face is based on the spherical surface + GEOMAPI_EXPORT std::shared_ptr getSphere() const; + + /// Returns cylinder if the face is based on the cylindrical surface + GEOMAPI_EXPORT std::shared_ptr getCylinder() const; + + /// Returns cone if the face is based on the conical surface + GEOMAPI_EXPORT std::shared_ptr getCone() const; + + /// Returns torus if the face is based on the toroidal surface + GEOMAPI_EXPORT std::shared_ptr getTorus() const; + + /// Return inner point in the face + GEOMAPI_EXPORT virtual std::shared_ptr middlePoint() const; }; +//! Pointer on attribute object +typedef std::shared_ptr GeomFacePtr; + #endif