Basic GrafEdit

To write a Basic GrafEdit program, you derive directly from the abstract base classes MCanvasRepresentation, MCanvasSelection, and TCanvasView to create your own representation for storing the data, the selection for specifying a subset of the data in the representation; and the view to display the data. GrafEdit provides the TCanvasGraphicDeque class to store data in a list.

You can write a Basic Compound Document framework program when your program uses graphics, but does not need to be part of a compound document or when you want to implement a different storage mechanism. For example, you might write a small program for configuring video devices by implementing your own MCanvasRepresentation, TCanvasView, and MCanvasSelection derived classes to use rectangles to represent each monitor. The rectangles might be moved and sized according to their relative layout and aspect ratios in global coordinates.

The Basic GrafEdit classes are:

Figure 5 shows the Basic GrafEdit classes and their related Cursor Tools framework, View system, Graphics system, Input system, and Basic Document framework classes.


MCanvasRepresentation, MCanvasSelection, TCanvasGraphicFilter, and TCanvasGraphicFunnel are purely Basic GrafEdit classes. The other basic classes have derivations as follows:


[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