Class AppendGizmoRestore

3DS Max Plug-In SDK

Class AppendGizmoRestore

See Also: Class RestoreObj, Class Atmospheric, Class Effect, Class SpecialFX, Class INode.

class AppendGizmoRestore: public RestoreObj

Description:

This class is available in release 3.0 and later only.

This class enables implementing undo of Gizmo assignment in Atmosphere and Effects classes. This class provides implementations of the RestoreObj methods. An instance of this class can be put on the Hold stack when a Gizmo is appended. For example:

 if (theHold.Holding())

  theHold.Put(new AppendGizmoRestore(this,node));

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.

Methods:

public:

Prototype:

AppendGizmoRestore(SpecialFX *f, INode *n);

Remarks:

Constructor. The data members are initalized to the values pased.