1 // Created on: 2015-07-13
2 // Created by: Irina KRYLOVA
3 // Copyright (c) 2015 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
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
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.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef _StepDimTol_ToleranceZone_HeaderFile
17 #define _StepDimTol_ToleranceZone_HeaderFile
19 #include <Standard.hxx>
20 #include <Standard_Type.hxx>
22 #include <StepRepr_ShapeAspect.hxx>
23 #include <Standard_Integer.hxx>
24 #include <StepDimTol_HArray1OfToleranceZoneTarget.hxx>
25 #include <StepDimTol_ToleranceZoneForm.hxx>
26 #include <StepDimTol_ToleranceZoneTarget.hxx>
28 class StepDimTol_HArray1OfToleranceZoneTarget;
29 class TCollection_HAsciiString;
30 class StepBasic_MeasureWithUnit;
32 class StepDimTol_ToleranceZone;
33 DEFINE_STANDARD_HANDLE(StepDimTol_ToleranceZone, StepRepr_ShapeAspect)
34 //! Representation of STEP entity ToleranceZone
35 class StepDimTol_ToleranceZone : public StepRepr_ShapeAspect
41 Standard_EXPORT StepDimTol_ToleranceZone();
43 //! Initialize all fields (own and inherited)
44 Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName,
45 const Handle(TCollection_HAsciiString)& theDescription,
46 const Handle(StepRepr_ProductDefinitionShape)& theOfShape,
47 const StepData_Logical theProductDefinitional,
48 const Handle(StepDimTol_HArray1OfToleranceZoneTarget)& theDefiningTolerance,
49 const Handle(StepDimTol_ToleranceZoneForm)& theForm);
51 //! Returns field DefiningTolerance
52 inline Handle(StepDimTol_HArray1OfToleranceZoneTarget) DefiningTolerance () const
54 return myDefiningTolerance;
57 //! Set field DefiningTolerance
58 inline void SetModifiers (const Handle(StepDimTol_HArray1OfToleranceZoneTarget) &theDefiningTolerance)
60 myDefiningTolerance = theDefiningTolerance;
63 //! Returns number of Defining Tolerances
64 inline Standard_Integer NbDefiningTolerances () const
66 return (myDefiningTolerance.IsNull() ? 0 : myDefiningTolerance->Length());
69 //! Returns Defining Tolerance with the given number
70 inline StepDimTol_ToleranceZoneTarget DefiningToleranceValue(const Standard_Integer theNum) const
72 return myDefiningTolerance->Value(theNum);
75 //! Sets Defining Tolerance with given number
76 inline void SetDefiningToleranceValue(const Standard_Integer theNum, const StepDimTol_ToleranceZoneTarget& theItem)
78 myDefiningTolerance->SetValue (theNum, theItem);
81 //! Returns field Form
82 inline Handle(StepDimTol_ToleranceZoneForm) Form()
88 inline void SetForm(const Handle(StepDimTol_ToleranceZoneForm)& theForm)
93 DEFINE_STANDARD_RTTI(StepDimTol_ToleranceZone, StepRepr_ShapeAspect)
96 Handle(StepDimTol_HArray1OfToleranceZoneTarget) myDefiningTolerance;
97 Handle(StepDimTol_ToleranceZoneForm) myForm;
99 #endif // _StepDimTol_ToleranceZone_HeaderFile