blob: 4ee8408c30c579c84aeb850dea5e5e0d8f14cfaa (
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
|
// File: TopOpeBRepDS_ListOfShapeOn1State.cxx
// Created: Tue Aug 31 15:40:14 1993
// Author: Jean Yves LEBEY
// <jyl@phobox>
#include <TopOpeBRepDS_ListOfShapeOn1State.ixx>
#include <Standard_ProgramError.hxx>
//=======================================================================
//function : TopOpeBRepDS_ListOfShapeOn1State
//purpose :
//=======================================================================
TopOpeBRepDS_ListOfShapeOn1State::TopOpeBRepDS_ListOfShapeOn1State()
: mySplits(0)
{
}
//=======================================================================
//function : ListOnState
//purpose :
//=======================================================================
const TopTools_ListOfShape& TopOpeBRepDS_ListOfShapeOn1State::ListOnState
() const
{
return myList;
}
//=======================================================================
//function : ChangeListOnState
//purpose :
//=======================================================================
TopTools_ListOfShape& TopOpeBRepDS_ListOfShapeOn1State::ChangeListOnState
()
{
return myList;
}
//=======================================================================
//function : Clear
//purpose :
//=======================================================================
void TopOpeBRepDS_ListOfShapeOn1State::Clear()
{
myList.Clear();
mySplits = 0;
}
//=======================================================================
//function : IsSplit
//purpose :
//=======================================================================
Standard_Boolean TopOpeBRepDS_ListOfShapeOn1State::IsSplit
() const
{
Standard_Boolean res = Standard_False;
if (mySplits & 1) res = Standard_True;
return res;
}
//=======================================================================
//function : Split
//purpose :
//=======================================================================
void TopOpeBRepDS_ListOfShapeOn1State::Split
(const Standard_Boolean B)
{
Standard_Integer mask = 1;
if (B) mySplits |= mask;
else mySplits &= ~mask;
}
|