Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 2015-07-13
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_ToleranceZoneDefinition_HeaderFile
0017 #define _StepDimTol_ToleranceZoneDefinition_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 
0021 #include <Standard_Transient.hxx>
0022 #include <Standard_Integer.hxx>
0023 #include <StepRepr_HArray1OfShapeAspect.hxx>
0024 #include <StepRepr_ShapeAspect.hxx>
0025 #include <StepDimTol_ToleranceZone.hxx>
0026 
0027 
0028 class StepDimTol_ToleranceZoneDefinition;
0029 DEFINE_STANDARD_HANDLE(StepDimTol_ToleranceZoneDefinition, Standard_Transient)
0030 //! Representation of STEP entity ToleranceZoneDefinition
0031 class StepDimTol_ToleranceZoneDefinition : public Standard_Transient
0032 {
0033 
0034 public:
0035   
0036   //! Empty constructor
0037   Standard_EXPORT StepDimTol_ToleranceZoneDefinition();
0038   
0039   //! Initialize all fields (own and inherited)
0040   Standard_EXPORT   void Init (const Handle(StepDimTol_ToleranceZone)& theZone,
0041                                const Handle(StepRepr_HArray1OfShapeAspect)& theBoundaries);
0042   
0043   //! Returns field Boundaries
0044   inline Handle(StepRepr_HArray1OfShapeAspect) Boundaries () const
0045   {
0046     return myBoundaries;
0047   }
0048   
0049   //! Set field Boundaries
0050   inline void SetBoundaries (const Handle(StepRepr_HArray1OfShapeAspect) &theBoundaries)
0051   {
0052     myBoundaries = theBoundaries;
0053   }
0054   
0055   //! Returns number of Boundaries
0056   inline Standard_Integer NbBoundaries () const
0057   {  
0058     return (myBoundaries.IsNull() ? 0 : myBoundaries->Length());
0059   }
0060   
0061   //! Returns Boundaries with the given number
0062   inline Handle(StepRepr_ShapeAspect) BoundariesValue(const Standard_Integer theNum) const
0063   {  
0064     return myBoundaries->Value(theNum);
0065   }
0066   
0067   //! Sets Boundaries with given number
0068   inline void SetBoundariesValue(const Standard_Integer theNum, const Handle(StepRepr_ShapeAspect)& theItem)
0069   {  
0070     myBoundaries->SetValue (theNum, theItem);
0071   }
0072   
0073   //! Returns field Zone
0074   inline Handle(StepDimTol_ToleranceZone) Zone()
0075   {
0076     return myZone;
0077   }
0078   
0079   //! Set field Zone
0080   inline void SetZone(const Handle(StepDimTol_ToleranceZone)& theZone)
0081   {
0082     myZone = theZone;
0083   }
0084   
0085   DEFINE_STANDARD_RTTIEXT(StepDimTol_ToleranceZoneDefinition,Standard_Transient)
0086 
0087 private: 
0088   Handle(StepRepr_HArray1OfShapeAspect) myBoundaries;
0089   Handle(StepDimTol_ToleranceZone) myZone;
0090 };
0091 #endif // _StepDimTol_ToleranceZoneDefinition_HeaderFile