Back to home page

EIC code displayed by LXR

 
 

    


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

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_AnnotationPlane_HeaderFile
0017 #define _StepVisual_AnnotationPlane_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 
0021 #include <StepVisual_AnnotationOccurrence.hxx>
0022 #include <StepVisual_HArray1OfAnnotationPlaneElement.hxx>
0023 
0024 class StepVisual_AnnotationPlane;
0025 DEFINE_STANDARD_HANDLE(StepVisual_AnnotationPlane, StepVisual_AnnotationOccurrence)
0026 
0027 class StepVisual_AnnotationPlane : public StepVisual_AnnotationOccurrence
0028 {
0029 public:
0030   
0031   //! Returns a AnnotationPlane
0032   Standard_EXPORT StepVisual_AnnotationPlane();
0033 
0034   Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName,
0035                              const Handle(StepVisual_HArray1OfPresentationStyleAssignment)& theStyles,
0036                              const Handle(Standard_Transient)& theItem,
0037                              const Handle(StepVisual_HArray1OfAnnotationPlaneElement)& theElements);
0038   
0039     //! Returns field Elements
0040   inline Handle(StepVisual_HArray1OfAnnotationPlaneElement) Elements () const
0041   {
0042     return myElements;
0043   }
0044   
0045   //! Set field Elements
0046   inline void SetElements (const Handle(StepVisual_HArray1OfAnnotationPlaneElement) &theElements)
0047   {
0048     myElements = theElements;
0049   }
0050   
0051   //! Returns number of Elements
0052   inline Standard_Integer NbElements () const
0053   {  
0054     return (myElements.IsNull() ? 0 : myElements->Length());
0055   }
0056   
0057   //! Returns Elements with the given number
0058   inline StepVisual_AnnotationPlaneElement ElementsValue(const Standard_Integer theNum) const
0059   {  
0060     return myElements->Value(theNum);
0061   }
0062   
0063   //! Sets Elements with given number
0064   inline void SetElementsValue(const Standard_Integer theNum, const StepVisual_AnnotationPlaneElement& theItem)
0065   {  
0066     myElements->SetValue (theNum, theItem);
0067   }
0068   
0069   DEFINE_STANDARD_RTTIEXT(StepVisual_AnnotationPlane,StepVisual_AnnotationOccurrence)
0070   
0071 private:
0072 
0073   Handle(StepVisual_HArray1OfAnnotationPlaneElement) myElements;
0074 };
0075 #endif // _StepVisual_AnnotationPlane_HeaderFile