Class DeleteGizmoRestore
See Also: Class RestoreObj, Class Atmospheric, Class Effect, Class SpecialFX, Class INode.
class DeleteGizmoRestore: public RestoreObj
Description:
This class is available in release 3.0 and later only.
This class enables implementing undo of Gizmo deletion in Atmosphere and Effects classes. This class provides implementations of the RestoreObj methods. An instance of this class can be put on the Hold when a Gizmo is deleted. For example:
if (theHold.Holding())
theHold.Put(new DeleteGizmoRestore(this,nodes[i],i));
All methods of this class are implemented by the System.
Data Members:
public:
SpecialFX *fx;
Points to the Atmosphere of Effect.
INode *node;
Points to the gizmo node.
int num;
The index of the gizmo which is being deleted.
Methods:
public:
Prototype:
DeleteGizmoRestore(SpecialFX *a, INode *n, int i);
Remarks:
Constructor. The data members are initialized to the parameter passed.