1 // Created on: 2015-10-29
2 // Created by: Irina KRYLOVA
3 // Copyright (c) 2015 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
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.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef _StepVisual_DraughtingCallout_HeaderFile
17 #define _StepVisual_DraughtingCallout_HeaderFile
19 #include <Standard.hxx>
20 #include <Standard_Type.hxx>
22 #include <StepGeom_GeometricRepresentationItem.hxx>
23 #include <StepVisual_HArray1OfDraughtingCalloutElement.hxx>
26 class StepVisual_DraughtingCallout;
27 DEFINE_STANDARD_HANDLE(StepVisual_DraughtingCallout, StepGeom_GeometricRepresentationItem)
30 class StepVisual_DraughtingCallout : public StepGeom_GeometricRepresentationItem
34 //! Returns a DraughtingCallout
35 Standard_EXPORT StepVisual_DraughtingCallout();
38 Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName,
39 const Handle(StepVisual_HArray1OfDraughtingCalloutElement)& theContents);
41 //! Returns field Contents
42 inline Handle(StepVisual_HArray1OfDraughtingCalloutElement) Contents () const
47 //! Set field Contents
48 inline void SetContents (const Handle(StepVisual_HArray1OfDraughtingCalloutElement) &theContents)
50 myContents = theContents;
53 //! Returns number of Contents
54 inline Standard_Integer NbContents () const
56 return (myContents.IsNull() ? 0 : myContents->Length());
59 //! Returns Contents with the given number
60 inline StepVisual_DraughtingCalloutElement ContentsValue(const Standard_Integer theNum) const
62 return myContents->Value(theNum);
65 //! Sets Contents with given number
66 inline void SetContentsValue(const Standard_Integer theNum, const StepVisual_DraughtingCalloutElement& theItem)
68 myContents->SetValue (theNum, theItem);
72 DEFINE_STANDARD_RTTIEXT(StepVisual_DraughtingCallout,StepGeom_GeometricRepresentationItem)
75 Handle(StepVisual_HArray1OfDraughtingCalloutElement) myContents;
77 #endif // _StepVisual_DraughtingCallout_HeaderFile