Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-06-05 08:35:07

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   //! Returns a AnnotationPlane
0031   Standard_EXPORT StepVisual_AnnotationPlane();
0032 
0033   Standard_EXPORT void Init(
0034     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 { return myElements; }
0041 
0042   //! Set field Elements
0043   inline void SetElements(const Handle(StepVisual_HArray1OfAnnotationPlaneElement)& theElements)
0044   {
0045     myElements = theElements;
0046   }
0047 
0048   //! Returns number of Elements
0049   inline Standard_Integer NbElements() const
0050   {
0051     return (myElements.IsNull() ? 0 : myElements->Length());
0052   }
0053 
0054   //! Returns Elements with the given number
0055   inline StepVisual_AnnotationPlaneElement ElementsValue(const Standard_Integer theNum) const
0056   {
0057     return myElements->Value(theNum);
0058   }
0059 
0060   //! Sets Elements with given number
0061   inline void SetElementsValue(const Standard_Integer                   theNum,
0062                                const StepVisual_AnnotationPlaneElement& theItem)
0063   {
0064     myElements->SetValue(theNum, theItem);
0065   }
0066 
0067   DEFINE_STANDARD_RTTIEXT(StepVisual_AnnotationPlane, StepVisual_AnnotationOccurrence)
0068 
0069 private:
0070   Handle(StepVisual_HArray1OfAnnotationPlaneElement) myElements;
0071 };
0072 #endif // _StepVisual_AnnotationPlane_HeaderFile