0022627: Change OCCT memory management defaults
[occt.git] / src / PDataXtd / PDataXtd_Constraint.cxx
CommitLineData
7fd59977 1#include <PDataXtd_Constraint.ixx>
2
3
4
5PDataXtd_Constraint::PDataXtd_Constraint () { }
6
7PDataXtd_Constraint::PDataXtd_Constraint(const Standard_Integer Type,
8 const Handle(PDF_HAttributeArray1)& Geometries,
9 const Handle(PDataStd_Real)& Value,
10 const Handle(PNaming_NamedShape)& Plane)
11
12: myType (Type), myGeometries (Geometries), myValue (Value), myIsReversed(Standard_False),
13 myIsInverted(Standard_False),
14 myIsVerified(Standard_True),
15 myPlane(Plane)
16 {}
17
18Handle(PDataStd_Real) PDataXtd_Constraint::GetValue() const
19{ return myValue; }
20
21Standard_Integer PDataXtd_Constraint::GetType() const
22{ return myType; }
23
24Handle(PDF_HAttributeArray1) PDataXtd_Constraint::GetGeometries() const
25{ return myGeometries; }
26
27Handle(PNaming_NamedShape) PDataXtd_Constraint::GetPlane() const
28{ return myPlane;}
29
30void PDataXtd_Constraint::SetPlane(const Handle(PNaming_NamedShape)& plane)
31{ myPlane = plane;}
32
33void PDataXtd_Constraint::Set(const Handle(PDataStd_Real)& V)
34{ myValue = V; }
35
36void PDataXtd_Constraint::SetType(const Standard_Integer Type)
37{ myType = Type; }
38
39void PDataXtd_Constraint::SetGeometries(const Handle(PDF_HAttributeArray1)& Geometries)
40{ myGeometries = Geometries; }
41
42//=======================================================================
43//function : Verified
44//purpose :
45//=======================================================================
46void PDataXtd_Constraint::Verified(const Standard_Boolean status)
47{
48 myIsVerified = status;
49}
50
51//=======================================================================
52//function : Verified
53//purpose :
54//=======================================================================
55Standard_Boolean PDataXtd_Constraint::Verified() const
56{
57 return myIsVerified;
58}
59
60//=======================================================================
61//function : Reversed
62//purpose :
63//=======================================================================
64void PDataXtd_Constraint::Reversed(const Standard_Boolean status)
65{
66 myIsReversed = status;
67}
68
69//=======================================================================
70//function : Reversed
71//purpose :
72//=======================================================================
73Standard_Boolean PDataXtd_Constraint::Reversed() const
74{
75 return myIsReversed;
76}
77
78//=======================================================================
79//function : Inverted
80//purpose :
81//=======================================================================
82void PDataXtd_Constraint::Inverted(const Standard_Boolean status)
83{
84 myIsInverted = status;
85}
86
87//=======================================================================
88//function : Inverted
89//purpose :
90//=======================================================================
91Standard_Boolean PDataXtd_Constraint::Inverted() const
92{
93 return myIsInverted;
94}