0026739: Problem with generate Qt samples
[occt.git] / src / StepDimTol / StepDimTol_ToleranceZone.hxx
CommitLineData
28a73c1f 1// Created on: 2015-07-13
2// Created by: Irina KRYLOVA
3// Copyright (c) 2015 OPEN CASCADE SAS
4//
5// This file is part of Open CASCADE Technology software library.
6//
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.
12//
13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
15
16#ifndef _StepDimTol_ToleranceZone_HeaderFile
17#define _StepDimTol_ToleranceZone_HeaderFile
18
19#include <Standard.hxx>
20#include <Standard_Type.hxx>
21
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>
27
28class StepDimTol_HArray1OfToleranceZoneTarget;
29class TCollection_HAsciiString;
30class StepBasic_MeasureWithUnit;
31
32class StepDimTol_ToleranceZone;
33DEFINE_STANDARD_HANDLE(StepDimTol_ToleranceZone, StepRepr_ShapeAspect)
34//! Representation of STEP entity ToleranceZone
35class StepDimTol_ToleranceZone : public StepRepr_ShapeAspect
36{
37
38public:
39
40 //! Empty constructor
41 Standard_EXPORT StepDimTol_ToleranceZone();
42
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);
50
51 //! Returns field DefiningTolerance
52 inline Handle(StepDimTol_HArray1OfToleranceZoneTarget) DefiningTolerance () const
53 {
54 return definingTolerance;
55 }
56
57 //! Set field DefiningTolerance
58 inline void SetModifiers (const Handle(StepDimTol_HArray1OfToleranceZoneTarget) &theDefiningTolerance)
59 {
60 definingTolerance = theDefiningTolerance;
61 }
62
63 //! Returns number of Defining Tolerances
64 inline Standard_Integer NbDefiningTolerances () const
65 {
66 return (definingTolerance.IsNull() ? 0 : definingTolerance->Length());
67 }
68
69 //! Returns Defining Tolerance with the given number
70 inline StepDimTol_ToleranceZoneTarget DefiningToleranceValue(const Standard_Integer num) const
71 {
72 return definingTolerance->Value(num);
73 }
74
75 //! Sets Defining Tolerance with given number
76 inline void SetDefiningToleranceValue(const Standard_Integer num, const StepDimTol_ToleranceZoneTarget& theItem)
77 {
78 definingTolerance->SetValue (num, theItem);
79 }
80
81 //! Returns field Form
82 inline Handle(StepDimTol_ToleranceZoneForm) Form()
83 {
84 return form;
85 }
86
87 //! Set field Form
88 inline void SetForm(const Handle(StepDimTol_ToleranceZoneForm)& theForm)
89 {
90 form = theForm;
91 }
92
93 DEFINE_STANDARD_RTTI(StepDimTol_ToleranceZone, StepRepr_ShapeAspect)
94
95private:
96 Handle(StepDimTol_HArray1OfToleranceZoneTarget) definingTolerance;
97 Handle(StepDimTol_ToleranceZoneForm) form;
98};
99#endif // _StepDimTol_ToleranceZone_HeaderFile