AlAnimatable
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()
char* name;
boolean value;
Description
This class encapsulates the functionality of Alias objects that have the capacity to be animated. It provides access to channels.
Summary
AlChannel* AlAnimatable::firstChannel() const
Description
Get the first channel animating this object. If this object is not animated, this method will return NULL.
AlChannel* AlAnimatable::nextChannel( const AlChannel *channel) const
Description
This method gets the next channel in this object's list of channels following the given 'channel'. If 'channel' is not part of the object's channel list, or it is the last channel in the list, then NULL is returned.
Arguments
< channel - one of this object's channels for which we want to find the next channel.
AlChannel* AlAnimatable::prevChannel( const AlChannel *channel) const
Description
This method gets the next channel in this object's list of channels following the given 'channel'. If 'channel' is not part of the object's channel list, or it is the last channel in the list, then NULL is returned.
Arguments
< channel - one of this object's channels for which we want to find the next channel.
statusCode AlAnimatable::nextChannelD( AlChannel *channel ) const
Description
This method destructively sets the passed-in channel to point to the next channel in the list of channels for this object.
Arguments
< channel - the channel
Return codes
sSuccess - the next channel was successfully determined.
sInvalidObject - the channel was not valid
sFailure - there is no next channel
statusCode AlAnimatable::prevChannelD( AlChannel *channel ) const
Description
This method destructively sets the passed in channel to point to the next channel in the list of channels for this object.
Arguments
< channel - the channel
Return codes
sSuccess - the previous channel was successfully determined.
sInvalidObject - the channel was not valid
sFailure - there is no next channel.
statusCode AlAnimatable::applyIteratorToChannels( AlIterator* iter, int &rc )
Description
Apply the given iterator to each of the channels in this object. See the documentation for AlIterator.
Arguments
< iter - the iterator to apply to each channel
> rc - the result of the last application of the iterator
Return codes
sSuccess - the iterator was successfully applied.
sInvalidObject - the object was not valid
sFailure - the application of the iterator failed or the object had no channels.
sInvalidArgument - the iterator was NULL.
statusCode AlAnimatable::deleteAnimation()
Description
This method deletes all the channels that currently animate this object.
Return codes
sSuccess - the animation was successfully deleted.
sInvalidObject - the object was not valid.
statusCode AlAnimatable::globalParam( const char *paramName, boolean& state )
Description
This method returns the parameter control.
Arguments
paramName - the name of the parameter in question
state - the returned state of the parameter
Return codes
sSuccess - the parameter was read
sObjectNotFound - the paramName could not be found
sInvalidArgument - paramName was NULL
sInvalidObject - the object was not valid.
statusCode AlAnimatable::localParam( const char *paramName, boolean& state )
Description
This method returns the parameter control. If there are no local params set, then the default local params are returned.
Arguments
paramName - the name of the parameter in question
state - the returned state of the parameter
Return codes
sSuccess - the parameter was read
sObjectNotFound - the paramName could not be found
sInvalidArgument - paramName was NULL
sInvalidObject - the object was not valid.
AlList* AlAnimatable::localParamList()
Description
This method returns a list of the parameter control names. The list contains a list of 'AlParamItem's.
AlList* AlAnimatable::globalParamList()
Description
This method returns a list of the parameter controls.
statusCode AlAnimatable::setLocalParam( const char *paramName, boolean state )
Description
This method sets the parameter control.
Arguments
paramName - the name of the parameter in question
state - the returned state of the parameter
Return codes
sSuccess - the parameter was read
sObjectNotFound - the paramName could not be found
sFailure - there were no local params set
sInvalidArgument - paramName was NULL
sInvalidObject - the object was not valid.
statusCode AlAnimatable::setGlobalParam( const char *paramName, boolean state )
Description
This method sets the parameter control for objects of this type.
Arguments
paramName - the name of the parameter in question
state - the new state of the parameter
Return codes
sSuccess - the parameter was read
sObjectNotFound - the paramName could not be found
sInvalidArgument - paramName was NULL
sInvalidObject - the object was not valid.
aliasdocs@aw.sgi.com
Copyright © 1996, Alias|Wavefront, a Silicon Graphics Company. All rights
reserved.