summaryrefslogtreecommitdiff
path: root/inc/ShapeFix_Root.lxx
blob: 9eb20c6ea3d487da91df5c2b4ac7c1ab734cd66f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
#include <Precision.hxx>

//=======================================================================
//function : Context
//purpose  : 
//=======================================================================

inline Handle(ShapeBuild_ReShape) ShapeFix_Root::Context() const
{
  return myContext;
}

//=======================================================================
//function : MsgRegistrator
//purpose  : 
//=======================================================================

inline Handle(ShapeExtend_BasicMsgRegistrator) ShapeFix_Root::MsgRegistrator() const
{
  return myMsgReg;
}

//=======================================================================
//function : Precision
//purpose  : 
//=======================================================================

inline Standard_Real ShapeFix_Root::Precision() const
{
  return myPrecision;
}

//=======================================================================
//function : MinTolerance
//purpose  : 
//=======================================================================

inline Standard_Real ShapeFix_Root::MinTolerance() const
{
  return myMinTol;
}

//=======================================================================
//function : MaxTolerance
//purpose  : 
//=======================================================================

inline Standard_Real ShapeFix_Root::MaxTolerance() const
{
  return myMaxTol;
}

//=======================================================================
//function : LimitTolerance
//purpose  : 
//=======================================================================

inline Standard_Real ShapeFix_Root::LimitTolerance(const Standard_Real toler) const
{
  //only maximal restriction implemented.
  return Min(myMaxTol,toler);
}

//=======================================================================
//function : SendMsg
//purpose  : 
//=======================================================================

inline  void ShapeFix_Root::SendMsg(const Message_Msg& message,const Message_Gravity gravity) const
{
  SendMsg (myShape, message, gravity);
}

 
//=======================================================================
//function : SendWarning
//purpose  : 
//=======================================================================

inline  void ShapeFix_Root::SendWarning(const TopoDS_Shape& shape,const Message_Msg& message) const
{
  SendMsg (shape, message, Message_Warning);
}

 
//=======================================================================
//function : SendWarning
//purpose  : 
//=======================================================================

inline  void ShapeFix_Root::SendWarning(const Message_Msg& message) const
{
  SendWarning (myShape, message);
}

 
//=======================================================================
//function : SendFail
//purpose  : 
//=======================================================================

inline  void ShapeFix_Root::SendFail(const TopoDS_Shape& shape,const Message_Msg& message) const
{
  SendMsg (shape, message, Message_Fail);
}

 
//=======================================================================
//function : SendFail
//purpose  : 
//=======================================================================

inline  void ShapeFix_Root::SendFail(const Message_Msg& message) const
{
  SendFail (myShape, message);
}

 
//=======================================================================
//function : NeedFix
//purpose  : Function used to define if the fixing method needs to be called
//           according to its specific flag if it is set, or 
//           to some additional criteria (if Flag is default) 
//=======================================================================

inline Standard_Boolean ShapeFix_Root::NeedFix (const Standard_Integer Flag, 
						const Standard_Boolean need)
{
  return Flag <0 ? need : ( Flag >0 );
}