summaryrefslogtreecommitdiff
path: root/src/BOPTColStd/BOPTColStd_ShapeWithRank.cxx
blob: 4ac06b4259fd0e437ef6f1703aec077fc4bf322d (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
// File:	BOPTColStd_ShapeWithRank.cxx
// Created:	Fri Jun  8 17:19:46 2001
// Author:	Peter KURNEV
//		<pkv@irinox>


#include <BOPTColStd_ShapeWithRank.ixx>

//=======================================================================
//function : BOPTColStd_ShapeWithRank::BOPTColStd_ShapeWithRank
//purpose  : 
//=======================================================================
  BOPTColStd_ShapeWithRank::BOPTColStd_ShapeWithRank()
:
  myRank(0)
{}

//=======================================================================
//function : SetShape
//purpose  : 
//=======================================================================
  void BOPTColStd_ShapeWithRank::SetShape(const TopoDS_Shape& aS)
{
  myShape=aS;
}

//=======================================================================
//function : SetRank
//purpose  : 
//=======================================================================
  void BOPTColStd_ShapeWithRank::SetRank(const Standard_Integer aR)
{
  myRank=aR;
}

//=======================================================================
//function : Shape
//purpose  : 
//=======================================================================
  const TopoDS_Shape& BOPTColStd_ShapeWithRank::Shape()const 
{
  return myShape;
}

//=======================================================================
//function : Rank
//purpose  : 
//=======================================================================
  Standard_Integer BOPTColStd_ShapeWithRank::Rank()const
{
  return myRank;
}


//=======================================================================
//function : HashCode
//purpose  : 
//=======================================================================
  Standard_Integer BOPTColStd_ShapeWithRank::HashCode(const Standard_Integer Upper)const
{
  return myShape.HashCode(Upper);
}
//=======================================================================
//function : IsEqual
//purpose  : 
//=======================================================================
  Standard_Boolean  BOPTColStd_ShapeWithRank::IsEqual(const BOPTColStd_ShapeWithRank& aSR)const
{
  return (myShape.IsSame(aSR.myShape) && myRank==aSR.myRank);
}