7fd59977 |
1 | #include <IFSelect_GeneralModifier.ixx> |
2 | |
3 | |
4 | |
5 | IFSelect_GeneralModifier::IFSelect_GeneralModifier |
6 | (const Standard_Boolean maychangegraph) { thechgr = maychangegraph; } |
7 | |
8 | Standard_Boolean IFSelect_GeneralModifier::MayChangeGraph () const |
9 | { return thechgr; } |
10 | |
11 | void IFSelect_GeneralModifier::SetDispatch |
12 | (const Handle(IFSelect_Dispatch)& disp) |
13 | { thedisp = disp; } |
14 | |
15 | Handle(IFSelect_Dispatch) IFSelect_GeneralModifier::Dispatch () const |
16 | { return thedisp; } |
17 | |
18 | Standard_Boolean IFSelect_GeneralModifier::Applies |
19 | (const Handle(IFSelect_Dispatch)& disp) const |
20 | { |
21 | if (thedisp.IsNull()) return Standard_True; |
22 | if (thedisp != disp) return Standard_False; |
23 | return Standard_True; |
24 | } |
25 | |
26 | |
27 | void IFSelect_GeneralModifier::SetSelection |
28 | (const Handle(IFSelect_Selection)& sel) |
29 | { thesel = sel; } |
30 | |
31 | void IFSelect_GeneralModifier::ResetSelection () |
32 | { thesel.Nullify(); } |
33 | |
34 | Standard_Boolean IFSelect_GeneralModifier::HasSelection () const |
35 | { return !thesel.IsNull(); } |
36 | |
37 | Handle(IFSelect_Selection) IFSelect_GeneralModifier::Selection () const |
38 | { return thesel; } |