Grapher interactor to create IlvPolylineLinkImage
links.
More...
#include <ilviews/grapher/polylink.h>
Public Member Functions | |
IlvMakePolylineLinkInteractor (IlvManager *manager, IlvView *view, IlBoolean oriented=IlFalse) | |
Constructor. More... | |
Public Member Functions inherited from IlvMakePolyLinkInteractor | |
IlvMakePolyLinkInteractor (IlvManager *manager, IlvView *view, IlBoolean oriented=IlFalse) | |
Constructor. More... | |
virtual void | abort () |
Resets the interactor to an inactive state. | |
virtual IlBoolean | accept (IlvPoint &point) |
Checks if a point is valid. More... | |
virtual IlBoolean | acceptEnd (IlUInt count, IlvPoint *allPoints) |
Validates the link creation. More... | |
virtual void | doIt (IlUInt count, IlvPoint *allPoints) |
Creates and adds a new link to the grapher. More... | |
IlvGraphic * | getEndNode () const |
Returns the ending node. More... | |
IlvGrapher * | getGrapher () const |
Returns the grapher to which the interactor is attached. More... | |
IlvGraphic * | getStartNode () const |
Returns the starting node. More... | |
virtual void | init () |
Resets the interactor to an active state. | |
IlBoolean | isOriented () const |
Indicates whether created links are oriented. More... | |
virtual void | react (IlvPoint &point, IlUShort modifiers=0) |
Highlights the nodes under a given point. More... | |
void | setEndNode (IlvGraphic *end) |
Sets the ending node. More... | |
void | setStartNode (IlvGraphic *start) |
Sets the starting node. More... | |
Protected Member Functions | |
virtual IlvLinkImage * | makeLink (IlUInt count, IlvPoint *points) |
Factory method to create the new link instance. More... | |
Protected Member Functions inherited from IlvMakePolyLinkInteractor | |
virtual void | storeLink (IlvLinkImage *link) |
Adds the new link instance to the grapher. More... | |
Grapher interactor to create IlvPolylineLinkImage
links.
Library: ilvgrapher
IlvPolylineLinkImage
. IlvMakePolylineLinkInteractor::IlvMakePolylineLinkInteractor | ( | IlvManager * | manager, |
IlvView * | view, | ||
IlBoolean | oriented = IlFalse |
||
) |
Constructor.
The constructor initializes a new instance of the IlvMakePolylineLinkInteractor
class for the view view and the grapher manager.
The manager parameter is assumed to be of the IlvGrapher
type. The oriented parameter is used to create the link in the IlvMakePolylineLinkInteractor::makeLink()
method.
manager | The grapher to which the interactor is attached. |
view | The view to which the interactor is attached. |
oriented | IlTrue if created links are oriented and IlFalse otherwise. |
|
protectedvirtual |
Factory method to create the new link instance.
Returns an instance of IlvPolylineLinkImage
.
count | The number of intermediate points defining the link. |
points | The intermediate points defining the link. |
Implements IlvMakePolyLinkInteractor.