X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Wire.h;h=837039d4c15cc1473ceae00fb560bf35e80ac324;hb=4df4bd61da1ea5d357671c819a8ced6ec9ba77ac;hp=4bc0e0cd9060ee1eb577f51c6d9505514adcffb7;hpb=dfe52d15bccf7cd7d3fec2dd842625dcc5df7437;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Wire.h b/src/GeomAPI/GeomAPI_Wire.h index 4bc0e0cd9..837039d4c 100644 --- a/src/GeomAPI/GeomAPI_Wire.h +++ b/src/GeomAPI/GeomAPI_Wire.h @@ -1,68 +1,36 @@ -// File: GeomAPI_Wire.hxx -// Created: 24 Jul 2014 -// Author: Artem ZHIDKOV - -#ifndef GEOMAPI_WIRE_H_ -#define GEOMAPI_WIRE_H_ - -#include "GeomAPI.h" -#include "GeomAPI_Edge.h" -#include "GeomAPI_Pnt.h" -#include "GeomAPI_Dir.h" - -#include - -#include - -/**\class GeomAPI_Wire - * \ingroup DataModel - * \brief Interface to the edge object - */ - -class GEOMAPI_EXPORT GeomAPI_Wire : public GeomAPI_Shape +// 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_Wire_H_ +#define GeomAPI_Wire_H_ + +#include "GeomAPI_Shape.h" + +/// \class GeomAPI_Wire +/// \ingroup DataModel +/// \brief Interface to the wire object +class GeomAPI_Wire: public GeomAPI_Shape { - public: - /// Creation of empty (null) shape - GeomAPI_Wire(); - - virtual bool isVertex() const - { - return false; - } - - /// Returns whether the shape is an edge - virtual bool isEdge() const - { - return false; - } - - void addEdge(boost::shared_ptr theEdge); - std::list > getEdges(); - - /// Returns True if the wire is defined in a plane - bool hasPlane() const { return myOrigin && myNorm && myDirX && myDirY; } - - /// Set/Get origin point - void setOrigin(const boost::shared_ptr& theOrigin) { myOrigin = theOrigin; } - boost::shared_ptr origin() const { return myOrigin; } - - /// Set/Get X direction vector - void setDirX(const boost::shared_ptr& theDirX) { myDirX = theDirX; } - boost::shared_ptr dirX() const { return myDirX; } - - /// Set/Get Y direction vector - void setDirY(const boost::shared_ptr& theDirY) { myDirY = theDirY; } - boost::shared_ptr dirY() const { return myDirY; } - - /// Set/Get Normal direction vector - void setNorm(const boost::shared_ptr& theNorm) { myNorm = theNorm; } - boost::shared_ptr norm() const { return myNorm; } - -private: - boost::shared_ptr myOrigin; - boost::shared_ptr myDirX; - boost::shared_ptr myDirY; - boost::shared_ptr myNorm; +public: + /// Makes an undefined Wire. + GEOMAPI_EXPORT GeomAPI_Wire(); }; #endif