1 #include <TransferBRep_ShapeListBinder.ixx>
4 TransferBRep_ShapeListBinder::TransferBRep_ShapeListBinder ()
5 { theres = new TopTools_HSequenceOfShape(); }
7 TransferBRep_ShapeListBinder::TransferBRep_ShapeListBinder
8 (const Handle(TopTools_HSequenceOfShape)& list)
11 Standard_Boolean TransferBRep_ShapeListBinder::IsMultiple () const
12 { return (NbShapes() > 1); }
14 Handle(Standard_Type) TransferBRep_ShapeListBinder::ResultType () const
15 { return STANDARD_TYPE(TransferBRep_ShapeListBinder); }
17 Standard_CString TransferBRep_ShapeListBinder::ResultTypeName () const
18 { return "list(TopoDS_Shape)"; }
21 void TransferBRep_ShapeListBinder::AddResult (const TopoDS_Shape& shape)
22 { theres->Append(shape); }
24 Handle(TopTools_HSequenceOfShape) TransferBRep_ShapeListBinder::Result
28 void TransferBRep_ShapeListBinder::SetResult
29 (const Standard_Integer num, const TopoDS_Shape& shape)
30 { theres->SetValue(num,shape); }
32 Standard_Integer TransferBRep_ShapeListBinder::NbShapes () const
33 { return theres->Length(); }
35 const TopoDS_Shape& TransferBRep_ShapeListBinder::Shape
36 (const Standard_Integer num) const
37 { return theres->Value(num); }
39 TopAbs_ShapeEnum TransferBRep_ShapeListBinder::ShapeType
40 (const Standard_Integer num) const
41 { return theres->Value(num).ShapeType(); }
43 TopoDS_Vertex TransferBRep_ShapeListBinder::Vertex
44 (const Standard_Integer num) const
45 { return TopoDS::Vertex(theres->Value(num)); }
47 TopoDS_Edge TransferBRep_ShapeListBinder::Edge
48 (const Standard_Integer num) const
49 { return TopoDS::Edge(theres->Value(num)); }
51 TopoDS_Wire TransferBRep_ShapeListBinder::Wire
52 (const Standard_Integer num) const
53 { return TopoDS::Wire(theres->Value(num)); }
55 TopoDS_Face TransferBRep_ShapeListBinder::Face
56 (const Standard_Integer num) const
57 { return TopoDS::Face(theres->Value(num)); }
59 TopoDS_Shell TransferBRep_ShapeListBinder::Shell
60 (const Standard_Integer num) const
61 { return TopoDS::Shell(theres->Value(num)); }
63 TopoDS_Solid TransferBRep_ShapeListBinder::Solid
64 (const Standard_Integer num) const
65 { return TopoDS::Solid(theres->Value(num)); }
67 TopoDS_CompSolid TransferBRep_ShapeListBinder::CompSolid
68 (const Standard_Integer num) const
69 { return TopoDS::CompSolid(theres->Value(num)); }
71 TopoDS_Compound TransferBRep_ShapeListBinder::Compound
72 (const Standard_Integer num) const
73 { return TopoDS::Compound(theres->Value(num)); }