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