1 // Created on: 1993-06-23
2 // Created by: Jean Yves LEBEY
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 _TopOpeBRepDS_Interference_HeaderFile
18 #define _TopOpeBRepDS_Interference_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <TopOpeBRepDS_Transition.hxx>
24 #include <Standard_Integer.hxx>
25 #include <TopOpeBRepDS_Kind.hxx>
26 #include <MMgt_TShared.hxx>
27 #include <Standard_Boolean.hxx>
28 #include <Standard_OStream.hxx>
29 class TopOpeBRepDS_Transition;
30 class TCollection_AsciiString;
33 class TopOpeBRepDS_Interference;
34 DEFINE_STANDARD_HANDLE(TopOpeBRepDS_Interference, MMgt_TShared)
36 //! An interference is the description of the
37 //! attachment of a new geometry on a geometry. For
38 //! example an intersection point on an Edge or on a
41 //! The Interference contains the following data :
43 //! - Transition : How the interference separates the
44 //! existing geometry in INSIDE and OUTSIDE.
46 //! - SupportType : Type of the object supporting the
47 //! interference. (FACE, EDGE, VERTEX, SURFACE, CURVE).
49 //! - Support : Index in the data structure of the
50 //! object supporting the interference.
52 //! - GeometryType : Type of the geometry of the
53 //! interference (SURFACE, CURVE, POINT).
55 //! - Geometry : Index in the data structure of the
57 class TopOpeBRepDS_Interference : public MMgt_TShared
63 Standard_EXPORT TopOpeBRepDS_Interference();
65 Standard_EXPORT TopOpeBRepDS_Interference(const TopOpeBRepDS_Transition& Transition, const TopOpeBRepDS_Kind SupportType, const Standard_Integer Support, const TopOpeBRepDS_Kind GeometryType, const Standard_Integer Geometry);
67 Standard_EXPORT TopOpeBRepDS_Interference(const Handle(TopOpeBRepDS_Interference)& I);
69 Standard_EXPORT const TopOpeBRepDS_Transition& Transition() const;
71 Standard_EXPORT TopOpeBRepDS_Transition& ChangeTransition();
73 Standard_EXPORT void Transition (const TopOpeBRepDS_Transition& T);
75 //! return GeometryType + Geometry + SupportType + Support
76 Standard_EXPORT void GKGSKS (TopOpeBRepDS_Kind& GK, Standard_Integer& G, TopOpeBRepDS_Kind& SK, Standard_Integer& S) const;
78 Standard_EXPORT TopOpeBRepDS_Kind SupportType() const;
80 Standard_EXPORT Standard_Integer Support() const;
82 Standard_EXPORT TopOpeBRepDS_Kind GeometryType() const;
84 Standard_EXPORT Standard_Integer Geometry() const;
86 Standard_EXPORT void SetGeometry (const Standard_Integer GI);
88 Standard_EXPORT void SupportType (const TopOpeBRepDS_Kind ST);
90 Standard_EXPORT void Support (const Standard_Integer S);
92 Standard_EXPORT void GeometryType (const TopOpeBRepDS_Kind GT);
94 Standard_EXPORT void Geometry (const Standard_Integer G);
96 Standard_EXPORT Standard_Boolean HasSameSupport (const Handle(TopOpeBRepDS_Interference)& Other) const;
98 Standard_EXPORT Standard_Boolean HasSameGeometry (const Handle(TopOpeBRepDS_Interference)& Other) const;
104 DEFINE_STANDARD_RTTIEXT(TopOpeBRepDS_Interference,MMgt_TShared)
114 TopOpeBRepDS_Transition myTransition;
115 Standard_Integer mySupport;
116 Standard_Integer myGeometry;
117 TopOpeBRepDS_Kind mySupportType;
118 TopOpeBRepDS_Kind myGeometryType;
129 #endif // _TopOpeBRepDS_Interference_HeaderFile