A callback class for Animatable::EnumAnimTree().
This class automatically keeps track of the depth of the enumeration.
#include <AnimEnum.h>

Public Member Functions |
|
| AnimEnum (int s=SCOPE_OPEN, int deep=0, DWORD tv=0xffffffff) | |
| Constructor. |
|
| virtual | ~AnimEnum () |
| Destructor. |
|
| void | SetScope (int s) |
| Implemented by the System. |
|
| int | Scope () |
| Implemented by the System. |
|
| void | IncDepth () |
| Implemented by the System. |
|
| void | DecDepth () |
| Implemented by the System. |
|
| int | Depth () |
| Implemented by the System. |
|
| DWORD | TVBits () |
| virtual int | proc (Animatable *anim, Animatable *client, int subNum)=0 |
| This is the method called by
EnumAnimTree(). |
|
Protected Attributes |
|
| int | depth |
| int | scope |
| DWORD | tv |
| AnimEnum | ( | int | s = SCOPE_OPEN, |
| int | deep = 0, |
||
| DWORD | tv =
0xffffffff |
||
| ) | [inline] |
| virtual ~AnimEnum | ( | ) | [inline, virtual] |
Destructor.
{;}
| void SetScope | ( | int | s | ) | [inline] |
Implemented by the System.
Sets the scope. See below for possible values.
| s | Specifies the scope to set. See below. |
{ scope = s; }
| int Scope | ( | ) | [inline] |
Implemented by the System.
Returns the scope.
{ return scope; }
| void IncDepth | ( | ) | [inline] |
| void DecDepth | ( | ) | [inline] |
| int Depth | ( | ) | [inline] |
| DWORD TVBits | ( | ) | [inline] |
{return tv;}
| virtual int proc | ( | Animatable * | anim, |
| Animatable * | client, | ||
| int | subNum | ||
| ) | [pure virtual] |
This is the method called by EnumAnimTree().
| anim | The sub anim. |
| client | The client anim. This is the parent with a sub-anim of anim. |
| subNum | The index of the sub-anim that anim is to client. For example, if you were to call client->SubAnim(subNum) it would return anim. |
Implemented in ClearAnimFlagEnumProc.
int depth
[protected] |
int scope
[protected] |
DWORD tv
[protected] |