Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/opencascade/StepVisual_AnnotationPlane.hxx was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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