Creating your feedbacker

You can write your own feedbackers using GrafEdit. Because the feedbacker classes derive from MCanvasGraphic, they have two functions that are called to:

The MCanvasGraphic::Draw and CreateInteractor functions, respectively, call these functions after taking transforms (the TGrafMatrix associated with a graphic) into account. Taking these transforms into account lets GrafEdit manipulate your feedbacker. This automatically scales, rotates, and translates your feedbacker to the appropriate size and location in respect to the canvas graphic that it delineates. If you don't want this done, however, you can manage your own transforms by directly overriding the Draw and CreateInteractor functions. For example, in your Draw function, you might not wish to create a TLinkedModelMatrixPort for use with your transform prior to calling HandleDraw.


[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