Drawing queue used in MPxSurfaceShapeUI::getDrawRequests (OpenMayaUI) (OpenMayaUI.py)
Description
This class defines a simple interface for a collection of
MDrawRequest objects.An MDrawRequestQueue object is passed to the getDrawRequests method
of a user defined shape's UI class (MPxSurfaceShapeUI).
This queue keeps track of all the things that need to get draw
when a refresh of the view occurs.Maya will call the getDrawRequest methods of all the visible DAG objects
before a refresh happens. Then as the refresh happens, each draw request
will be processed and the corresponding draw method for each DAG
object will get called. For user defined shapes MPxSurfaceShapeUI::draw
will get called.
Functions
MDrawRequestQueue:: MDrawRequestQueue ()
Description Constructor.
MDrawRequestQueue:: ~MDrawRequestQueue ()
Description Destructor.
bool MDrawRequestQueue:: isEmpty () const
Description Returns true if the queu is empty. Return Value