model_server/gra/src/graWorld_sym.cxx
//------------------------------------------
// get_pictel
//
// Given a symbol number and a layer number, retrieve the associated picture
//------------------------------------------
get_pictel
Given a symbol number and a layer number, retrieve the associated picture
get_pictel Given a symbol number and a layer number retrieve the associated picture
graAttachableSymbol *graWorld::get_pictel( int symbol, int pic )
{
    if (symbol == -1)
       return NULL;
    if ( symbol < 0 || symbol >= num_gra_symbol_types )
        symbol = 0;
    if ( pic < 0 || pic >= GRA_MAX_MODES )
        pic = 0;
    graAttachableSymbol* return_val = graSymbolArray[symbol].pictel[pic];
    return return_val ? return_val : graSymbolArray[symbol].pictel[0];
}
graAttachableSymbol * graWorld :: get_pictel ( int symbol , int pic ) { if ( symbol == -1 ) return NULL ; if ( symbol < 0 || symbol >= num_gra_symbol_types ) symbol = 0 ; if ( pic < 0 || pic >= GRA_MAX_MODES ) pic = 0 ; graAttachableSymbol * return_val = graSymbolArray [ symbol ] . pictel [ pic ] ; return return_val ? return_val : graSymbolArray [ symbol ] . pictel [ 0 ] ; }
get_pictel
Given a symbol number and a layer number, retrieve the associated picture
get_pictel Given a symbol number and a layer number retrieve the associated picture
// if symbol is -1, symbol should not be created.