MToolsInfo is a caretaker class used to keep track of the state of the current tool property sheet. The tool writer should make sure to call the setDirtyFlag method when any of the values are modified. The dirty flag is used to indicate that the UI needs to be updated when the value of a tool property sheet option has changed.
Static Public Member Functions
|static void||setDirtyFlag (const MPxContext &context)|
|static void||resetDirtyFlag ()|
|static bool||isDirty ()|
|void MToolsInfo::setDirtyFlag||(||const MPxContext &||context||)||
This method should be called by a tool when the value of a tool property sheet option has changed. The dirty flag will only be set if this is the current tool.
|[in]||context||the context whose value has changed|
This method resets the dirty flag, such that the state becomes clean.
This method returns whether or not the dirty flag is set.
|Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved.||Generated with 1.5.6|