void Selection::Hide (Viewer* viewer) { Iterator i; for (First(i); !Done(i); Next(i)) { GraphicView* view = GetView(i); if (viewer == nil || view->GetViewer() == viewer) { view->EraseHandles(); } } }
void Selection::Clear (Viewer* viewer) { Iterator i; First(i); while (!Done(i)) { GraphicView* view = GetView(i); if (viewer == nil || view->GetViewer() == viewer) { view->EraseHandles(); } Remove(i); } }
void SelectTool::Localize (Selection* s, Viewer* v) { Iterator i; for (s->First(i); !s->Done(i);) { GraphicView* view = s->GetView(i); if (view->GetViewer() != v) { s->Remove(i); view->EraseHandles(); } else { s->Next(i); } } }
void Selection::Exclusive (Selection* s) { Iterator i; GraphicView* gv; for (s->First(i); !s->Done(i); s->Next(i)) { gv = GetView(i); if (Includes(gv)) { Remove(gv); gv->EraseHandles(); } else { Append(gv); } } Update(); }