7fd59977 |
1 | #include <IFGraph_AllShared.ixx> |
2 | #include <Interface_InterfaceModel.hxx> |
3 | |
4 | |
5 | IFGraph_AllShared::IFGraph_AllShared (const Interface_Graph& agraph) |
6 | : thegraph (agraph) { } |
7 | |
8 | |
9 | IFGraph_AllShared::IFGraph_AllShared |
10 | (const Interface_Graph& agraph, const Handle(Standard_Transient)& ent) |
11 | : thegraph (agraph) |
12 | { |
13 | if (!agraph.Model()->Contains(ent)) return; |
14 | GetFromEntity(ent); |
15 | } |
16 | |
17 | void IFGraph_AllShared::GetFromEntity |
18 | (const Handle(Standard_Transient)& ent) |
19 | { thegraph.GetFromEntity(ent,Standard_True); } // le fait pour nous |
20 | |
21 | void IFGraph_AllShared::GetFromIter (const Interface_EntityIterator& iter) |
22 | { |
23 | for (iter.Start(); iter.More(); iter.Next()) |
24 | thegraph.GetFromEntity(iter.Value(),Standard_True); |
25 | } |
26 | |
27 | void IFGraph_AllShared::ResetData () |
28 | { Reset(); thegraph.Reset(); } |
29 | |
30 | void IFGraph_AllShared::Evaluate() |
31 | { Reset(); GetFromGraph(thegraph); } |