1 // Created on: 1994-08-30
2 // Created by: Jean Yves LEBEY
3 // Copyright (c) 1994-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16 
17 #ifndef _TopOpeBRepDS_ShapeShapeInterference_HeaderFile
18 #define _TopOpeBRepDS_ShapeShapeInterference_HeaderFile
19 
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22 
23 #include <Standard_Boolean.hxx>
24 #include <TopOpeBRepDS_Config.hxx>
25 #include <TopOpeBRepDS_Interference.hxx>
26 #include <TopOpeBRepDS_Kind.hxx>
27 #include <Standard_Integer.hxx>
28 #include <Standard_OStream.hxx>
29 class TopOpeBRepDS_Transition;
30 
31 
32 class TopOpeBRepDS_ShapeShapeInterference;
33 DEFINE_STANDARD_HANDLE(TopOpeBRepDS_ShapeShapeInterference, TopOpeBRepDS_Interference)
34 
35 //! Interference
36 class TopOpeBRepDS_ShapeShapeInterference : public TopOpeBRepDS_Interference
37 {
38 
39 public:
40 
41 
42   //! a shape interfers on shape <G> with shape <S>.
43   //! examples :
44   //! create a ShapeShapeInterference describing :
45   //! vertex V of edge E1 found on edge E2 :
46   //! ST,S,GT,G = TopOpeBRepDS_EDGE,E2,TopOpeBRepDS_VERTEX,V
47   //!
48   //! create a ShapeShapeInterference describing
49   //! vertex V of edge E found on face F :
50   //! ST,S,GT,G = TopOpeBRepDS_FACE,F,TopOpeBRepDS_VERTEX,V
51   //!
52   //! <GBound> indicates if shape <G> is a bound of shape <S>.
53   //!
54   //! <SCC> :
55   //! UNSH_GEOMETRY :
56   //! <S> and <Ancestor> have any types,
57   //! <S> and <Ancestor> don't share the same geometry
58   //! SAME_ORIENTED :
59   //! <S> and <Ancestor> have identical types,
60   //! <S> and <Ancestor> orientations are IDENTICAL.
61   //! DIFF_ORIENTED :
62   //! <S> and <Ancestor> have identical types,
63   //! <S> and <Ancestor> orientations are DIFFERENT.
64   Standard_EXPORT TopOpeBRepDS_ShapeShapeInterference(const TopOpeBRepDS_Transition& T, const TopOpeBRepDS_Kind ST, const Standard_Integer S, const TopOpeBRepDS_Kind GT, const Standard_Integer G, const Standard_Boolean GBound, const TopOpeBRepDS_Config C);
65 
66   Standard_EXPORT TopOpeBRepDS_Config Config() const;
67 
68   Standard_EXPORT Standard_Boolean GBound() const;
69 
70   Standard_EXPORT void SetGBound (const Standard_Boolean b);
71 
72 
73 
74 
75   DEFINE_STANDARD_RTTIEXT(TopOpeBRepDS_ShapeShapeInterference,TopOpeBRepDS_Interference)
76 
77 protected:
78 
79 
80 
81 
82 private:
83 
84 
85   Standard_Boolean myGBound;
86   TopOpeBRepDS_Config myC;
87 
88 
89 };
90 
91 
92 
93 
94 
95 
96 
97 #endif // _TopOpeBRepDS_ShapeShapeInterference_HeaderFile
98