#include <MDeviceChannel.h>
Input device channel class.
Public Member Functions | |
MDeviceChannel (const MString &, MDeviceChannel *=NULL, int=-1) | |
~MDeviceChannel () | |
MString | name () const |
MString | longName () const |
int | axisIndex () const |
bool | hasChildren () const |
MDeviceChannel | parent () const |
MDeviceChannel | childByIndex (int) |
int | numChildren () const |
Friends | |
class | MPxMidiInputDevice |
MDeviceChannel::MDeviceChannel | ( | const MString & | name, | |
MDeviceChannel * | parent = NULL , |
|||
int | index = -1 | |||
) |
Constructor. Creates a new device channel with the given name, index and parent (optional).
[in] | name | the name of the channel |
[in] | parent | the parent of the channel (default is NULL) |
[in] | index | The device state index for the channel |
MDeviceChannel::~MDeviceChannel | ( | ) |
Class destructor.
MString MDeviceChannel::name | ( | ) | const |
Return the short name of the channel.
MString MDeviceChannel::longName | ( | ) | const |
Return the long name of the channel.
int MDeviceChannel::axisIndex | ( | ) | const |
Returns the device state index corresponding to this device channel.
bool MDeviceChannel::hasChildren | ( | ) | const |
Determine whether this channel has children.
MDeviceChannel MDeviceChannel::parent | ( | ) | const |
Return the parent of this channel.
MDeviceChannel MDeviceChannel::childByIndex | ( | int | index | ) |
Return the specified child of this channel.
int MDeviceChannel::numChildren | ( | ) | const |
Return the number of children of this channel.
Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |