Basic Interface to Alias objects that support animation.
#include <AlAnimatable.h>
class AlAnimatable
virtual AlChannel* firstChannel() const;
virtual AlChannel* nextChannel( const AlChannel* ) const;
virtual AlChannel* prevChannel( const AlChannel* ) const;
virtual statusCode nextChannelD( AlChannel* ) const;
virtual statusCode prevChannelD( AlChannel* ) const;
virtual statusCode applyIteratorToChannels( AlIterator*, int &);
virtual statusCode deleteAnimation();
statusCode globalParam( const char *param, boolean& );
AlList* globalParamList();
statusCode localParam( const char *param, boolean& );
AlList* localParamList();
statusCode setLocalParam( const char *paramName, boolean state );
statusCode setGlobalParam( const char *paramName, boolean state );
class AlParamItem : public AlLinkItem
AlParamItem* nextItem()
AlParamItem* prevItem()
char* name;
boolean value;
This class encapsulates the functionality of Alias objects that have the capacity to be animated. It also provides access to channels.
The AlParamItem class is also defined in the AlAnimatable.h header file. AlParamItem classes are used for returning information from several of the methods of AlAnimatable. In both cases, an AlList of AlParamItem classes is returned by this API. No specific method information is provided for AlParamItem because it is similar to AlLinkItem with the addition of two variable fields.
AlChannel* AlAnimatable::nextChannel( const AlChannel *channel) const
AlChannel* AlAnimatable::prevChannel( const AlChannel *channel) const
statusCode AlAnimatable::nextChannelD( AlChannel *channel ) const
statusCode AlAnimatable::prevChannelD( AlChannel *channel ) const
statusCode AlAnimatable::applyIteratorToChannels( AlIterator* iter, int &rc )
Applies the given iterator to each of the channels in this object. See the documentation for AlIterator.
double AlAnimatable::sampleChannel( int parameter ) const
Samples the parameter of the AlAnimatable without actually evaluating it. It reads the current value of the parameter and returns it as a double. Note that the parameter does not need to be currently animated to sample it.
If this method succeeds, it returns the value of the parameter at the current frame. If it fails, 0.0 is returned.
statusCode AlAnimatable::globalParam( const char *paramName, boolean& state )
statusCode AlAnimatable::localParam( const char *paramName, boolean& state )
Returns the parameter control. If there are no local params set, then the default local params are returned.
statusCode AlAnimatable::setLocalParam( const char *paramName, boolean state )