Creating Nodes

The IlvMakeNodeInteractor class is the base class for interactors that allow the user to interactively create nodes in a grapher. Instances of this class must be attached to a grapher and one of its connected views, as shown here:

IlvGrapher* graph = ...;

IlvView* view = ...;

IlvMakeNodeInteractor * inter = new IlvMakeNodeInteractor(graph, view);

graph->setInteractor(inter);

To create a node, drag a rectangular region in the working view. There are two ways to specify what type of graphic object is created:

The grapher library provides predefined subclasses of IlvMakeNodeInteractor: