model_server/edge/src/edge.cxx
/*
 * edge constructor, one that does everything that can be spec. in IDL
 */
edge constructor, one that does everything that can be spec. in IDL
edge constructor one that does everything that can be spec . in IDL
edge::edge(node* s, node* t , int type, char* tname)
{
    settype(type);
    type_name = NULL;
    if (tname != NULL)
      settypename (tname);
    nextedge = 0;
    prevedge = 0;
    source = s;
    sourcename = NULL;
    target = t;
    targetname = NULL;
    sourceloc.x = s->getx()+(s->getwidth()/2);
    sourceloc.y = s->gety()+(s->getheight());
    targetloc.x = t->getx()+(t->getwidth()/2);
    targetloc.y = t->gety();
    reversed = 0;
    dummy = 0;
}
edge :: edge ( node * s , node * t , int type , char * tname ) { settype ( type ) ; type_name = NULL ; if ( tname != NULL ) settypename ( tname ) ; nextedge = 0 ; prevedge = 0 ; source = s ; sourcename = NULL ; target = t ; targetname = NULL ; sourceloc . x = s -> getx ( ) + ( s -> getwidth ( ) / 2 ) ; sourceloc . y = s -> gety ( ) + ( s -> getheight ( ) ) ; targetloc . x = t -> getx ( ) + ( t -> getwidth ( ) / 2 ) ; targetloc . y = t -> gety ( ) ; reversed = 0 ; dummy = 0 ; }
edge constructor, one that does everything that can be spec.
edge constructor one that does everything that can be spec .
//    else //      settypename(DEFAULTEDGENAME);