model_server/driver_aset/src/driver.cxx
// expands selected nodes in specified view to
// specified level. Null view implies all views.
expands selected nodes in specified view to
specified level. Null view implies all views.
expands selected nodes in specified view to specified level . Null view implies all views .
void driver::expand (viewPtr view, int level)
{
    Initialize(driver::expand);
    objArr         temp;
    Obj            *el, *el1;
    viewTreePtr    vw_nd;
    OperPoint      *pt;
    start_transaction(){
	update_selection (view, 1);
	ForEach (el, sel_list.oper_pts) {
	    if (el != NULL) {
		pt = (OperPoint*)el;
		if (vw_nd = checked_cast(viewNode, pt->view_node)) {
		    if (view == NULL || view == get_view_header(vw_nd))
			temp.insert_last (vw_nd);
		}
	    }
	}
	if (temp.size() > 0) {
	    ForEach (el1, temp) {
		expand( view, checked_cast(viewTree, el1), level);
	    }
	} else {
	    if (view)
		expand (view, checked_cast(viewTree, NULL), level);
	}
    }end_transaction();
}
void driver :: expand ( viewPtr view , int level ) { Initialize ( driver :: expand ) ; objArr temp ; Obj * el , * el1 ; viewTreePtr vw_nd ; OperPoint * pt ; start_transaction ( ) { update_selection ( view , 1 ) ; ForEach ( el , sel_list . oper_pts ) { if ( el != NULL ) { pt = ( OperPoint * ) el ; if ( vw_nd = checked_cast ( viewNode , pt -> view_node ) ) { if ( view == NULL || view == get_view_header ( vw_nd ) ) temp . insert_last ( vw_nd ) ; } } } if ( temp . size ( ) > 0 ) { ForEach ( el1 , temp ) { expand ( view , checked_cast ( viewTree , el1 ) , level ) ; } } else { if ( view ) expand ( view , checked_cast ( viewTree , NULL ) , level ) ; } } end_transaction ( ) ; }
expands selected nodes in specified view to
specified level.
expands selected nodes in specified view to specified level .
// update selection from local selections // Accumulate all selected nodes in local array // For each node do expand //unselect (checked_cast(viewTree, el1));