
628 CHAPTER II Contexts (Tools)
If a given flag is set, the member variable of the context is updated.
if( pars.isFlagSet( selEdgesFlag ) )
pars.getFlagArgument( selEdgesFlag, O, lastMadeCtx->selEdges )-
. , ,
The
doQueryFl ags
function extracts the command arguments and then returns the
value(s) of the requested context parameters.
MStatus SelectRingContextCmd2-.doQueryFlags()
{
Given a flag, the appropriate parameter is returned by calling the
setResul t
function.
if(pars.isFlagSet(selVerticesFlag) )
setResult( lastMadeCtx->selVertices ).
, ° °
}
The
appendSyntax
function must be implemented to add any flags to