COIN-OR::LEMON - Graph Library

Changeset 204:8fec6a6472fe in glemon-0.x for graph_displayer_canvas.cc


Ignore:
Timestamp:
02/20/07 16:08:30 (14 years ago)
Author:
Hegyi Péter
Branch:
fastopen
Phase:
public
Tags:
tip
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/branches/fastopen@3191
Message:

The much faster way.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • graph_displayer_canvas.cc

    r187 r204  
    7373    {
    7474      delete nodesmap[n];
    75       delete nodetextmap[n];
     75      //      delete nodetextmap[n];
    7676    }
    7777 
     
    7979    {
    8080      delete edgesmap[e];
    81       delete edgetextmap[e];
     81      //      delete edgetextmap[e];
    8282    }
    8383}
     
    223223    text_pos+=(XY(10,10));
    224224
    225     edgetextmap[i]=new Gnome::Canvas::Text(displayed_graph, text_pos.x, text_pos.y, "");
    226     edgetextmap[i]->property_fill_color().set_value("darkgreen");
    227     edgetextmap[i]->signal_event().connect(sigc::mem_fun(*this, &GraphDisplayerCanvas::mapEditEventHandler), false);
    228     edgetextmap[i]->raise_to_top();
     225//     edgetextmap[i]=new Gnome::Canvas::Text(displayed_graph, text_pos.x, text_pos.y, "");
     226//     edgetextmap[i]->property_fill_color().set_value("darkgreen");
     227//     edgetextmap[i]->signal_event().connect(sigc::mem_fun(*this, &GraphDisplayerCanvas::mapEditEventHandler), false);
     228//     edgetextmap[i]->raise_to_top();
    229229  }
    230230
     
    251251        ((mytab.mapstorage).coords[i].y+node_property_defaults[N_RADIUS]+5));
    252252
    253     nodetextmap[i]=new Gnome::Canvas::Text(displayed_graph,
    254         text_pos.x, text_pos.y, "");
    255     nodetextmap[i]->property_fill_color().set_value("darkblue");
    256     nodetextmap[i]->signal_event().connect(sigc::mem_fun(*this, &GraphDisplayerCanvas::mapEditEventHandler), false);
    257     nodetextmap[i]->raise_to_top();
     253//     nodetextmap[i]=new Gnome::Canvas::Text(displayed_graph,
     254//         text_pos.x, text_pos.y, "");
     255//     nodetextmap[i]->property_fill_color().set_value("darkblue");
     256//     nodetextmap[i]->signal_event().connect(sigc::mem_fun(*this, &GraphDisplayerCanvas::mapEditEventHandler), false);
     257//     nodetextmap[i]->raise_to_top();
    258258  }
    259259
     
    285285  {
    286286    delete nodesmap[n];
    287     delete nodetextmap[n];
     287    //    delete nodetextmap[n];
    288288  }
    289289
     
    291291  {
    292292    delete edgesmap[e];
    293     delete edgetextmap[e];
     293    //    delete edgetextmap[e];
    294294  }
    295295
Note: See TracChangeset for help on using the changeset viewer.