0026371: Implementation of new entities for GD&T
[occt.git] / src / StepDimTol / StepDimTol_GeometricToleranceWithMaximumTolerance.hxx
CommitLineData
28a73c1f 1// Created on: 2015-07-07
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. to be the "object code" form of the original source.
15
16#ifndef _StepDimTol_GeometricToleranceWithMaximumTolerance_HeaderFile
17#define _StepDimTol_GeometricToleranceWithMaximumTolerance_HeaderFile
18
19#include <Standard.hxx>
20#include <Standard_Type.hxx>
21
22#include <StepBasic_LengthMeasureWithUnit.hxx>
23#include <StepDimTol_GeometricToleranceWithModifiers.hxx>
24
25class TCollection_HAsciiString;
26class StepBasic_MeasureWithUnit;
27class StepDimTol_GeometricToleranceTarget;
28class StepDimTol_HArray1OfGeometricToleranceModifier;
29
30class StepDimTol_GeometricToleranceWithMaximumTolerance;
31DEFINE_STANDARD_HANDLE(StepDimTol_GeometricToleranceWithMaximumTolerance, StepDimTol_GeometricToleranceWithModifiers)
32//! Representation of STEP entity GeometricToleranceWithMaximumTolerance
33class StepDimTol_GeometricToleranceWithMaximumTolerance : public StepDimTol_GeometricToleranceWithModifiers
34{
35
36public:
37
38 //! Empty constructor
39 Standard_EXPORT StepDimTol_GeometricToleranceWithMaximumTolerance();
40
41 //! Initialize all fields (own and inherited)
42 Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName, const Handle(TCollection_HAsciiString)& theDescription, const Handle(StepBasic_MeasureWithUnit)& theMagnitude, const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect, const Handle(StepDimTol_HArray1OfGeometricToleranceModifier)& theModifiers, const Handle(StepBasic_LengthMeasureWithUnit)& theUnitSize) ;
43
44 //! Returns field MaximumUpperTolerance
45 inline Handle(StepBasic_LengthMeasureWithUnit) MaximumUpperTolerance () const
46 {
47 return maximumUpperTolerance;
48 }
49
50 //! Set field MaximumUpperTolerance
51 inline void SetMaximumUpperTolerance (const Handle(StepBasic_LengthMeasureWithUnit) &theMaximumUpperTolerance)
52 {
53 maximumUpperTolerance = theMaximumUpperTolerance;
54 }
55
56 DEFINE_STANDARD_RTTI(StepDimTol_GeometricToleranceWithMaximumTolerance, StepDimTol_GeometricToleranceWithModifiers)
57
58private:
59 Handle(StepBasic_LengthMeasureWithUnit) maximumUpperTolerance;
60};
61#endif // _StepDimTol_GeometricToleranceWithMaximumTolerance_HeaderFile