0026720: Coding, STEP - non-conformant names of class fields
[occt.git] / src / StepDimTol / StepDimTol_ToleranceZone.hxx
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
28 class StepDimTol_HArray1OfToleranceZoneTarget;
29 class TCollection_HAsciiString;
30 class StepBasic_MeasureWithUnit;
31
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
36 {
37
38 public:
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 myDefiningTolerance;
55   }
56   
57   //! Set field DefiningTolerance
58   inline void SetModifiers (const Handle(StepDimTol_HArray1OfToleranceZoneTarget) &theDefiningTolerance)
59   {
60     myDefiningTolerance = theDefiningTolerance;
61   }
62   
63   //! Returns number of Defining Tolerances
64   inline Standard_Integer NbDefiningTolerances () const
65   {  
66     return (myDefiningTolerance.IsNull() ? 0 : myDefiningTolerance->Length());
67   }
68   
69   //! Returns Defining Tolerance with the given number
70   inline StepDimTol_ToleranceZoneTarget DefiningToleranceValue(const Standard_Integer theNum) const
71   {  
72     return myDefiningTolerance->Value(theNum);
73   }
74   
75   //! Sets Defining Tolerance with given number
76   inline void SetDefiningToleranceValue(const Standard_Integer theNum, const StepDimTol_ToleranceZoneTarget& theItem)
77   {  
78     myDefiningTolerance->SetValue (theNum, theItem);
79   }
80   
81   //! Returns field Form
82   inline Handle(StepDimTol_ToleranceZoneForm) Form()
83   {
84     return myForm;
85   }
86   
87   //! Set field Form
88   inline void SetForm(const Handle(StepDimTol_ToleranceZoneForm)& theForm)
89   {
90     myForm = theForm;
91   }
92   
93   DEFINE_STANDARD_RTTI(StepDimTol_ToleranceZone, StepRepr_ShapeAspect)
94
95 private: 
96   Handle(StepDimTol_HArray1OfToleranceZoneTarget) myDefiningTolerance;
97   Handle(StepDimTol_ToleranceZoneForm) myForm;
98 };
99 #endif // _StepDimTol_ToleranceZone_HeaderFile