Public Member Functions

AnimateSuspend Class Reference

Search for all occurrences

Detailed Description

Suspends the "animate" mode in an exception safe manner.

The system is in "animate" mode when animation keys are being created. Create an instance of this class to suspend the "animate" mode. When the instance is destructed the "animate" mode is resumed. It's a good idea to suspend the "animate" mode whenever new instances of a plugin are being created, or their parameters are modified programatically. Examples of when the "animate" mode is suspended include assigning controllers and copying key frames from a controller to another, cloning objects, etc.

Note:
AnimateSuspend accomplishes the same thing as a call to SuspendAnimation(), but in a manner that is safe when exceptions are thrown.

#include <ref.h>

Inheritance diagram for AnimateSuspend:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  AnimateSuspend (BOOL setKeyModeToo=FALSE, BOOL macroRecToo=FALSE, BOOL refMsgsToo=FALSE)
  Constructor.
void  Resume ()
  Restores "animate" mode to its initial state.
  ~AnimateSuspend ()
  Destructor - restores "animate" mode to its initial state.

Constructor & Destructor Documentation

AnimateSuspend ( BOOL  setKeyModeToo = FALSE,
BOOL  macroRecToo = FALSE,
BOOL  refMsgsToo = FALSE 
)

Constructor.

Suspends the "animate" mode, and optionally some other system states

Parameters:
macroRecToo - If TRUE, macro recording is also suspended, otherwise it's not changed. See MacroRecorder::Disable() for more information.
setKeyModeToo - If TRUE, "setkey" mode is also suspended, otherwise it's not changed. See SuspendSetKeyMode() for more information.
refMsgsToo - If TRUE, passing of reference messages is also suspended, otherwise it's not changed. See DisableRefMsgs() for more information.
~AnimateSuspend ( ) [inline]

Destructor - restores "animate" mode to its initial state.

{Resume ();}

Member Function Documentation

void Resume ( )

Restores "animate" mode to its initial state.


AnimateSuspend AnimateSuspend AnimateSuspend AnimateSuspend AnimateSuspend AnimateSuspend AnimateSuspend AnimateSuspend AnimateSuspend AnimateSuspend
AnimateSuspend AnimateSuspend AnimateSuspend AnimateSuspend AnimateSuspend AnimateSuspend AnimateSuspend AnimateSuspend AnimateSuspend AnimateSuspend