model_server/driver_aset/src/driver.cxx
//------------------------------------------
// addselect
//
// Routine to add a node to the selection stack
//------------------------------------------
addselect
Routine to add a node to the selection stack
addselect Routine to add a node to the selection stack
void driver::addselect(OperPoint *pt)
{
    Initialize(driver::addselect);
    viewTreePtr vw_nd;
    if (pt) current_oper_pt = pt;
    else pt =  current_oper_pt;
    if (current_oper_pt != (OperPoint*)NULL) {
	sel_list.push_pt (*current_oper_pt);
	vw_nd = checked_cast(viewTree, current_oper_pt->view_node);
	if (vw_nd != checked_cast(viewTree,NULL)) {
	    if (is_viewSymbolNode (vw_nd)) {
		(checked_cast(viewSymbolNode,vw_nd))->select ();
	    }
	}
    }
   if(0) {
     appTree * node = pt->node;
     viewTree * vn = (viewTree*) pt->view_node;
     view * vh = (view*) (vn ? vn->get_header() : 0);
     DBG
      {
         cout << "  addselect node " << node << " view " << vh->get_name()
                << " oper " << (int)pt->type << " off " << pt->offset_of << endl;
     }
     if(cmd_begin()){
         cmd_dr_gen("driver_addselect(%n, %d);", node, pt->type);
     }
     cmd_end();
  }
void driver :: addselect ( OperPoint * pt ) { Initialize ( driver :: addselect ) ; viewTreePtr vw_nd ; if ( pt ) current_oper_pt = pt ; else pt = current_oper_pt ; if ( current_oper_pt != ( OperPoint * ) NULL ) { sel_list . push_pt ( * current_oper_pt ) ; vw_nd = checked_cast ( viewTree , current_oper_pt -> view_node ) ; if ( vw_nd != checked_cast ( viewTree , NULL ) ) { if ( is_viewSymbolNode ( vw_nd ) ) { ( checked_cast ( viewSymbolNode , vw_nd ) ) -> select ( ) ; } } } if ( 0 ) { appTree * node = pt -> node ; viewTree * vn = ( viewTree * ) pt -> view_node ; view * vh = ( view * ) ( vn ? vn -> get_header ( ) : 0 ) ; DBG { cout << " " << node << " " << vh -> get_name ( ) << " " << ( int ) pt -> type << " " << pt -> offset_of << endl ; } if ( cmd_begin ( ) ) { cmd_dr_gen ( " " , node , pt -> type ) ; } cmd_end ( ) ; }
addselect
Routine to add a node to the selection stack
addselect Routine to add a node to the selection stack