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 ViewerGraphic::Update () { GraphicComp* parent = (GraphicComp*) _view->GetGraphicComp()->GetParent(); if (parent != nil) { FullGraphic gs; totalGSGraphic(parent->GetGraphic(), gs); if (Different(this, &gs)) { Damage* damage = _view->GetViewer()->GetDamage(); damage->Incur(this); *(Graphic*)this = *(Graphic*)(&gs); damage->Incur(this); } } }