Integration of OCCT 6.5.0 from SVN
[occt.git] / src / XSControl / XSControl_SelectForTransfer.cxx
CommitLineData
7fd59977 1#include <XSControl_SelectForTransfer.ixx>
2
3 XSControl_SelectForTransfer::XSControl_SelectForTransfer () { }
4
5 XSControl_SelectForTransfer::XSControl_SelectForTransfer
6 (const Handle(XSControl_TransferReader)& TR)
7 { theTR = TR; }
8
9
10 void XSControl_SelectForTransfer::SetReader
11 (const Handle(XSControl_TransferReader)& TR)
12 { theTR = TR; }
13
14 void XSControl_SelectForTransfer::SetActor
15 (const Handle(Transfer_ActorOfTransientProcess)& act)
16 { theAC = act; }
17
18 Handle(Transfer_ActorOfTransientProcess) XSControl_SelectForTransfer::Actor () const
19 { return theAC; }
20
21 Handle(XSControl_TransferReader) XSControl_SelectForTransfer::Reader () const
22 { return theTR; }
23
24 Standard_Boolean XSControl_SelectForTransfer::Sort
25 (const Standard_Integer /*rank*/, const Handle(Standard_Transient)& ent,
26 const Handle(Interface_InterfaceModel)& /*model*/) const
27{
28 Handle(Transfer_ActorOfTransientProcess) act = theAC;
29 if (act.IsNull() && !theTR.IsNull()) act = theTR->Actor();
30 if (!act.IsNull()) return act->Recognize(ent);//,theTR->TransientProcess());//act->Recognize(ent);
31 return Standard_False;
32}
33
34
35 TCollection_AsciiString XSControl_SelectForTransfer::ExtractLabel () const
36{
37 if (!theTR.IsNull()) return TCollection_AsciiString
38 ("Recognized for Transfer (current actor)");
39 return TCollection_AsciiString("Recognized for Transfer");
40}