Rogue Wave Views Manager Package API Reference Guide |
Rogue Wave Views Documentation Home |
Manager interactor class. More...
#include <ilviews/manager/mkarcin.h>
Public Member Functions | |
IlvMakeArcInteractor (IlvManager *manager, IlvView *view) | |
Constructor. More... | |
void | abort () |
Aborts the interaction. More... | |
virtual void | doIt (IlvRect &rect, IlFloat start, IlFloat range) |
Finalizes the interaction by creating an IlvArc object. More... | |
void | drawGhost () |
Visual feedback during the interaction. More... | |
IlFloat | firstAngle () |
Returns the arc start angle. More... | |
void | getRectangle (IlvRect &rect) |
Get the rectangle defining the full ellipse. More... | |
virtual IlBoolean | handleEvent (IlvEvent &event) |
Handles events for the manager view. More... | |
IlFloat | secondAngle () |
Returns the arc range. More... | |
Public Member Functions inherited from IlvManagerViewInteractor | |
IlvManagerViewInteractor (IlvManager *manager, IlvView *view) | |
Initializes a new IlvManagerViewInteractor . More... | |
virtual void | ensureVisible (const IlvPoint &point) |
Ensures the visibility of a given location. More... | |
IlvDisplay * | getDisplay () const |
Returns the display of the manager view. More... | |
IlvManager * | getManager () const |
Returns the manager. More... | |
IlvTransformer * | getTransformer () const |
Returns the transformer used with the manager view. More... | |
IlvView * | getView () const |
Returns the manager view. More... | |
virtual void | handleExpose (IlvRegion *clip=0) |
Called when the manager view receives an expose event. More... | |
virtual void | init () |
Initialization, when the interactor is attached to a view. More... | |
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:
Creates a rectangular area bounding the entire arc to be created.
Specifies the starting and ending angle of the arc by manipulating two square handles.
To create IlvFilledArc
objects, use the IlvMakeFilledArcInteractor
interactor.
IlvArc
, IlvFilledArc
, IlvMakeFilledArcInteractor
. IlvMakeArcInteractor::IlvMakeArcInteractor | ( | IlvManager * | manager, |
IlvView * | view | ||
) |
Constructor.
Initializes a new instance of the IlvMakeArcInteractor
class.
manager | The manager. |
view | The manager view. |
|
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.
Finalizes the interaction by creating an IlvArc
object.
Creates a new IlvArc
object in the manager from the parameters provided during the interaction.
rect | The rectangle containing the full ellipse. |
start | The arc start angle in degrees. |
range | The arc range in degrees. |
Reimplemented in IlvMakeFilledArcInteractor.
|
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.
void IlvMakeArcInteractor::getRectangle | ( | IlvRect & | rect | ) |
Get the rectangle defining the full ellipse.
rect | Used to return the rectangle specifying the arc. |
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.
IlTrue
if the event is consumed, IlFalse
otherwise. Implements IlvManagerViewInteractor.
IlFloat IlvMakeArcInteractor::secondAngle | ( | ) |
Returns the arc range.
firstAngle
, and the second selected angle. © Copyright 2016, 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.