model_server/ldr/src/ldrSmodShort.cxx
// Sets temp_vis flag to 1 for nodes that will get extracted and
// 0 for others. Uses temp_vis field on smtTree
//
Sets temp_vis flag to 1 for nodes that will get extracted and
0 for others. Uses temp_vis field on smtTree
Sets temp_vis flag to 1 for nodes that will get extracted and 0 for others . Uses temp_vis field on smtTree
int ldrSmodShort::set_visible( smtTreePtr root, int unparse_flag )
{
  underInitialize(ldrSmodShort::set_visible);
  if ( root == NULL )
     return 0;
  root->temp_vis = 0;    
  if ( root->smod_vision == SmodFull ){
     put_visible( root, 1 );
     return 1;
  }
  if ( check_visible_relations(root) && root->smod_vision == SmodZero )
      root->smod_vision = SmodLocal;
  if ( check_visibility(root, unparse_flag) ) 
      root->temp_vis = 1;
  objTreePtr cur = root->get_first();
  int child_flag = 0;
  for ( ; cur ; cur = cur->get_next() ){
     if ( set_visible(checked_cast(smtTree,cur), unparse_flag) )
        child_flag = 1;
  }
  if ( child_flag )
     root->temp_vis = 1;
  return root->temp_vis;
}
int ldrSmodShort :: set_visible ( smtTreePtr root , int unparse_flag ) { underInitialize ( ldrSmodShort :: set_visible ) ; if ( root == NULL ) return 0 ; root -> temp_vis = 0 ; if ( root -> smod_vision == SmodFull ) { put_visible ( root , 1 ) ; return 1 ; } if ( check_visible_relations ( root ) && root -> smod_vision == SmodZero ) root -> smod_vision = SmodLocal ; if ( check_visibility ( root , unparse_flag ) ) root -> temp_vis = 1 ; objTreePtr cur = root -> get_first ( ) ; int child_flag = 0 ; for ( ; cur ; cur = cur -> get_next ( ) ) { if ( set_visible ( checked_cast ( smtTree , cur ) , unparse_flag ) ) child_flag = 1 ; } if ( child_flag ) root -> temp_vis = 1 ; return root -> temp_vis ; }
Sets temp_vis flag to 1 for nodes that will get extracted and
0 for others.
Sets temp_vis flag to 1 for nodes that will get extracted and 0 for others .
// invisible by default; //There is some local attention