0031687: Draw Harness, ViewerTest - extend command vrenderparams with option updating...
[occt.git] / src / TopOpeBRepDS / TopOpeBRepDS_Interference.hxx
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
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_Interference_HeaderFile
18 #define _TopOpeBRepDS_Interference_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
23 #include <TopOpeBRepDS_Transition.hxx>
24 #include <Standard_Integer.hxx>
25 #include <TopOpeBRepDS_Kind.hxx>
26 #include <Standard_Transient.hxx>
27 #include <Standard_Boolean.hxx>
28 #include <Standard_OStream.hxx>
29 class TopOpeBRepDS_Transition;
30 class TCollection_AsciiString;
31
32
33 class TopOpeBRepDS_Interference;
34 DEFINE_STANDARD_HANDLE(TopOpeBRepDS_Interference, Standard_Transient)
35
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
39 //! Curve.
40 //!
41 //! The Interference contains the following data :
42 //!
43 //! - Transition :  How the interference  separates the
44 //! existing geometry in INSIDE and OUTSIDE.
45 //!
46 //! - SupportType : Type of  the object supporting the
47 //! interference. (FACE, EDGE, VERTEX, SURFACE, CURVE).
48 //!
49 //! - Support :  Index  in the data  structure  of the
50 //! object supporting the interference.
51 //!
52 //! - GeometryType  :   Type  of the  geometry of  the
53 //! interference (SURFACE, CURVE, POINT).
54 //!
55 //! - Geometry : Index  in the data structure  of the
56 //! geometry.
57 class TopOpeBRepDS_Interference : public Standard_Transient
58 {
59
60 public:
61
62   
63   Standard_EXPORT TopOpeBRepDS_Interference();
64   
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);
66   
67   Standard_EXPORT TopOpeBRepDS_Interference(const Handle(TopOpeBRepDS_Interference)& I);
68   
69   Standard_EXPORT const TopOpeBRepDS_Transition& Transition() const;
70   
71   Standard_EXPORT TopOpeBRepDS_Transition& ChangeTransition();
72   
73   Standard_EXPORT void Transition (const TopOpeBRepDS_Transition& T);
74   
75   //! return GeometryType + Geometry + SupportType + Support
76   Standard_EXPORT void GKGSKS (TopOpeBRepDS_Kind& GK, Standard_Integer& G, TopOpeBRepDS_Kind& SK, Standard_Integer& S) const;
77   
78   Standard_EXPORT TopOpeBRepDS_Kind SupportType() const;
79   
80   Standard_EXPORT Standard_Integer Support() const;
81   
82   Standard_EXPORT TopOpeBRepDS_Kind GeometryType() const;
83   
84   Standard_EXPORT Standard_Integer Geometry() const;
85   
86   Standard_EXPORT void SetGeometry (const Standard_Integer GI);
87   
88   Standard_EXPORT void SupportType (const TopOpeBRepDS_Kind ST);
89   
90   Standard_EXPORT void Support (const Standard_Integer S);
91   
92   Standard_EXPORT void GeometryType (const TopOpeBRepDS_Kind GT);
93   
94   Standard_EXPORT void Geometry (const Standard_Integer G);
95   
96   Standard_EXPORT Standard_Boolean HasSameSupport (const Handle(TopOpeBRepDS_Interference)& Other) const;
97   
98   Standard_EXPORT Standard_Boolean HasSameGeometry (const Handle(TopOpeBRepDS_Interference)& Other) const;
99
100
101
102
103
104   DEFINE_STANDARD_RTTIEXT(TopOpeBRepDS_Interference,Standard_Transient)
105
106 protected:
107
108
109
110
111 private:
112
113
114   TopOpeBRepDS_Transition myTransition;
115   Standard_Integer mySupport;
116   Standard_Integer myGeometry;
117   TopOpeBRepDS_Kind mySupportType;
118   TopOpeBRepDS_Kind myGeometryType;
119
120
121 };
122
123
124
125
126
127
128
129 #endif // _TopOpeBRepDS_Interference_HeaderFile