rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Manager Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvMakePolylineInteractor Class Reference

Manager interactor class. More...

#include <ilviews/manager/mkpolyin.h>

Inheritance diagram for IlvMakePolylineInteractor:
IlvMakePolyPointsInteractor IlvManagerViewInteractor IlvMakeArrowPolylineInteractor IlvMakePolygonInteractor IlvMakeOutlinePolygonInteractor

List of all members.

Public Member Functions

 IlvMakePolylineInteractor (IlvManager *manager, IlvView *view)
 Constructor.
virtual void doIt (IlUInt count, IlvPoint *points)
 Finalizes the interaction by creating an IlvPolyline object.
virtual void drawGhost ()
 Visual feedback during interaction.

Detailed Description

Manager interactor class.

Library: ilvmgr

Use this class to create an IlvPolyline object in a view controlled by a manager. The virtual member function handleEvent monitors mouse events. To draw a polyline, the user:

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

  2. Presses the space bar, the enter key or double-clicks to finish.

See also:
IlvPolyline, IlvPolySelectInteractor, IlvMakeArrowPolylineInteractor, IlvMakePolygonInteractor, IlvMakeOutlinePolylineInteractor, IlvMakeSplineInteractor.

Constructor & Destructor Documentation

IlvMakePolylineInteractor::IlvMakePolylineInteractor ( IlvManager manager,
IlvView view 
)

Constructor.

Initializes a new instance of the IlvMakePolylineInteractor class.

Parameters:
manager The manager.
view The manager view.

Member Function Documentation

virtual void IlvMakePolylineInteractor::doIt ( IlUInt  count,
IlvPoint points 
) [virtual]

Finalizes the interaction by creating an IlvPolyline object.

Creates an IlvPolyline in the manager from the array of points provided during the interaction.

Parameters:
count The number of points in the array.
points The array of points, in the object coordinate system.

Implements IlvMakePolyPointsInteractor.

Reimplemented in IlvMakeArrowPolylineInteractor, IlvMakePolygonInteractor, and IlvMakeOutlinePolygonInteractor.

virtual void IlvMakePolylineInteractor::drawGhost (  )  [virtual]

Visual feedback during interaction.

Draws a polyline in XOR mode.

Implements IlvMakePolyPointsInteractor.

Reimplemented in IlvMakeArrowPolylineInteractor, and IlvMakePolygonInteractor.


© 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.