rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Manager Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvMakeArrowLineInteractor Class Reference

Manager interactor class. More...

#include <ilviews/manager/mklinein.h>

Inheritance diagram for IlvMakeArrowLineInteractor:
IlvMakeLineInteractor IlvManagerViewInteractor

List of all members.

Public Member Functions

 IlvMakeArrowLineInteractor (IlvManager *manager, IlvView *view)
 Constructor.
virtual void doIt (IlvPoint &from, IlvPoint &to)
 Finalizes the interaction by creating an IlvArrowLine object.
virtual void drawGhost ()
 Visual feedback during the interaction.

Detailed Description

Manager interactor class.

Library: ilvmgr

Use this class to create IlvArrowLine objects in a view controlled by a manager. The virtual member function handleEvent monitors mouse events. To draw a line, the user:

  1. Clicks the left mouse button to set the start point.

  2. Drags the other end of the line by moving the mouse with the button held down.

  3. Releases the mouse button to indicate the end point.

The method drawGhost displays the intermediate states of the line being defined.

See also:
IlvArrowLine, IlvMakeReliefLineInteractor.

Constructor & Destructor Documentation

IlvMakeArrowLineInteractor::IlvMakeArrowLineInteractor ( IlvManager manager,
IlvView view 
)

Constructor.

Initializes a new instance of the IlvMakeArrowLineInteractor class.

Parameters:
manager The manager.
view The manager view.

Member Function Documentation

virtual void IlvMakeArrowLineInteractor::doIt ( IlvPoint from,
IlvPoint to 
) [virtual]

Finalizes the interaction by creating an IlvArrowLine object.

Creates an IlvArrowLine in the manager using the two points provided during the interaction.

Parameters:
from First point.
to Second point.

Reimplemented from IlvMakeLineInteractor.

virtual void IlvMakeArrowLineInteractor::drawGhost (  )  [virtual]

Visual feedback during the interaction.

Draws a line in XOR mode with an arrow.

Reimplemented from IlvMakeLineInteractor.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.