rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Manager Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvMakeArcInteractor Class Reference

Manager interactor class. More...

#include <ilviews/manager/mkarcin.h>

Inheritance diagram for IlvMakeArcInteractor:
IlvManagerViewInteractor IlvMakeFilledArcInteractor

List of all members.

Public Member Functions

 IlvMakeArcInteractor (IlvManager *manager, IlvView *view)
 Constructor.
void abort ()
 Aborts the interaction.
virtual void doIt (IlvRect &rect, IlFloat start, IlFloat range)
 Finalizes the interaction by creating an IlvArc object.
void drawGhost ()
 Visual feedback during the interaction.
IlFloat firstAngle ()
 Returns the arc start angle.
void getRectangle (IlvRect &rect)
 Get the rectangle defining the full ellipse.
virtual void handleEvent (IlvEvent &event)
 Handles events for the manager view.
IlFloat secondAngle ()
 Returns the arc range.

Detailed Description

Manager interactor class.

Library: ilvmgr

Use this class to create arc objects in a view controlled by a manager. To create an arc, the user:

  1. Creates a rectangular area bounding the entire arc to be created.

  2. Specifies the starting and ending angle of the arc by manipulating two square handles.

To create IlvFilledArc objects, use the IlvMakeFilledArcInteractor interactor.

See also:
IlvArc, IlvFilledArc, IlvMakeFilledArcInteractor.

Constructor & Destructor Documentation

IlvMakeArcInteractor::IlvMakeArcInteractor ( IlvManager manager,
IlvView view 
)

Constructor.

Initializes a new instance of the IlvMakeArcInteractor class.

Parameters:
manager The manager.
view The manager view.

Member Function Documentation

void IlvMakeArcInteractor::abort (  )  [virtual]

Aborts the interaction.

Called by the manager when the user changes the current interactor. It resets the interactor to a state in which it appears to have never been launched. A common implementation is to erase the ghost image. Call this member function to inhibit the interactor action in particular circumstances.

Reimplemented from IlvManagerViewInteractor.

virtual void IlvMakeArcInteractor::doIt ( IlvRect rect,
IlFloat  start,
IlFloat  range 
) [virtual]

Finalizes the interaction by creating an IlvArc object.

Creates a new IlvArc object in the manager from the parameters provided during the interaction.

Parameters:
rect The rectangle containing the full ellipse.
start The arc start angle in degrees.
range The arc range in degrees.

Reimplemented in IlvMakeFilledArcInteractor.

void IlvMakeArcInteractor::drawGhost (  )  [virtual]

Visual feedback during the interaction.

Called to draw a preview image of the resulting user action (the ghost image of the interactor). This function is generally invoked by IlvManagerViewInteractor::handleEvent as a response to user events.

Reimplemented from IlvManagerViewInteractor.

IlFloat IlvMakeArcInteractor::firstAngle (  ) 

Returns the arc start angle.

Returns:
The value of the start angle.
void IlvMakeArcInteractor::getRectangle ( IlvRect rect  ) 

Get the rectangle defining the full ellipse.

Parameters:
rect Used to return the rectangle specifying the arc.
virtual void IlvMakeArcInteractor::handleEvent ( IlvEvent event  )  [virtual]

Handles events for the manager view.

Called by the manager for which the interactor was created with every event it receives in the interactor view.

Implements IlvManagerViewInteractor.

IlFloat IlvMakeArcInteractor::secondAngle (  ) 

Returns the arc range.

Returns:
The value of the angle that defines the arc range. It is the difference in degrees between the value returned by firstAngle, and the second selected angle.
 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.