MDeviceChannel Class Reference
[OpenMayaUI - API module for user interface]

#include <MDeviceChannel.h>

List of all members.


Detailed Description

Input device channel.

Input device channel class.

Examples:

jlcVcrDevice.cpp.


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

Constructor & Destructor Documentation

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).

Parameters:
[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.


Member Function Documentation

MString MDeviceChannel::name (  )  const

Return the short name of the channel.

Returns:
The short name for this channel

MString MDeviceChannel::longName (  )  const

Return the long name of the channel.

Returns:
The long name for this channel

int MDeviceChannel::axisIndex (  )  const

Returns the device state index corresponding to this device channel.

Returns:
The device state index for this channel

bool MDeviceChannel::hasChildren (  )  const

Determine whether this channel has children.

Returns:
  • true this channel has children
  • false this channel does not have children

MDeviceChannel MDeviceChannel::parent (  )  const

Return the parent of this channel.

Returns:
The parent of this channel

MDeviceChannel MDeviceChannel::childByIndex ( int  index  ) 

Return the specified child of this channel.

Returns:
The child of this channel

int MDeviceChannel::numChildren (  )  const

Return the number of children of this channel.

Returns:
The number of children of this channel

Autodesk® Maya® 2011 © 1997-2010 Autodesk, Inc. All rights reserved. Generated with doxygen 1.5.6