MAttributeSpec Class Reference
#include <MAttributeSpec.h>
An attribute specification.
Class that encapsulates component/attribute information for generating selection items.
This class is used by MPxSurfaceShape::matchComponent for validating attributes specified as strings and converting that specification to a component object.
The attribute specification ".foo.bar[3].x" would be expressed like this (using a pseudo-structure description):
dimension = 0
}
dimension = 1
type = kInteger
isRange = false
isBounded = true
value = 3
}
}
dimension = 0
}
}
Constructor.
Creates an attribute specification with the given attribute name.
Parameters
[in] name the attribute name to set
Constructor.
Creates an attribute specification with the given attribute name.
Parameters
[in] name the attribute name to set
Copy constructor.
Parameters
[in] other the attribute specification to copy
Returns the attribute name part of the specification.
Returns The attribute name
Returns the dimension of the attribute specification.
For array attributes the dimension is > 0.
Returns The attributes dimension
void setName
(
const MString &
name )
Set the attribute name part of the specification.
Parameters
[in] name the name to be set
void setDimensions
(
int
value )
Set the dimension of the attribute specification.
Array attribute dimensions are > 0.
Parameters
[in] value the dimension value to be set
Assignment operator.
Parameters
[in] rhs attribute specification to copy
Returns A reference to the copied MAttributeSpec object.
Returns an attribute index object for the specified element.
Parameters
[in] index attribute index to return
Returns The MAttributeIndex associated with the given index.
Comparison operator.
Parameters
[in] other attribute specifier to be compared
Returns The boolean indicating whether the object are same or not.
This method is not available in Python.
Returns an attribute index object for the specified element.
Parameters
[in] index attribute index to return
Returns The MAttributeIndex associated with the given index.
const char * className
(
)
static
Returns the name of this class.
Returns The name of this class.
The documentation for this class was generated from the following files:
MAttributeSpec.h
MAttributeSpec.cpp