Grapher command class. More...
#include <ilviews/grapher/commands.h>
Public Member Functions | |
IlvAddNodeCommand (IlvManager *grapher, IlvGraphic *obj, int layer=0) | |
Constructor. More... | |
Grapher command class.
Library: ilvgrapher
The class IlvAddNodeCommand
is a subclass of IlvManagerCommand
. IlvAddNodeCommand
must be instantiated once a node object has been added to an IlvGrapher
. The IlvGrapher
class inherits from IlvManager
to record the modification and make it possible to undo or redo it.
This class is provided for compatibility purposes only.
IlvAddNodeCommand::IlvAddNodeCommand | ( | IlvManager * | grapher, |
IlvGraphic * | obj, | ||
int | layer = 0 |
||
) |
Constructor.
grapher | The grapher to which the object and the command are added. |
obj | The added node object. The object is removed when the command is undone. It is deleted when the command is deleted. It is considered as not executed if it has not been added to a command history. |
layer | The layer to which the object is added. |