Public Member Functions

AssignControllerRestore Class Reference

Search for all occurrences

#include <mxsobjects.h>

Inheritance diagram for AssignControllerRestore:
Inheritance graph
[legend]

List of all members.

Public Member Functions

ScripterExport  AssignControllerRestore (BOOL p)
void  Restore (int isUndo)
void  Redo ()
MSTR  Description ()

Constructor & Destructor Documentation

ScripterExport AssignControllerRestore ( BOOL  p )

Member Function Documentation

void Restore ( int  isUndo ) [virtual]
Remarks:
The developer implements this method to restore the state of the database to as it was when theHold.Put() was called with this restore object.

Regardless of the value of the isUndo parameter, the method must restore the state of the scene to the one it was in when theHold.Put() was called with this restore object.

RestoreObj::Restore and RestoreObj::Redo may be called several times in a row: these methods must protect against any problems that may arise because of this, such as trying to undo multiple times in a row what has been undone already.
Parameters:
isUndo Nonzero if Restore() is being called in response to the Undo command; otherwise zero. If isUndo is nonzero, the developer needs to save whatever data they need to allow the user to redo the operation.

Implements RestoreObj.

void Redo ( ) [virtual]
Remarks:
This method is called when the user selects the Redo command. The developer should restore the database to the state prior to the last Undo command.

Implements RestoreObj.

MSTR Description ( ) [virtual]
Remarks:
This method is used internally to 3ds Max in debugging only. It is used to display a symbolic name for the restore object.
Returns:
The name of the restore object.
Default Implementation:
{ return MSTR(_M("---")); }

Reimplemented from RestoreObj.


AssignControllerRestore AssignControllerRestore AssignControllerRestore AssignControllerRestore AssignControllerRestore AssignControllerRestore AssignControllerRestore AssignControllerRestore AssignControllerRestore AssignControllerRestore
AssignControllerRestore AssignControllerRestore AssignControllerRestore AssignControllerRestore AssignControllerRestore AssignControllerRestore AssignControllerRestore AssignControllerRestore AssignControllerRestore AssignControllerRestore