Package OpenCAGE.Actions.Copy

Package for copy actions

Class Copy_Action

extends OpenCAGE.Actions.Action

This action will copy objects into another another parent object. You must get this action from the new parent object, i.e. the object into which you want to copy the other objects. Then add all nodes and edges to the action. After that call execute to copy the nodes and edges.

Operations

public Add( OpenCAGE.GIF.Node_Model Node);

Adds a node to this action.

public Add( OpenCAGE.GIF.Edge_Model Edge);

Adds an edge to this action.

public Execute(void);

Executes the action. [This description is adopted from 'OpenCAGE.Actions.Action'.]

Precondition: All required data was set. [This precondition is adopted from 'OpenCAGE.Actions.Action'.]

Postcondition: The action was executed. [This postcondition is adopted from 'OpenCAGE.Actions.Action'.]

public Cancel(void);

Cancels an action. Note: this will do nothing in most cases. But you should use it to a) document your intention and b) it might be usefull for some actions in the future... [This description is adopted from 'OpenCAGE.Actions.Action'.]

Precondition: The action wasn't executed yet. [This precondition is adopted from 'OpenCAGE.Actions.Action'.]

Postcondition: The action will not be executed. [This postcondition is adopted from 'OpenCAGE.Actions.Action'.]