Back to home page

EIC code displayed by LXR

 
 

    


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

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