X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_PlanarEdges.h;h=a9cd54a31679cd0453b185caa936f52235f6b06d;hb=60e95a5502a6940c6c27ce5d561b3c684b0b0a4f;hp=af8422619f84f1e08f1b9cfe9a7be1cfd8a83c70;hpb=4fcd5da2d972334e887716499b0ea75d9d6c51c2;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_PlanarEdges.h b/src/GeomAPI/GeomAPI_PlanarEdges.h index af8422619..a9cd54a31 100644 --- a/src/GeomAPI/GeomAPI_PlanarEdges.h +++ b/src/GeomAPI/GeomAPI_PlanarEdges.h @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: GeomAPI_PlanarEdges.hxx // Created: 24 Jul 2014 // Author: Artem ZHIDKOV @@ -10,7 +12,7 @@ #include "GeomAPI_Pnt.h" #include "GeomAPI_Dir.h" -#include +#include #include @@ -25,45 +27,39 @@ class GeomAPI_PlanarEdges : public GeomAPI_Shape /// Creation of empty (null) shape GEOMAPI_EXPORT GeomAPI_PlanarEdges(); - GEOMAPI_EXPORT virtual bool isVertex() const - { - return false; - } + GEOMAPI_EXPORT virtual bool isVertex() const; /// Returns whether the shape is an edge - GEOMAPI_EXPORT virtual bool isEdge() const - { - return false; - } + GEOMAPI_EXPORT virtual bool isEdge() const; - GEOMAPI_EXPORT void addEdge(boost::shared_ptr theEdge); - GEOMAPI_EXPORT std::list > getEdges(); + GEOMAPI_EXPORT void addEdge(std::shared_ptr theEdge); + GEOMAPI_EXPORT std::list > getEdges(); /// Returns True if the wire is defined in a plane - GEOMAPI_EXPORT bool hasPlane() const { return myOrigin && myNorm && myDirX && myDirY; } + GEOMAPI_EXPORT bool hasPlane() const; /// Set/Get origin point - GEOMAPI_EXPORT void setOrigin(const boost::shared_ptr& theOrigin) - { myOrigin = theOrigin; } - GEOMAPI_EXPORT boost::shared_ptr origin() const { return myOrigin; } + GEOMAPI_EXPORT void setOrigin(const std::shared_ptr& theOrigin); + + GEOMAPI_EXPORT std::shared_ptr origin() const; /// Set/Get X direction vector - GEOMAPI_EXPORT void setDirX(const boost::shared_ptr& theDirX) { myDirX = theDirX; } - GEOMAPI_EXPORT boost::shared_ptr dirX() const { return myDirX; } + GEOMAPI_EXPORT void setDirX(const std::shared_ptr& theDirX); + GEOMAPI_EXPORT std::shared_ptr dirX() const; /// Set/Get Y direction vector - GEOMAPI_EXPORT void setDirY(const boost::shared_ptr& theDirY) { myDirY = theDirY; } - GEOMAPI_EXPORT boost::shared_ptr dirY() const { return myDirY; } + GEOMAPI_EXPORT void setDirY(const std::shared_ptr& theDirY); + GEOMAPI_EXPORT std::shared_ptr dirY() const; /// Set/Get Normal direction vector - GEOMAPI_EXPORT void setNorm(const boost::shared_ptr& theNorm) { myNorm = theNorm; } - GEOMAPI_EXPORT boost::shared_ptr norm() const { return myNorm; } + GEOMAPI_EXPORT void setNorm(const std::shared_ptr& theNorm); + GEOMAPI_EXPORT std::shared_ptr norm() const; private: - boost::shared_ptr myOrigin; - boost::shared_ptr myDirX; - boost::shared_ptr myDirY; - boost::shared_ptr myNorm; + std::shared_ptr myOrigin; + std::shared_ptr myDirX; + std::shared_ptr myDirY; + std::shared_ptr myNorm; }; #endif