0033040: Coding - get rid of unused headers [Storage to TopOpeBRepTool]
[occt.git] / src / TopOpeBRepBuild / TopOpeBRepBuild_Pave.cxx
1 // Created on: 1994-11-14
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
18 #include <TopOpeBRepBuild_Pave.hxx>
19
20 IMPLEMENT_STANDARD_RTTIEXT(TopOpeBRepBuild_Pave,TopOpeBRepBuild_Loop)
21
22 //=======================================================================
23 //function : TopOpeBRepBuild_Pave
24 //purpose  : 
25 //=======================================================================
26 TopOpeBRepBuild_Pave::TopOpeBRepBuild_Pave
27 (const TopoDS_Shape& V, const Standard_Real P, const Standard_Boolean B) :
28 TopOpeBRepBuild_Loop(V),
29 myVertex(V),myParam(P),myIsShape(B),myHasSameDomain(Standard_False),myIntType(TopOpeBRepDS_FACE)
30 {
31 }
32
33 //=======================================================================
34 //function : HasSameDomain
35 //purpose  : 
36 //=======================================================================
37
38 void TopOpeBRepBuild_Pave::HasSameDomain(const Standard_Boolean B) 
39 {
40   myHasSameDomain = B;
41 }
42
43 //=======================================================================
44 //function : SameDomain
45 //purpose  : 
46 //=======================================================================
47
48 void TopOpeBRepBuild_Pave::SameDomain(const TopoDS_Shape& VSD) 
49 {
50   mySameDomain = VSD;
51 }
52
53 //=======================================================================
54 //function : HasSameDomain
55 //purpose  : 
56 //=======================================================================
57
58 Standard_Boolean TopOpeBRepBuild_Pave::HasSameDomain() const
59 {
60   return myHasSameDomain;
61 }
62
63 //=======================================================================
64 //function : SameDomain
65 //purpose  : 
66 //=======================================================================
67
68 const TopoDS_Shape& TopOpeBRepBuild_Pave::SameDomain() const
69 {
70   return mySameDomain;
71 }
72
73 //=======================================================================
74 //function : Vertex
75 //purpose  : 
76 //=======================================================================
77
78 const TopoDS_Shape& TopOpeBRepBuild_Pave::Vertex() const 
79 {
80   return myVertex;
81 }
82
83 //=======================================================================
84 //function : ChangeVertex
85 //purpose  : 
86 //=======================================================================
87
88 TopoDS_Shape& TopOpeBRepBuild_Pave::ChangeVertex()
89 {
90   return myVertex;
91 }
92
93 //=======================================================================
94 //function : Parameter
95 //purpose  : 
96 //=======================================================================
97
98 Standard_Real TopOpeBRepBuild_Pave::Parameter() const 
99 {
100   return myParam;
101 }
102
103 //modified by NIZHNY-MZV  Mon Feb 21 14:11:40 2000
104 //=======================================================================
105 //function : Parameter
106 //purpose  : 
107 //=======================================================================
108 void TopOpeBRepBuild_Pave::Parameter(const Standard_Real Par)  
109 {
110   myParam = Par;
111 }
112
113 //=======================================================================
114 //function : IsShape
115 //purpose  : 
116 //=======================================================================
117
118 Standard_Boolean TopOpeBRepBuild_Pave::IsShape() const 
119 {
120   return myIsShape;
121 }
122
123 //=======================================================================
124 //function : Shape
125 //purpose  : 
126 //=======================================================================
127
128 const TopoDS_Shape& TopOpeBRepBuild_Pave::Shape() const 
129 {
130   return myVertex;
131 }
132
133 //=======================================================================
134 //function : Dump
135 //purpose  : 
136 //=======================================================================
137
138 void TopOpeBRepBuild_Pave::Dump() const 
139 {
140 #ifdef OCCT_DEBUG
141   std::cout<<Parameter()<<" ";TopAbs::Print(Vertex().Orientation(),std::cout);
142 #endif
143 }
144
145 //modified by NIZHNY-MZV  Mon Feb 21 14:27:48 2000
146 //=======================================================================
147 //function : ChangeVertex
148 //purpose  : 
149 //=======================================================================
150
151 TopOpeBRepDS_Kind& TopOpeBRepBuild_Pave::InterferenceType()
152 {
153   return myIntType;
154 }