Constructor

The constructor for TCanvasSelectionInteractor is straightforward. Initialize your data members and create a new command to use during the actual interaction process. This command is bound to the current selection provided when this object was instantiated from TCanvasView::CreateToolInteractor.

      // Copyright (C) 1995 Taligent, Inc. All rights reserved.
      TCanvasSelectionInteractor::TCanvasSelectionInteractor (
          MCanvasSelection* initialSelection,
          MToolHandler* handler,
          TCanvasView* canvasView ) :
          
          fRectSelecting (false),
          fSelection (initialSelection),
          fCanvasView (canvasView),
          fBinding (NIL),
          TCanvasRectDragInteractor (handler)
      {
          fCommand = new TTranslateCanvasGraphicCmd ();
          fBinding = new TToolCommandBindingTo<MCanvasSelection> (fCommand, fSelection);
      }

[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