Canvas graphics
Canvas Graphics (MCanvasGraphic) derive from MGraphic, which is the abstract base class for 2-D graphics. Canvas Graphics combine MGraphic functionality with graphic-specific interaction, selection, and unique identification. Canvas graphics also implement transformations to support direct manipulation as shown in the Mars sample application through the scale, rotate, and translate (SRT) feedback graphic described in Chapter 3, "Using GrafEdit sample programs."
The canvas representation and selection depend on the canvas graphic protocol for address-space-independent identification. The canvas view depends on the canvas graphic interface for drawing, hit detection, selection, and interaction.
Deriving from MCanvasGraphic is the most likely way to extend GrafEdit in your own programs. GrafEdit provides a number of concrete canvas graphic derived classes for common graphic types that can be used as they are.
[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