1 // Created on : Thu Mar 24 18:30:12 2022
3 // Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
4 // Copyright (c) Open CASCADE 2022
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #include <StepVisual_TessellatedSolid.hxx>
19 IMPLEMENT_STANDARD_RTTIEXT(StepVisual_TessellatedSolid, StepVisual_TessellatedItem)
21 //=======================================================================
22 //function : StepVisual_TessellatedSolid
24 //=======================================================================
26 StepVisual_TessellatedSolid::StepVisual_TessellatedSolid ()
28 myHasGeometricLink = Standard_False;
31 //=======================================================================
34 //=======================================================================
36 void StepVisual_TessellatedSolid::Init (const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
37 const Handle(StepVisual_HArray1OfTessellatedStructuredItem)& theItems,
38 const Standard_Boolean theHasGeometricLink,
39 const Handle(StepShape_ManifoldSolidBrep)& theGeometricLink)
41 StepVisual_TessellatedItem::Init(theRepresentationItem_Name);
45 myHasGeometricLink = theHasGeometricLink;
46 if (myHasGeometricLink)
48 myGeometricLink = theGeometricLink;
52 myGeometricLink.Nullify();
56 //=======================================================================
59 //=======================================================================
61 Handle(StepVisual_HArray1OfTessellatedStructuredItem) StepVisual_TessellatedSolid::Items () const
66 //=======================================================================
69 //=======================================================================
71 void StepVisual_TessellatedSolid::SetItems(const Handle(StepVisual_HArray1OfTessellatedStructuredItem)& theItems)
77 //=======================================================================
80 //=======================================================================
82 Standard_Integer StepVisual_TessellatedSolid::NbItems() const
88 return myItems->Length();
92 //=======================================================================
93 //function : ItemsValue
95 //=======================================================================
97 Handle(StepVisual_TessellatedStructuredItem) StepVisual_TessellatedSolid::ItemsValue(const Standard_Integer theNum) const
99 return myItems->Value(theNum);
102 //=======================================================================
103 //function : GeometricLink
105 //=======================================================================
107 Handle(StepShape_ManifoldSolidBrep) StepVisual_TessellatedSolid::GeometricLink () const
109 return myGeometricLink;
112 //=======================================================================
113 //function : SetGeometricLink
115 //=======================================================================
117 void StepVisual_TessellatedSolid::SetGeometricLink(const Handle(StepShape_ManifoldSolidBrep)& theGeometricLink)
119 myGeometricLink = theGeometricLink;
122 //=======================================================================
123 //function : HasGeometricLink
125 //=======================================================================
127 Standard_Boolean StepVisual_TessellatedSolid::HasGeometricLink () const
129 return myHasGeometricLink;