Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-16 08:30:19

0001 // Created on: 2015-10-29
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 _StepVisual_DraughtingCallout_HeaderFile
0017 #define _StepVisual_DraughtingCallout_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 
0021 #include <StepGeom_GeometricRepresentationItem.hxx>
0022 #include <StepVisual_HArray1OfDraughtingCalloutElement.hxx>
0023 
0024 class StepVisual_DraughtingCallout;
0025 DEFINE_STANDARD_HANDLE(StepVisual_DraughtingCallout, StepGeom_GeometricRepresentationItem)
0026 
0027 class StepVisual_DraughtingCallout : public StepGeom_GeometricRepresentationItem
0028 {
0029 public:
0030   //! Returns a DraughtingCallout
0031   Standard_EXPORT StepVisual_DraughtingCallout();
0032 
0033   //! Init
0034   Standard_EXPORT void Init(
0035     const Handle(TCollection_HAsciiString)&                     theName,
0036     const Handle(StepVisual_HArray1OfDraughtingCalloutElement)& theContents);
0037 
0038   //! Returns field Contents
0039   inline Handle(StepVisual_HArray1OfDraughtingCalloutElement) Contents() const
0040   {
0041     return myContents;
0042   }
0043 
0044   //! Set field Contents
0045   inline void SetContents(const Handle(StepVisual_HArray1OfDraughtingCalloutElement)& theContents)
0046   {
0047     myContents = theContents;
0048   }
0049 
0050   //! Returns number of Contents
0051   inline Standard_Integer NbContents() const
0052   {
0053     return (myContents.IsNull() ? 0 : myContents->Length());
0054   }
0055 
0056   //! Returns Contents with the given number
0057   inline StepVisual_DraughtingCalloutElement ContentsValue(const Standard_Integer theNum) const
0058   {
0059     return myContents->Value(theNum);
0060   }
0061 
0062   //! Sets Contents with given number
0063   inline void SetContentsValue(const Standard_Integer                     theNum,
0064                                const StepVisual_DraughtingCalloutElement& theItem)
0065   {
0066     myContents->SetValue(theNum, theItem);
0067   }
0068 
0069   DEFINE_STANDARD_RTTIEXT(StepVisual_DraughtingCallout, StepGeom_GeometricRepresentationItem)
0070 
0071 private:
0072   Handle(StepVisual_HArray1OfDraughtingCalloutElement) myContents;
0073 };
0074 #endif // _StepVisual_DraughtingCallout_HeaderFile