DeleteAllAnimEnum Class Reference

DllEntry / xfrefutil

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

DeleteAllAnimEnum Class Reference

Inheritance diagram for DeleteAllAnimEnum:

AnimEnum List of all members.

Public Methods

 DeleteAllAnimEnum (BOOL delAt0)
int proc (Animatable *anim, Animatable *client, int subNum)

Public Attributes

BOOL delAtFrame0

Constructor & Destructor Documentation

DeleteAllAnimEnum::DeleteAllAnimEnum ( BOOL delAt0 ) [inline]
 

Definition at line 218 of file xrefutil.cpp.

00218                                    : AnimEnum(SCOPE_ALL) {delAtFrame0 = delAt0;}


Member Function Documentation

int DeleteAllAnimEnum::proc ( Animatable * anim,
Animatable * client,
int subNum ) [inline]
 

Definition at line 219 of file xrefutil.cpp.

00219                                                                {
00220         if (delAtFrame0) {
00221             // Evaluate the controller at frame 0 before
00222             // deleting. This will cause its cache to take on
00223             // its value at frame 0.
00224             Control *cont = GetControlInterface(anim);
00225             if (cont) {
00226                 Point3 p;
00227                 Quat q;
00228                 ScaleValue s;
00229                 float f;
00230                 Interval valid;
00231                 switch (cont->SuperClassID()) {
00232                 case CTRL_FLOAT_CLASS_ID:
00233                     cont->GetValue(0,&f,valid); break;
00234                 case CTRL_POSITION_CLASS_ID:
00235                     cont->GetValue(0,&p,valid); break;
00236                 case CTRL_ROTATION_CLASS_ID:
00237                     cont->GetValue(0,&q,valid); break;
00238                 case CTRL_SCALE_CLASS_ID:
00239                     cont->GetValue(0,&s,valid); break;
00240                 case CTRL_POINT3_CLASS_ID:
00241                     cont->GetValue(0,&p,valid); break;
00242                 }
00243                 cont->SetORT(ORT_CONSTANT,ORT_BEFORE);
00244                 cont->SetORT(ORT_CONSTANT,ORT_AFTER);
00245             }
00246         }
00247         anim->DeleteTime(FOREVER,0);
00248         anim->EditTimeRange(Interval(0,0),EDITRANGE_LINKTOKEYS);
00249         return ANIM_ENUM_PROCEED;
00250     }


Member Data Documentation

BOOL DeleteAllAnimEnum::delAtFrame0
 

Definition at line 216 of file xrefutil.cpp.


The documentation for this class was generated from the following file:
Generated at Mon Nov 6 14:11:59 2000 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000