model_server/gala/src/globalFuncs.cxx
// Utility function to display text in the active viewer.
Utility function to display text in the active viewer.
Utility function to display text in the active viewer .
vbool dis_message (const vchar* msgFormat, ...)
{
    gInit(dis_message);
    vbool status = vFALSE;
    static gString msgString;
    va_list ap;
    va_start(ap, msgFormat);
    msgString.vsprintf(msgFormat, ap);
    Viewer* vr;
    View *v;
    Viewer::GetExecutingView (vr, v);
    if (vr && v) {
	    status = vTRUE;
	    vr->DisplayMessage(msgString);
    }
    return (status);
}
vbool dis_message ( const vchar * msgFormat , ... ) { gInit ( dis_message ) ; vbool status = vFALSE ; static gString msgString ; va_list ap ; va_start ( ap , msgFormat ) ; msgString . vsprintf ( msgFormat , ap ) ; Viewer * vr ; View * v ; Viewer :: GetExecutingView ( vr , v ) ; if ( vr && v ) { status = vTRUE ; vr -> DisplayMessage ( msgString ) ; } return ( status ) ; }
Utility function to display text in the active viewer.
Utility function to display text in the active viewer .