Integration of OCCT 6.5.0 from SVN
[occt.git] / src / TransferBRep / TransferBRep_ShapeListBinder.cxx
1 #include  <TransferBRep_ShapeListBinder.ixx>
2 #include  <TopoDS.hxx>
3
4     TransferBRep_ShapeListBinder::TransferBRep_ShapeListBinder  ()
5       {  theres = new TopTools_HSequenceOfShape();  }
6
7     TransferBRep_ShapeListBinder::TransferBRep_ShapeListBinder
8   (const Handle(TopTools_HSequenceOfShape)& list)
9       {  theres = list;  }
10
11     Standard_Boolean  TransferBRep_ShapeListBinder::IsMultiple () const
12       {  return (NbShapes() > 1);  }
13
14     Handle(Standard_Type)  TransferBRep_ShapeListBinder::ResultType () const
15       {  return STANDARD_TYPE(TransferBRep_ShapeListBinder);  }
16
17     Standard_CString  TransferBRep_ShapeListBinder::ResultTypeName () const
18       {  return "list(TopoDS_Shape)";  }
19
20
21     void  TransferBRep_ShapeListBinder::AddResult (const TopoDS_Shape& shape)
22       {  theres->Append(shape);  }
23
24     Handle(TopTools_HSequenceOfShape) TransferBRep_ShapeListBinder::Result
25   () const
26       {  return theres;  }
27
28     void  TransferBRep_ShapeListBinder::SetResult
29   (const Standard_Integer num, const TopoDS_Shape& shape)
30       {  theres->SetValue(num,shape);  }
31
32     Standard_Integer  TransferBRep_ShapeListBinder::NbShapes () const
33       {  return theres->Length();  }
34
35     const TopoDS_Shape&  TransferBRep_ShapeListBinder::Shape
36   (const Standard_Integer num) const
37       {  return theres->Value(num);  }
38
39     TopAbs_ShapeEnum  TransferBRep_ShapeListBinder::ShapeType
40   (const Standard_Integer num) const
41       {  return theres->Value(num).ShapeType();  }
42
43     TopoDS_Vertex  TransferBRep_ShapeListBinder::Vertex
44   (const Standard_Integer num) const
45       {  return TopoDS::Vertex(theres->Value(num));  }
46
47     TopoDS_Edge    TransferBRep_ShapeListBinder::Edge
48   (const Standard_Integer num) const
49       {  return TopoDS::Edge(theres->Value(num));  }
50
51     TopoDS_Wire    TransferBRep_ShapeListBinder::Wire
52   (const Standard_Integer num) const
53       {  return TopoDS::Wire(theres->Value(num));  }
54
55     TopoDS_Face    TransferBRep_ShapeListBinder::Face
56   (const Standard_Integer num) const
57       {  return TopoDS::Face(theres->Value(num));  }
58
59     TopoDS_Shell   TransferBRep_ShapeListBinder::Shell
60   (const Standard_Integer num) const
61       {  return TopoDS::Shell(theres->Value(num));  }
62
63     TopoDS_Solid   TransferBRep_ShapeListBinder::Solid
64   (const Standard_Integer num) const
65       {  return TopoDS::Solid(theres->Value(num));  }
66
67     TopoDS_CompSolid  TransferBRep_ShapeListBinder::CompSolid
68   (const Standard_Integer num) const
69       {  return TopoDS::CompSolid(theres->Value(num));  }
70
71     TopoDS_Compound  TransferBRep_ShapeListBinder::Compound
72   (const Standard_Integer num) const
73       {  return TopoDS::Compound(theres->Value(num));  }
74
75