// Created on: 1993-04-30 // Created by: Yves FRICAUD // Copyright (c) 1993-1999 Matra Datavision // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with special exception defined in the file // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT // distribution for complete text of the license and disclaimer of any warranty. // // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. #ifndef _MAT_Arc_HeaderFile #define _MAT_Arc_HeaderFile #include #include #include #include #include #include #include class MAT_BasicElt; class MAT_Node; class Standard_DomainError; class MAT_Arc; DEFINE_STANDARD_HANDLE(MAT_Arc, Standard_Transient) //! An Arc is associated to each Bisecting of the mat. class MAT_Arc : public Standard_Transient { public: Standard_EXPORT MAT_Arc(const Standard_Integer ArcIndex, const Standard_Integer GeomIndex, const Handle(MAT_BasicElt)& FirstElement, const Handle(MAT_BasicElt)& SecondElement); //! Returns the index of in Graph.theArcs. Standard_EXPORT Standard_Integer Index() const; //! Returns the index associated of the geometric //! representation of . Standard_EXPORT Standard_Integer GeomIndex() const; //! Returns one of the BasicElt equidistant from . Standard_EXPORT Handle(MAT_BasicElt) FirstElement() const; //! Returns the other BasicElt equidistant from . Standard_EXPORT Handle(MAT_BasicElt) SecondElement() const; //! Returns one Node extremity of . Standard_EXPORT Handle(MAT_Node) FirstNode() const; //! Returns the other Node extremity of . Standard_EXPORT Handle(MAT_Node) SecondNode() const; //! an Arc has two Node, if egal one //! Returns the other. //! //! if is not oh Standard_EXPORT Handle(MAT_Node) TheOtherNode (const Handle(MAT_Node)& aNode) const; //! Returnst True is there is an arc linked to //! the Node located on the side