model_server/edge/src/node.cxx
/* 
 * node constructor, containing everything that can possibly be specified 
 *	in the interface description language
 */
node constructor, containing everything that can possibly be specified
in the interface description language
node constructor containing everything that can possibly be specified in the interface description language
node::node(int t,char* tn,int wd, int h, int bw)
{
  type_name = NULL;
  succlist = new nlist();
  ssucclist = new nlist ();
  predlist = new nlist();
  nextnode = NULL;
  prevnode = NULL;
  backgraph = NULL;
  reached = 0;
  straight = 0;
  level = 0;
  visible = 0;
  dfnum = 0;
  displayed = 0;
  dummy = 0;
  rgraph = NULL;
  sgdummy = 0;
  ncon = 0;
  realsource = NULL;
  realtarget = NULL;
  constr[X] = NULL;  constr[Y] = NULL;  constr[Z] = NULL;
  standardiconpixmap = NULL;
  standardiconheight = standardiconwidth = 0;
  stable = 0;
    settype(t);
    if (tn != NULL)
      settypename (tn);
    width = wd;
    height = h;
    borderwidth = bw;
    loc.x = 0; loc.y = 0;
}
node :: node ( int t , char * tn , int wd , int h , int bw ) { type_name = NULL ; succlist = new nlist ( ) ; ssucclist = new nlist ( ) ; predlist = new nlist ( ) ; nextnode = NULL ; prevnode = NULL ; backgraph = NULL ; reached = 0 ; straight = 0 ; level = 0 ; visible = 0 ; dfnum = 0 ; displayed = 0 ; dummy = 0 ; rgraph = NULL ; sgdummy = 0 ; ncon = 0 ; realsource = NULL ; realtarget = NULL ; constr [ X ] = NULL ; constr [ Y ] = NULL ; constr [ Z ] = NULL ; standardiconpixmap = NULL ; standardiconheight = standardiconwidth = 0 ; stable = 0 ; settype ( t ) ; if ( tn != NULL ) settypename ( tn ) ; width = wd ; height = h ; borderwidth = bw ; loc . x = 0 ; loc . y = 0 ; }
node constructor, containing everything that can possibly be specified
      in the interface description language
node constructor containing everything that can possibly be specified in the interface description language
/*  --------- defaults are not used.
  node *def = NULL;

  if (def != NULL) {
    settype(t);
    if (tn != NULL)
      settypename (tn);
    else
      settypename (def->gettypename ());
    width = wd;
    height = h;
    if (bw != 0)
      borderwidth = bw;
    else
      borderwidth = def->getborderwidth ();
    loc.x = def->getx (); loc.y = def->gety ();
  }
*/ //    else //      settypename (DEFAULTNODENAME);