#include <MAttributeIndex.h>
Class that provides access to the index part of an attribute specification (MAttributeSpec).
See MAttributeSpec for more information.
Public Types | |
enum | MIndexType { kInteger, kFloat } |
Data types for attribute indices. More... | |
Public Member Functions | |
MAttributeIndex () | |
~MAttributeIndex () | |
MAttributeIndex (const MAttributeIndex &other) | |
MAttributeIndex (int value) | |
MAttributeIndex (double value) | |
MIndexType | type () const |
bool | hasRange () const |
bool | hasValidRange () const |
bool | hasLowerBound () const |
bool | hasUpperBound () const |
MStatus | getLower (int &value) const |
MStatus | getLower (double &value) const |
MStatus | getUpper (int &value) const |
MStatus | getUpper (double &value) const |
bool | isBounded () const |
MStatus | getValue (int &value) const |
MStatus | getValue (double &value) const |
MStatus | setType (MIndexType type) |
MStatus | setValue (int value) |
MStatus | setValue (double value) |
MStatus | setLower (int value) |
MStatus | setLower (double value) |
MStatus | setUpper (int value) |
MStatus | setUpper (double value) |
MAttributeIndex & | operator= (const MAttributeIndex &other) |
bool | operator== (const MAttributeIndex &other) const |
bool | operator!= (const MAttributeIndex &other) const |
Friends | |
class | MAttributeSpec |
MAttributeIndex::MAttributeIndex | ( | ) |
Constructor.
MAttributeIndex::~MAttributeIndex | ( | ) |
Destructor.
MAttributeIndex::MAttributeIndex | ( | const MAttributeIndex & | other | ) |
Copy constructor.
[in] | other | value to copy |
MAttributeIndex::MAttributeIndex | ( | int | value | ) |
Constructor.
[in] | value | index value to set |
MAttributeIndex::MAttributeIndex | ( | double | value | ) |
Constructor.
[in] | value | index value to set |
MAttributeIndex::MIndexType MAttributeIndex::type | ( | ) | const |
Returns the type of attribute index.
Valid index types are kInteger and kFloat.
bool MAttributeIndex::hasRange | ( | ) | const |
Return true if a range was specified.
Note: false will be returned for an unbounded range which can be tested using the hasBound method.
bool MAttributeIndex::hasValidRange | ( | ) | const |
Return true if upper value is greater than lower value.
bool MAttributeIndex::hasLowerBound | ( | ) | const |
Return true if if there is a lower bound specified.
bool MAttributeIndex::hasUpperBound | ( | ) | const |
Return true if if there is an upper bound specified.
MStatus MAttributeIndex::getLower | ( | int & | value | ) | const |
Return the lower bound for this object or false if 1) the type does not match the argument type or 2) there is no lower bound. (both of which can be tested for using other methods on this class).
[out] | value | lower bound value is returned through this parameter. |
MStatus MAttributeIndex::getLower | ( | double & | value | ) | const |
Return the lower bound for this object or false if 1) the type does not match the argument type or 2) there is no lower bound. (both of which can be tested for using other methods on this class).
[out] | value | lower bound value is returned through this parameter. |
MStatus MAttributeIndex::getUpper | ( | int & | value | ) | const |
Return the upper bound for this object or false if 1) the type does not match the argument type or 2) there is no upper bound. (both of which can be tested for using other methods on this class).
[out] | value | upper bound value is returned through this parameter. |
MStatus MAttributeIndex::getUpper | ( | double & | value | ) | const |
Return the upper bound for this object or false if 1) the type does not match the argument type or 2) there is no upper bound. (both of which can be tested for using other methods on this class).
[out] | value | upper bound value is returned through this parameter. |
bool MAttributeIndex::isBounded | ( | ) | const |
Returns true if this object is bounded.
MStatus MAttributeIndex::getValue | ( | int & | value | ) | const |
Return the current value of the index or false if 1) the type does not match the argument type or 2) the index is a range or 3) the index is unbounded.
[out] | value | value of the index is returned through this parameter. |
MStatus MAttributeIndex::getValue | ( | double & | value | ) | const |
Return the current value of the index or false if 1) the type does not match the argument type or 2) the index is a range or 3) the index is unbounded.
[out] | value | value of the index is returned through this parameter. |
MStatus MAttributeIndex::setType | ( | MAttributeIndex::MIndexType | type | ) |
Sets the type of attribute index.
Valid index types are kInteger and kFloat.
[in] | type | the index type to set |
MStatus MAttributeIndex::setValue | ( | int | value | ) |
Sets the index value of this object.
[in] | value | the value to set |
MStatus MAttributeIndex::setValue | ( | double | value | ) |
Sets the index value of this object.
[in] | value | the value to set |
MStatus MAttributeIndex::setLower | ( | int | value | ) |
Sets the lower bounds of this object.
[in] | value | the value to set |
MStatus MAttributeIndex::setLower | ( | double | value | ) |
Sets the lower bounds of this object.
[in] | value | the value to set |
MStatus MAttributeIndex::setUpper | ( | int | value | ) |
Sets the upper bounds of this object.
[in] | value | the value to set |
MStatus MAttributeIndex::setUpper | ( | double | value | ) |
Sets the upper bounds of this object.
[in] | value | the value to set |
MAttributeIndex & MAttributeIndex::operator= | ( | const MAttributeIndex & | other | ) |
Assignment operator.
[in] | other | object to copy or reference |
bool MAttributeIndex::operator== | ( | const MAttributeIndex & | other | ) | const |
Equality operator.
[in] | other | object to compare with. |
bool MAttributeIndex::operator!= | ( | const MAttributeIndex & | other | ) | const |
Inequality operator.
[in] | other | object to compare with. |
Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |