Graphic enumeration

GrafEdit enumerates the graphics in the representation with a filter, and then passes those graphics to a funnel for processing. Graphic enumeration is a readonly process for activities such as drawing and hit detection. A filter and funnel are passed to the TCanvasView::EnumerateGraphics function. An iterator is created inside EnumerateGraphics to sort and order the graphics in the filter. Inside EnumerateGraphics, each enumerated graphic returned from the filter is passed to the funnel for processing.

TCanvasView derived classes override EnumerateGraphics where they bind the canvas view to a concrete canvas representation to provide access to the canvas graphics. Filters and funnels are described in more detail under the heading "Filters and funnels" on page 124.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker