Rogue Wave Views
Grapher Package API Reference Guide
Product Documentation:

Rogue Wave Views
Documentation Home
List of all members | Public Member Functions | Protected Member Functions
IlvMakePolylineLinkInteractor Class Reference

Grapher interactor to create IlvPolylineLinkImage links. More...

#include <ilviews/grapher/polylink.h>

Inheritance diagram for IlvMakePolylineLinkInteractor:
IlvMakePolyLinkInteractor IlvMakePolyPointsInteractor IlvManagerViewInteractor IlvValueInterface

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...
 
IlvGraphicgetEndNode () const
 Returns the ending node. More...
 
IlvGraphergetGrapher () const
 Returns the grapher to which the interactor is attached. More...
 
IlvGraphicgetStartNode () 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 IlvLinkImagemakeLink (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...
 

Detailed Description

Grapher interactor to create IlvPolylineLinkImage links.

Library: ilvgrapher

See also
IlvPolylineLinkImage.

Constructor & Destructor Documentation

§ IlvMakePolylineLinkInteractor()

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.

Parameters
managerThe grapher to which the interactor is attached.
viewThe view to which the interactor is attached.
orientedIlTrue if created links are oriented and IlFalse otherwise.

Member Function Documentation

§ makeLink()

virtual IlvLinkImage* IlvMakePolylineLinkInteractor::makeLink ( IlUInt  count,
IlvPoint points 
)
protectedvirtual

Factory method to create the new link instance.

Returns an instance of IlvPolylineLinkImage.

Parameters
countThe number of intermediate points defining the link.
pointsThe intermediate points defining the link.

Implements IlvMakePolyLinkInteractor.


© Copyright 2018, 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.