0024624: Lost word in license statement in source files
[occt.git] / src / TransferBRep / TransferBRep_ShapeListBinder.cxx
CommitLineData
973c2be1 1// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 2//
973c2be1 3// This file is part of Open CASCADE Technology software library.
b311480e 4//
d5f74e42 5// This library is free software; you can redistribute it and/or modify it under
6// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 7// by the Free Software Foundation, with special exception defined in the file
8// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9// distribution for complete text of the license and disclaimer of any warranty.
b311480e 10//
973c2be1 11// Alternatively, this file may be used under the terms of Open CASCADE
12// commercial license or contractual agreement.
b311480e 13
7fd59977 14#include <TransferBRep_ShapeListBinder.ixx>
15#include <TopoDS.hxx>
16
b311480e 17TransferBRep_ShapeListBinder::TransferBRep_ShapeListBinder ()
7fd59977 18 { theres = new TopTools_HSequenceOfShape(); }
19
20 TransferBRep_ShapeListBinder::TransferBRep_ShapeListBinder
21 (const Handle(TopTools_HSequenceOfShape)& list)
22 { theres = list; }
23
24 Standard_Boolean TransferBRep_ShapeListBinder::IsMultiple () const
25 { return (NbShapes() > 1); }
26
27 Handle(Standard_Type) TransferBRep_ShapeListBinder::ResultType () const
28 { return STANDARD_TYPE(TransferBRep_ShapeListBinder); }
29
30 Standard_CString TransferBRep_ShapeListBinder::ResultTypeName () const
31 { return "list(TopoDS_Shape)"; }
32
33
34 void TransferBRep_ShapeListBinder::AddResult (const TopoDS_Shape& shape)
35 { theres->Append(shape); }
36
37 Handle(TopTools_HSequenceOfShape) TransferBRep_ShapeListBinder::Result
38 () const
39 { return theres; }
40
41 void TransferBRep_ShapeListBinder::SetResult
42 (const Standard_Integer num, const TopoDS_Shape& shape)
43 { theres->SetValue(num,shape); }
44
45 Standard_Integer TransferBRep_ShapeListBinder::NbShapes () const
46 { return theres->Length(); }
47
48 const TopoDS_Shape& TransferBRep_ShapeListBinder::Shape
49 (const Standard_Integer num) const
50 { return theres->Value(num); }
51
52 TopAbs_ShapeEnum TransferBRep_ShapeListBinder::ShapeType
53 (const Standard_Integer num) const
54 { return theres->Value(num).ShapeType(); }
55
56 TopoDS_Vertex TransferBRep_ShapeListBinder::Vertex
57 (const Standard_Integer num) const
58 { return TopoDS::Vertex(theres->Value(num)); }
59
60 TopoDS_Edge TransferBRep_ShapeListBinder::Edge
61 (const Standard_Integer num) const
62 { return TopoDS::Edge(theres->Value(num)); }
63
64 TopoDS_Wire TransferBRep_ShapeListBinder::Wire
65 (const Standard_Integer num) const
66 { return TopoDS::Wire(theres->Value(num)); }
67
68 TopoDS_Face TransferBRep_ShapeListBinder::Face
69 (const Standard_Integer num) const
70 { return TopoDS::Face(theres->Value(num)); }
71
72 TopoDS_Shell TransferBRep_ShapeListBinder::Shell
73 (const Standard_Integer num) const
74 { return TopoDS::Shell(theres->Value(num)); }
75
76 TopoDS_Solid TransferBRep_ShapeListBinder::Solid
77 (const Standard_Integer num) const
78 { return TopoDS::Solid(theres->Value(num)); }
79
80 TopoDS_CompSolid TransferBRep_ShapeListBinder::CompSolid
81 (const Standard_Integer num) const
82 { return TopoDS::CompSolid(theres->Value(num)); }
83
84 TopoDS_Compound TransferBRep_ShapeListBinder::Compound
85 (const Standard_Integer num) const
86 { return TopoDS::Compound(theres->Value(num)); }
87
88