Canvas graphics
Canvas graphics are fundamental to all GrafEdit applications, and every other GrafEdit class is designed to do something with canvas graphics. For this reason, the discussion of GrafEdit begins with canvas graphics. MCanvasGraphic derives from MGraphic and combines MGraphic and GrafEdit behavior as follows:
- MGraphic An attribute bundle that defines fill, frame, and line styles; a Draw function; a transformation function for translating, rotating, and scaling operations; and a Find function for hit detection.
- GrafEdit: Functions to create a selection feedback graphic and an interactor; the ability to maintain the transformation matrix separate from the geometry; and the provision of access to this matrix so that selection and interaction behavior can be oriented relative to canvas graphics. The mechanics of selection and interaction are described in later sections.
[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