Warning, /include/opencascade/BOPAlgo_WireEdgeSet.lxx is written in an unsupported language. File is not indexed.
0001 // Created by: Peter KURNEV
0002 // Copyright (c) 2010-2014 OPEN CASCADE SAS
0003 // Copyright (c) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
0004 // Copyright (c) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT,
0005 // EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
0006 //
0007 // This file is part of Open CASCADE Technology software library.
0008 //
0009 // This library is free software; you can redistribute it and/or modify it under
0010 // the terms of the GNU Lesser General Public License version 2.1 as published
0011 // by the Free Software Foundation, with special exception defined in the file
0012 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0013 // distribution for complete text of the license and disclaimer of any warranty.
0014 //
0015 // Alternatively, this file may be used under the terms of Open CASCADE
0016 // commercial license or contractual agreement.
0017
0018 //=================================================================================================
0019
0020 inline BOPAlgo_WireEdgeSet::BOPAlgo_WireEdgeSet() = default;
0021
0022 //=================================================================================================
0023
0024 inline BOPAlgo_WireEdgeSet::BOPAlgo_WireEdgeSet(
0025 const occ::handle<NCollection_BaseAllocator>& theAllocator)
0026 : myStartShapes(theAllocator),
0027 myShapes(theAllocator)
0028 {
0029 }
0030
0031 //=================================================================================================
0032
0033 inline BOPAlgo_WireEdgeSet::~BOPAlgo_WireEdgeSet() = default;
0034
0035 //=================================================================================================
0036
0037 inline void BOPAlgo_WireEdgeSet::Clear()
0038 {
0039 myStartShapes.Clear();
0040 myShapes.Clear();
0041 }
0042
0043 //=================================================================================================
0044
0045 inline void BOPAlgo_WireEdgeSet::SetFace(const TopoDS_Face& aF)
0046 {
0047 myFace = aF;
0048 }
0049
0050 //=================================================================================================
0051
0052 inline const TopoDS_Face& BOPAlgo_WireEdgeSet::Face() const
0053 {
0054 return myFace;
0055 }
0056
0057 //=================================================================================================
0058
0059 inline void BOPAlgo_WireEdgeSet::AddStartElement(const TopoDS_Shape& aE)
0060 {
0061 myStartShapes.Append(aE);
0062 }
0063
0064 //=================================================================================================
0065
0066 inline const NCollection_List<TopoDS_Shape>& BOPAlgo_WireEdgeSet::StartElements() const
0067 {
0068 return myStartShapes;
0069 }
0070
0071 //=================================================================================================
0072
0073 inline void BOPAlgo_WireEdgeSet::AddShape(const TopoDS_Shape& aW)
0074 {
0075 myShapes.Append(aW);
0076 }
0077
0078 //=================================================================================================
0079
0080 inline const NCollection_List<TopoDS_Shape>& BOPAlgo_WireEdgeSet::Shapes() const
0081 {
0082 return myShapes;
0083 }