1 // Created on: 1993-10-29
2 // Created by: Jean Marc LACHAUME
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _HatchGen_PointOnElement_HeaderFile
18 #define _HatchGen_PointOnElement_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <HatchGen_IntersectionType.hxx>
25 #include <HatchGen_IntersectionPoint.hxx>
26 #include <Standard_Boolean.hxx>
27 #include <Standard_Real.hxx>
28 #include <Standard_Integer.hxx>
29 class IntRes2d_IntersectionPoint;
33 class HatchGen_PointOnElement : public HatchGen_IntersectionPoint
40 //! ---Purpose; Creates an empty point on element
41 Standard_EXPORT HatchGen_PointOnElement();
43 //! Creates a point from an intersection point.
44 Standard_EXPORT HatchGen_PointOnElement(const IntRes2d_IntersectionPoint& Point);
46 //! Sets the intersection type at this point.
47 void SetIntersectionType (const HatchGen_IntersectionType Type);
49 //! Returns the intersection type at this point.
50 HatchGen_IntersectionType IntersectionType() const;
52 //! Tests if the point is identical to an other.
54 //! P1.myIndex = P2.myIndex
55 //! Abs (P1.myParam - P2.myParam) <= Confusion
56 //! P1.myPosit = P2.myPosit
57 //! P1.myBefore = P2.myBefore
58 //! P1.myAfter = P2.myAfter
59 //! P1.mySegBeg = P2.mySegBeg
60 //! P1.mySegEnd = P2.mySegEnd
61 //! P1.myType = P2.myType
62 Standard_EXPORT Standard_Boolean IsIdentical (const HatchGen_PointOnElement& Point, const Standard_Real Confusion) const;
64 //! Tests if the point is different from an other.
65 Standard_EXPORT Standard_Boolean IsDifferent (const HatchGen_PointOnElement& Point, const Standard_Real Confusion) const;
67 //! Dump of the point on element.
68 Standard_EXPORT void Dump (const Standard_Integer Index = 0) const;
77 HatchGen_IntersectionType myType;
89 #include <HatchGen_PointOnElement.lxx>
95 #endif // _HatchGen_PointOnElement_HeaderFile