blob: 8234fe195687ad31dd836ccd1001fa9522cd1aa1 (
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
|
// File: PTopLoc_Location.cxx
// Created: Wed Mar 3 18:25:03 1993
// Author: Remi LEQUETTE
// <rle@phobox>
#include <PTopLoc_Location.ixx>
#include <Standard_NoSuchObject.hxx>
//=======================================================================
//function : PTopLoc_Location
//purpose :
//=======================================================================
PTopLoc_Location::PTopLoc_Location()
{
}
//=======================================================================
//function : PTopLoc_Location
//purpose :
//=======================================================================
PTopLoc_Location::PTopLoc_Location(const Handle(PTopLoc_Datum3D)& D,
const Standard_Integer P,
const PTopLoc_Location& N)
{
myData = new PTopLoc_ItemLocation(D,P,N);
}
//=======================================================================
//function : IsIdentity
//purpose :
//=======================================================================
Standard_Boolean PTopLoc_Location::IsIdentity() const
{
return myData.IsNull();
}
//=======================================================================
//function : Datum3D
//purpose :
//=======================================================================
Handle(PTopLoc_Datum3D) PTopLoc_Location::Datum3D()const
{
Standard_NoSuchObject_Raise_if(IsIdentity(),"PTopLoc_Location::Datum3D");
return myData->Datum3D();
}
//=======================================================================
//function : Power
//purpose :
//=======================================================================
Standard_Integer PTopLoc_Location::Power()const
{
Standard_NoSuchObject_Raise_if(IsIdentity(),"PTopLoc_Location::Power");
return myData->Power();
}
//=======================================================================
//function : PTopLoc_Location
//purpose :
//=======================================================================
PTopLoc_Location PTopLoc_Location::Next() const
{
Standard_NoSuchObject_Raise_if(IsIdentity(),"PTopLoc_Location::Next");
return myData->Next();
}
|