Public Types | Public Member Functions

IGameMorpher Class Reference

Search for all occurrences

Detailed Description

An IGame wrapper around the Morph Compound Object and the Morpher Modifier.

#include <IGameModifier.h>

Inheritance diagram for IGameMorpher:
Inheritance graph
[legend]

List of all members.

Public Types

enum   MorphType { MORPHER_OBJECT, MORPHER_MODIFIER }
 

A morph type.

More...

Public Member Functions

virtual int  GetNumberOfMorphTargets ()=0
  Get the number of morph targets.
virtual IGameNode GetMorphTarget (int index)=0
  Get the morph target used by the morpher.
virtual IGameControl GetMorphWeight (int index)=0
  Get the weight associated with the target.
virtual MorphType  GetMorphType ()=0
  Get the morpher type.
  IGameMorpher (Modifier *mod, INode *node)
  The IGameMorpher constructor.

Member Enumeration Documentation

enum MorphType

A morph type.

This provides details about the type of morph operator being accessed

Enumerator:
MORPHER_OBJECT 

A Morph Compound Object.

MORPHER_MODIFIER 

A Morph Modifier.


Constructor & Destructor Documentation

IGameMorpher ( Modifier mod,
INode node 
) [inline]

The IGameMorpher constructor.

Parameters:
*mod The 3ds Max modifier to initialise
*node The 3ds Max node to initialise
:IGameModifier(mod, node){};

Member Function Documentation

virtual int GetNumberOfMorphTargets ( ) [pure virtual]

Get the number of morph targets.

The number of targets used by the morpher. There is a slight difference between the morph methods. The compound morpher include the original object as a target, where as the morpher modifier only show the actual physical targets. So to provide the same result the compound will show one more target

Returns:
The number of morph targets
virtual IGameNode* GetMorphTarget ( int  index ) [pure virtual]

Get the morph target used by the morpher.

This method provides the actual morph target used by the system. In the case of the compound object, it does its best to find the node but, the compound morpher only exposes the actual "Object" and in 3ds Max the object could have multiple nodes.

Parameters:
index The index of the target to retrieve
Returns:
An IGameNode representing the target
virtual IGameControl* GetMorphWeight ( int  index ) [pure virtual]

Get the weight associated with the target.

Parameters:
index The index of the target whose weight is being accessed
Returns:
An IGameControl. The actual value of the keys provides the weight value - this value can not be consider normalised
virtual MorphType GetMorphType ( ) [pure virtual]

Get the morpher type.

The type of morpher represented by this interface

Returns:
The morpher type. It can be one of the following
MORPHER_OBJECT
MORPHER_MODIFIER
See also:
IGameMorpher::MorphType

IGameMorpher IGameMorpher IGameMorpher IGameMorpher IGameMorpher IGameMorpher IGameMorpher IGameMorpher IGameMorpher IGameMorpher
IGameMorpher IGameMorpher IGameMorpher IGameMorpher IGameMorpher IGameMorpher IGameMorpher IGameMorpher IGameMorpher IGameMorpher