0030675: Visualization - remove redundant proxy classes in hierarchy of PrsMgr_Presen...
[occt.git] / src / StepVisual / StepVisual_DraughtingCallout.hxx
1 // Created on: 2015-10-29
2 // Created by: Irina KRYLOVA
3 // Copyright (c) 2015 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
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.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 #ifndef _StepVisual_DraughtingCallout_HeaderFile
17 #define _StepVisual_DraughtingCallout_HeaderFile
18
19 #include <Standard.hxx>
20 #include <Standard_Type.hxx>
21
22 #include <StepGeom_GeometricRepresentationItem.hxx>
23 #include <StepVisual_HArray1OfDraughtingCalloutElement.hxx>
24
25
26 class StepVisual_DraughtingCallout;
27 DEFINE_STANDARD_HANDLE(StepVisual_DraughtingCallout, StepGeom_GeometricRepresentationItem)
28
29
30 class StepVisual_DraughtingCallout : public StepGeom_GeometricRepresentationItem
31 {
32 public:
33
34   //! Returns a DraughtingCallout
35   Standard_EXPORT StepVisual_DraughtingCallout();
36
37   //! Init
38   Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName,
39                              const Handle(StepVisual_HArray1OfDraughtingCalloutElement)& theContents);
40   
41   //! Returns field Contents
42   inline Handle(StepVisual_HArray1OfDraughtingCalloutElement) Contents () const
43   {
44     return myContents;
45   }
46   
47   //! Set field Contents
48   inline void SetContents (const Handle(StepVisual_HArray1OfDraughtingCalloutElement) &theContents)
49   {
50     myContents = theContents;
51   }
52   
53   //! Returns number of Contents
54   inline Standard_Integer NbContents () const
55   {  
56     return (myContents.IsNull() ? 0 : myContents->Length());
57   }
58   
59   //! Returns Contents with the given number
60   inline StepVisual_DraughtingCalloutElement ContentsValue(const Standard_Integer theNum) const
61   {
62     return myContents->Value(theNum);
63   }
64   
65   //! Sets Contents with given number
66   inline void SetContentsValue(const Standard_Integer theNum, const StepVisual_DraughtingCalloutElement& theItem)
67   {  
68     myContents->SetValue (theNum, theItem);
69   }
70
71   
72   DEFINE_STANDARD_RTTIEXT(StepVisual_DraughtingCallout,StepGeom_GeometricRepresentationItem)
73   
74 private:
75   Handle(StepVisual_HArray1OfDraughtingCalloutElement) myContents;
76 };
77 #endif // _StepVisual_DraughtingCallout_HeaderFile