Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:07

0001 // Created on: 2015-07-07
0002 // Created by: Irina KRYLOVA
0003 // Copyright (c) 2015 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _StepDimTol_GeometricToleranceWithModifiers_HeaderFile
0017 #define _StepDimTol_GeometricToleranceWithModifiers_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 
0021 #include <Standard_Integer.hxx>
0022 #include <StepDimTol_GeometricTolerance.hxx>
0023 #include <StepDimTol_HArray1OfGeometricToleranceModifier.hxx>
0024 
0025 class TCollection_HAsciiString;
0026 class StepBasic_MeasureWithUnit;
0027 class StepDimTol_GeometricToleranceTarget;
0028 
0029 class StepDimTol_GeometricToleranceWithModifiers;
0030 DEFINE_STANDARD_HANDLE(StepDimTol_GeometricToleranceWithModifiers, StepDimTol_GeometricTolerance)
0031 //! Representation of STEP entity GeometricToleranceWithModifiers
0032 class StepDimTol_GeometricToleranceWithModifiers : public StepDimTol_GeometricTolerance
0033 {
0034 
0035 public:
0036   
0037   //! Empty constructor
0038   Standard_EXPORT StepDimTol_GeometricToleranceWithModifiers();
0039   
0040   //! Initialize all fields (own and inherited)
0041   Standard_EXPORT   void Init (const Handle(TCollection_HAsciiString)& theName, 
0042                                const Handle(TCollection_HAsciiString)& theDescription, 
0043                                const Handle(StepBasic_MeasureWithUnit)& theMagnitude, 
0044                                const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect, 
0045                                const Handle(StepDimTol_HArray1OfGeometricToleranceModifier)& theModifiers) ;
0046   
0047   //! Returns field Modifiers
0048   inline Handle(StepDimTol_HArray1OfGeometricToleranceModifier) Modifiers () const
0049   {
0050     return myModifiers;
0051   }
0052   
0053   //! Set field Modifiers
0054   inline void SetModifiers (const Handle(StepDimTol_HArray1OfGeometricToleranceModifier) &theModifiers)
0055   {
0056     myModifiers = theModifiers;
0057   }
0058   
0059   //! Returns number of modifiers
0060   inline Standard_Integer NbModifiers () const
0061   {  
0062     return (myModifiers.IsNull() ? 0 : myModifiers->Length());
0063   }
0064   
0065   //! Returns modifier with the given number
0066   inline StepDimTol_GeometricToleranceModifier ModifierValue(const Standard_Integer theNum) const
0067   {  
0068     return myModifiers->Value(theNum);
0069   }
0070   
0071   //! Sets modifier with given number
0072   inline void SetModifierValue(const Standard_Integer theNum, const StepDimTol_GeometricToleranceModifier theItem)
0073   {  
0074     myModifiers->SetValue (theNum, theItem);
0075   }
0076   DEFINE_STANDARD_RTTIEXT(StepDimTol_GeometricToleranceWithModifiers,StepDimTol_GeometricTolerance)
0077 
0078 private: 
0079   Handle(StepDimTol_HArray1OfGeometricToleranceModifier) myModifiers;
0080 };
0081 #endif // _StepDimTol_GeometricToleranceWithModifiers_HeaderFile