Public Member Functions

MaxMixerManager Class Reference

Search for all occurrences

Detailed Description

A class that allows a user to access the new max mixers in max 8.

This class allows the user to create, access, and remove max mixes from the mixer. The class exists in the scene as a single global variable, TheMaxMixerManager.

#include <IMixer8.h>

Inheritance diagram for MaxMixerManager:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual  ~MaxMixerManager ()
  Destructor.
BIPExport int  NumMaxMixers ()
  Returns the Number of Max Mixers in the mixer.
BIPExport IMixer8 GetNthMaxMixer (int index)
  Get's the Nth max mixer.
BIPExport IMixer8 GetMaxMixer (INode *node)
  Get's the max mixer that has this node in it.
BIPExport void  RemoveNthMaxMixer (int index, BOOL collapse, BOOL keyperframe)
  Remove the nth max mixer from the mixer, and subsequently either collapse the mixed animation onto the the old max mixer nodes, or replace the animation with the original animation that was there.
BIPExport bool  AddMaxMixer (INodeTab &nodes, const MCHAR *nameOfMix)
  Add a new max mixer to the mixer using a set of nodes.
BIPExport bool  AddMaxMixer (Tab< NodeAndAnims > &nodeAnims, const MCHAR *nameOfMix)
  Add a new max mixer to the mixer via list of nodes and specific tracks you want to add.

Constructor & Destructor Documentation

virtual ~MaxMixerManager ( ) [inline, virtual]

Destructor.

{;}

Member Function Documentation

BIPExport int NumMaxMixers ( )

Returns the Number of Max Mixers in the mixer.

Returns:
The number of Max Mixers in the mixer.
BIPExport IMixer8* GetNthMaxMixer ( int  index )

Get's the Nth max mixer.

Parameters:
[in] index The index of the IMixer8 interface that's returned. If the index is less than zero or greater than the number of max mixers, then NULL will be returned.
Returns:
The mixer interface for this max mixer.
BIPExport IMixer8* GetMaxMixer ( INode node )

Get's the max mixer that has this node in it.

Parameters:
[in] node Get the max mixer that this node in it. If this node isn't in any mixers, then NULL will be returned.
Returns:
The mixer interface for this max mixer.
BIPExport void RemoveNthMaxMixer ( int  index,
BOOL  collapse,
BOOL  keyperframe 
)

Remove the nth max mixer from the mixer, and subsequently either collapse the mixed animation onto the the old max mixer nodes, or replace the animation with the original animation that was there.

Parameters:
[in] index The index of the max mixer to be removed. If the index is less than zero or greater than the number of max mixers, then nothing will happen.
[in] collapse If TRUE the mixer will collapse and replace the mixer slave controllers with the values set in the mixer, otherwise it will replace the slaves with the original controllers and their values, when the nodes were added to the mixer.
[in] keyperframe If TRUE the mixer will collapse with a keyperframe, if FALSE, the collapse will try to collapse individual keyframes from the clips instead.
BIPExport bool AddMaxMixer ( INodeTab nodes,
const MCHAR *  nameOfMix 
)

Add a new max mixer to the mixer using a set of nodes.

Parameters:
[in] nodes The nodes to be added to the mixer.
[in] nameOfMix The name of the max mix. Note that if the name already exists the function will return false and the new max mix won't be created.
Returns:
Will return false if the nameOfMix parameter specifies a name of a mix that already exists, and will return true if the max mixer is successfully created.
BIPExport bool AddMaxMixer ( Tab< NodeAndAnims > &  nodeAnims,
const MCHAR *  nameOfMix 
)

Add a new max mixer to the mixer via list of nodes and specific tracks you want to add.

Parameters:
[in,out] nodeAnims A tab of the NodeAndAnims structures to be added to the mixer. This provides more flexibility in specifying which tracks you really want to be mixed or not. NodeAndAnims is defined in ILoadSaveAnimation.h Note that if a node is found in another mix we will delete it, and the resulting nodeAnims tab after the function call will contain those nodeAnims currently still existing in the maxObject.
See also:
NodeAndAnims
Parameters:
[in] nameOfMix The name of the max mix. Note that if the name already exists the function will return false and the new max mix won't be created.
Returns:
Will return false if the nameOfMix parameter specifies a name of a mix that already exists, otherwise if the mix is created successfully it will return true

MaxMixerManager MaxMixerManager MaxMixerManager MaxMixerManager MaxMixerManager MaxMixerManager MaxMixerManager MaxMixerManager MaxMixerManager MaxMixerManager
MaxMixerManager MaxMixerManager MaxMixerManager MaxMixerManager MaxMixerManager MaxMixerManager MaxMixerManager MaxMixerManager MaxMixerManager MaxMixerManager