As shown in Figure 30, TStandardCanvasModel derives from MCanvasRepresentation and TModel. Mixing MCanvasRepresentation with TModel allows TStandardCanvasModel to store its data in a Compound Document framework model. Internally, TStandardCanvasModel maintains graphic objects in an ordered list from front to back (TCanvasGraphicDeque). TCanvasGraphicDeque uses a dictionary to quickly cross-reference canvas Graphic IDs to canvas graphic pointers for efficient ID lookup. The purpose and use of canvas graphic IDs are described in the following sections.
NOTE If you do not need a Compound Document framework program, you can use the TCanvasGraphicDeque class directly to store your data. TCanvasGraphicDeque descends from MGraphicRepresentation and stores the data in a list without using a model.