GrafEdit calls the DrawContents function whenever data in the representation has been changed so that the canvas view can be updated. See "Change notification" on page 123 for more information on change notification.
TCanvasView::DrawContents( TGrafPort& port ) const;
DrawBackground draws anything that appears behind everything else. By default, it draws the canvas with a background color fill bundle.
DrawGraphics draws the canvas graphics. By default it draws all invalid graphics (the canvas graphics that have been changed) from back to front. DrawGraphics calls TCanvasView::EnumerateGraphics with a filter and a funnel to accomplish this. See "Graphic enumeration" on page 119 for details on funnels, filters, and TCanvasView::EnumerateGraphics.
DrawFeedback draws a temporary feedback graphic that has been adopted into the canvas view by an interactor. For example, the temporary curve sketch during a curve drawing. See Chapter 7
, "Commands, interactors, and cursor tools," for more information on feedback graphics.