0030480: Visualization - Clear of Select3D_SensitiveGroup does not update internal...
[occt.git] / src / Bisector / Bisector_PointOnBis.cxx
1 // Created on: 1994-01-10
2 // Created by: Yves FRICAUD
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 <Bisector_PointOnBis.hxx>
19 #include <gp_Pnt2d.hxx>
20
21 //=============================================================================
22 //function :
23 // purpose :
24 //=============================================================================
25 Bisector_PointOnBis::Bisector_PointOnBis()
26 {
27 }
28
29 //=============================================================================
30 //function :
31 // purpose :
32 //=============================================================================
33 Bisector_PointOnBis::Bisector_PointOnBis(const Standard_Real Param1, 
34                                          const Standard_Real Param2, 
35                                          const Standard_Real ParamBis,
36                                          const Standard_Real Distance,
37                                          const gp_Pnt2d&     P)
38 : param1   (Param1),
39   param2   (Param2),
40   paramBis (ParamBis),
41   distance (Distance),
42   point    (P)
43 {
44   infinite = Standard_False;
45 }
46
47 //=============================================================================
48 //function : ParamOnC1
49 // purpose :
50 //=============================================================================
51 void  Bisector_PointOnBis::ParamOnC1(const Standard_Real Param)
52 {
53   param1 = Param;
54 }
55
56 //=============================================================================
57 //function : ParamOnC2
58 // purpose :
59 //=============================================================================
60 void  Bisector_PointOnBis::ParamOnC2(const Standard_Real Param)
61 {
62   param2 = Param;
63 }
64
65 //=============================================================================
66 //function : ParamOnBis
67 // purpose :
68 //=============================================================================
69 void  Bisector_PointOnBis::ParamOnBis(const Standard_Real Param)
70 {
71   paramBis = Param;
72 }
73
74 //=============================================================================
75 //function : Distance
76 // purpose :
77 //=============================================================================
78 void  Bisector_PointOnBis::Distance(const Standard_Real Distance)
79 {
80   distance = Distance;
81 }
82
83 //=============================================================================
84 //function : Point
85 // purpose :
86 //=============================================================================
87 void  Bisector_PointOnBis::Point (const gp_Pnt2d& P)
88 {
89   point = P;
90 }
91
92 //=============================================================================
93 //function : IsInfinite
94 // purpose :
95 //=============================================================================
96 void  Bisector_PointOnBis::IsInfinite(const Standard_Boolean  Infinite)
97 {
98   infinite = Infinite;
99 }
100
101 //=============================================================================
102 //function : ParamOnC1
103 // purpose :
104 //=============================================================================
105 Standard_Real  Bisector_PointOnBis::ParamOnC1()const
106 {
107   return param1;
108 }
109
110 //=============================================================================
111 //function : ParamOnC2
112 // purpose :
113 //=============================================================================
114 Standard_Real  Bisector_PointOnBis::ParamOnC2()const 
115 {
116   return param2;
117 }
118
119 //=============================================================================
120 //function : ParamOnBis
121 // purpose :
122 //=============================================================================
123 Standard_Real  Bisector_PointOnBis::ParamOnBis()const 
124 {
125   return paramBis;
126 }
127
128 //=============================================================================
129 //function : Distance
130 // purpose :
131 //=============================================================================
132 Standard_Real  Bisector_PointOnBis::Distance()const 
133 {
134   return distance;
135 }
136
137 //=============================================================================
138 //function : Point
139 // purpose :
140 //=============================================================================
141 gp_Pnt2d  Bisector_PointOnBis::Point ()const
142 {
143   return point;
144 }
145
146 //=============================================================================
147 //function : IsInfinite
148 // purpose :
149 //=============================================================================
150 Standard_Boolean Bisector_PointOnBis::IsInfinite() const
151 {
152   return infinite;
153 }
154
155 //=============================================================================
156 //function : Dump
157 // purpose :
158 //=============================================================================
159 void Bisector_PointOnBis::Dump() const 
160 {
161   cout <<"Param1    :"<<param1<<endl;
162   cout <<"Param2    :"<<param2<<endl;
163   cout <<"Param Bis :"<<paramBis<<endl;
164   cout <<"Distance  :"<<distance<<endl;
165 }