1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 // This file is part of Open CASCADE Technology software library.
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
14 #include <XCAFDimTolObjects_GeomToleranceObject.hxx>
16 //=======================================================================
17 //function : XCAFDimTolObjects_GeomTolerance
19 //=======================================================================
21 XCAFDimTolObjects_GeomToleranceObject::XCAFDimTolObjects_GeomToleranceObject()
25 //=======================================================================
26 //function : XCAFDimTolObjects_GeomTolerance
28 //=======================================================================
30 XCAFDimTolObjects_GeomToleranceObject::XCAFDimTolObjects_GeomToleranceObject(const Handle(XCAFDimTolObjects_GeomToleranceObject)& theObj)
32 myType = theObj->myType;
33 myTypeOfValue = theObj->myTypeOfValue;
34 myValue = theObj->myValue;
35 myMatReqModif = theObj->myMatReqModif;
36 myZoneModif = theObj->myZoneModif;
37 myValueOfZoneModif = theObj->myValueOfZoneModif;
38 myModifiers = theObj->myModifiers;
39 myMaxValueModif = theObj->myMaxValueModif;
42 //=======================================================================
45 //=======================================================================
47 void XCAFDimTolObjects_GeomToleranceObject::SetType (const XCAFDimTolObjects_GeomToleranceType theType)
52 //=======================================================================
55 //=======================================================================
57 XCAFDimTolObjects_GeomToleranceType XCAFDimTolObjects_GeomToleranceObject::GetType() const
62 //=======================================================================
65 //=======================================================================
67 void XCAFDimTolObjects_GeomToleranceObject::SetTypeOfValue (const XCAFDimTolObjects_GeomToleranceTypeValue theTypeOfValue)
69 myTypeOfValue = theTypeOfValue;
72 //=======================================================================
75 //=======================================================================
77 XCAFDimTolObjects_GeomToleranceTypeValue XCAFDimTolObjects_GeomToleranceObject::GetTypeOfValue() const
82 //=======================================================================
85 //=======================================================================
87 void XCAFDimTolObjects_GeomToleranceObject::SetValue (const Standard_Real theValue)
92 //=======================================================================
95 //=======================================================================
97 Standard_Real XCAFDimTolObjects_GeomToleranceObject::GetValue() const
102 //=======================================================================
105 //=======================================================================
107 void XCAFDimTolObjects_GeomToleranceObject::SetMaterialRequirementModifier (const XCAFDimTolObjects_GeomToleranceMatReqModif theMatReqModif)
109 myMatReqModif = theMatReqModif;
112 //=======================================================================
115 //=======================================================================
117 XCAFDimTolObjects_GeomToleranceMatReqModif XCAFDimTolObjects_GeomToleranceObject::GetMaterialRequirementModifier() const
119 return myMatReqModif;
122 //=======================================================================
125 //=======================================================================
127 void XCAFDimTolObjects_GeomToleranceObject::SetZoneModifier (const XCAFDimTolObjects_GeomToleranceZoneModif theZoneModif)
129 myZoneModif = theZoneModif;
132 //=======================================================================
135 //=======================================================================
137 XCAFDimTolObjects_GeomToleranceZoneModif XCAFDimTolObjects_GeomToleranceObject::GetZoneModifier() const
142 //=======================================================================
145 //=======================================================================
147 void XCAFDimTolObjects_GeomToleranceObject::SetValueOfZoneModifier (const Standard_Real theValue)
149 myValueOfZoneModif = theValue;
152 //=======================================================================
155 //=======================================================================
157 Standard_Real XCAFDimTolObjects_GeomToleranceObject::GetValueOfZoneModifier() const
159 return myValueOfZoneModif;
162 //=======================================================================
165 //=======================================================================
167 void XCAFDimTolObjects_GeomToleranceObject::SetModifiers (const XCAFDimTolObjects_GeomToleranceModifiersSequence& theModifiers)
169 myModifiers = theModifiers;
172 //=======================================================================
175 //=======================================================================
177 void XCAFDimTolObjects_GeomToleranceObject::AddModifier (const XCAFDimTolObjects_GeomToleranceModif theModifier)
179 myModifiers.Append(theModifier);
182 //=======================================================================
185 //=======================================================================
187 XCAFDimTolObjects_GeomToleranceModifiersSequence XCAFDimTolObjects_GeomToleranceObject::GetModifiers() const
192 //=======================================================================
195 //=======================================================================
197 void XCAFDimTolObjects_GeomToleranceObject::SetMaxValueModifier (const Standard_Real theModifier)
199 myMaxValueModif = theModifier;
202 //=======================================================================
205 //=======================================================================
207 Standard_Real XCAFDimTolObjects_GeomToleranceObject::GetMaxValueModifier() const
209 return myMaxValueModif;