GraphicCompTool(3) tool for instantiating graphical components

SYNOPSIS

#include <Unidraw/Tools/grcomptool.h>

DESCRIPTION

A GraphicCompTool lets the user instantiate graphical components by direct manipulation. The GraphicCompTool keeps a prototypical component that defines the type of component it can instantiate.

PUBLIC OPERATIONS

GraphicCompTool(ControlInfo*, GraphicComp* prototype)
GraphicCompTool()
Create a new GraphicCompTool, supplying the prototypical GraphicComp. (You should not normally call the parameterless constructor, which Creator requires.) The first constructor creates a graphical view of the prototype for internal use.
virtual Manipulator* CreateManipulator(
Viewer*, Event&, Transformer*
)
virtual void InterpretManipulator(Manipulator*)
CreateManipulator clears the editor's selection and delegates manipulator creation and interpretation to the graphical view of the prototype.
GraphicComp* GetPrototype()
Return the prototypical GraphicComp.