0030416: Incorrect implementation of the method Bnd_OBB::SquareExtent
[occt.git] / src / StepDimTol / StepDimTol_ModifiedGeometricTolerance.cxx
CommitLineData
b311480e 1// Created on: 2003-06-04
2// Created by: Galina KULIKOVA
973c2be1 3// Copyright (c) 2003-2014 OPEN CASCADE SAS
b311480e 4//
973c2be1 5// This file is part of Open CASCADE Technology software library.
b311480e 6//
d5f74e42 7// This library is free software; you can redistribute it and/or modify it under
8// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 9// by the Free Software Foundation, with special exception defined in the file
10// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11// distribution for complete text of the license and disclaimer of any warranty.
b311480e 12//
973c2be1 13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
b311480e 15
7fd59977 16// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
7fd59977 17
42cf5bc1 18#include <Standard_Type.hxx>
19#include <StepBasic_MeasureWithUnit.hxx>
20#include <StepDimTol_ModifiedGeometricTolerance.hxx>
28a73c1f 21#include <StepDimTol_GeometricToleranceTarget.hxx>
42cf5bc1 22#include <StepRepr_ShapeAspect.hxx>
23#include <TCollection_HAsciiString.hxx>
7fd59977 24
92efcf78 25IMPLEMENT_STANDARD_RTTIEXT(StepDimTol_ModifiedGeometricTolerance,StepDimTol_GeometricTolerance)
26
7fd59977 27//=======================================================================
28//function : StepDimTol_ModifiedGeometricTolerance
29//purpose :
30//=======================================================================
7fd59977 31StepDimTol_ModifiedGeometricTolerance::StepDimTol_ModifiedGeometricTolerance ()
32{
33}
34
35//=======================================================================
36//function : Init
37//purpose :
38//=======================================================================
39
2f220b97 40void StepDimTol_ModifiedGeometricTolerance::Init (const Handle(TCollection_HAsciiString) &theGeometricTolerance_Name,
41 const Handle(TCollection_HAsciiString) &theGeometricTolerance_Description,
42 const Handle(StepBasic_MeasureWithUnit) &theGeometricTolerance_Magnitude,
43 const Handle(StepRepr_ShapeAspect) &theGeometricTolerance_TolerancedShapeAspect,
44 const StepDimTol_LimitCondition theModifier)
28a73c1f 45{
2f220b97 46 StepDimTol_GeometricTolerance::Init(theGeometricTolerance_Name,
47 theGeometricTolerance_Description,
48 theGeometricTolerance_Magnitude,
49 theGeometricTolerance_TolerancedShapeAspect);
28a73c1f 50
2f220b97 51 myModifier = theModifier;
28a73c1f 52}
53
54//=======================================================================
55//function : Init
56//purpose :
57//=======================================================================
58
2f220b97 59void StepDimTol_ModifiedGeometricTolerance::Init (const Handle(TCollection_HAsciiString) &theGeometricTolerance_Name,
60 const Handle(TCollection_HAsciiString) &theGeometricTolerance_Description,
61 const Handle(StepBasic_MeasureWithUnit) &theGeometricTolerance_Magnitude,
62 const StepDimTol_GeometricToleranceTarget &theGeometricTolerance_TolerancedShapeAspect,
63 const StepDimTol_LimitCondition theModifier)
7fd59977 64{
2f220b97 65 StepDimTol_GeometricTolerance::Init(theGeometricTolerance_Name,
66 theGeometricTolerance_Description,
67 theGeometricTolerance_Magnitude,
68 theGeometricTolerance_TolerancedShapeAspect);
7fd59977 69
2f220b97 70 myModifier = theModifier;
7fd59977 71}
72
73//=======================================================================
74//function : Modifier
75//purpose :
76//=======================================================================
77
78StepDimTol_LimitCondition StepDimTol_ModifiedGeometricTolerance::Modifier () const
79{
2f220b97 80 return myModifier;
7fd59977 81}
82
83//=======================================================================
84//function : SetModifier
85//purpose :
86//=======================================================================
87
2f220b97 88void StepDimTol_ModifiedGeometricTolerance::SetModifier (const StepDimTol_LimitCondition theModifier)
7fd59977 89{
2f220b97 90 myModifier = theModifier;
7fd59977 91}