Manager interactor class. More...
#include <ilviews/manager/mkpolyin.h>
Public Member Functions | |
IlvMakeClosedSplineInteractor (IlvManager *manager, IlvView *view) | |
Initializes a new instance of the IlvMakeClosedSplineInteractor class. More... | |
virtual void | doIt (IlUInt count, IlvPoint *points) |
Finalizes the interaction by creating an IlvClosedSpline object. More... | |
virtual void | drawGhost () |
Provides the visual feedback during interaction. More... | |
Public Member Functions inherited from IlvMakeFilledSplineInteractor | |
IlvMakeFilledSplineInteractor (IlvManager *manager, IlvView *view) | |
Initializes a new instance of the IlvMakeFilledSplineInteractor class. More... | |
void | commit (IlBoolean) |
Called by handleEvent when the polypoint is terminated. More... | |
void | react (IlvPoint &p, IlUShort modifiers=0) |
Ensures the Bezier spline stays continuously derivable as new points are entered. More... | |
Public Member Functions inherited from IlvMakeSplineInteractor | |
IlvMakeSplineInteractor (IlvManager *manager, IlvView *view) | |
Initializes a new instance of the IlvMakeSplineInteractor class. More... | |
IlBoolean | accept (IlvPoint &) |
Lets the interactor accept or refuse a new point location. More... | |
IlBoolean | displayIntermediatePoints () |
Indicates whether or not the control points which are not on the curve are displayed. More... | |
void | displayIntermediatePoints (IlBoolean d) |
the interactor whether or not to display the control points which are not on the curve. More... | |
virtual void | drawHull () |
Draws the control points of the Bezier curve. More... | |
Public Member Functions inherited from IlvMakePolyPointsInteractor | |
IlvMakePolyPointsInteractor (IlvManager *manager, IlvView *view) | |
Initializes a new IlvMakePolyPointsInteractor instance. More... | |
void | abort () |
Aborts the interaction. More... | |
IlUInt | count () |
Returns the number of elements in the current array of points. More... | |
IlUShort | getThreshold () const |
Returns the threshold. More... | |
virtual IlBoolean | handleEvent (IlvEvent &event) |
Handles events for the manager view. More... | |
void | init () |
Initialization, when the interactor is attached to a view. More... | |
IlvPoint * | points () |
Returns the current array of points. More... | |
void | setThreshold (IlUShort val) |
Sets the threshold. 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... | |
Additional Inherited Members | |
Protected Member Functions inherited from IlvMakePolyPointsInteractor | |
IlvPoint * | transformPoints () const |
Returns the array of points in the coordinate system of the view. More... | |
Manager interactor class.
Library: ilvmgr
Use this class to create IlvClosedSpline
objects in a view controlled by a manager. The virtual member function handleEvent()
monitors mouse events. To draw a closed spline, the user:
If the user presses the Control modifier while dragging the left mouse button, the left and right tangents at the current point are dissociated, letting the user create cusps on the Bezier spline.
IlvMakeClosedSplineInteractor::IlvMakeClosedSplineInteractor | ( | IlvManager * | manager, |
IlvView * | view | ||
) |
Initializes a new instance of the IlvMakeClosedSplineInteractor
class.
manager | The manager. |
view | The manager view. |
Finalizes the interaction by creating an IlvClosedSpline
object.
Creates an IlvClosedSpline
in the manager from the array of points provided during the interaction.
count | The number of points in the array. |
points | The array of points, in the object coordinate system. |
Reimplemented from IlvMakeFilledSplineInteractor.
|
virtual |
Provides the visual feedback during interaction.
Draws a closed spline in XOR
mode.
Reimplemented from IlvMakeFilledSplineInteractor.