COIN-OR::LEMON - Graph Library

Changeset 194:6b2b718420eb in glemon-0.x for graph_displayer_canvas-edge.cc


Ignore:
Timestamp:
02/28/07 19:20:28 (17 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@3205
Message:

Header reorganising

File:
1 edited

Legend:

Unmodified
Added
Removed
  • graph_displayer_canvas-edge.cc

    r179 r194  
    1717 */
    1818
    19 #include "graph_displayer_canvas.h"
     19#include <graph_displayer_canvas.h>
     20#include <mapstorage.h>
     21#include <nbtab.h>
    2022#include <cmath>
    2123
     
    2830  min=edge_property_defaults[E_WIDTH];
    2931  max=edge_property_defaults[E_WIDTH];
    30   Graph::EdgeMap<double> actual_map((mytab.mapstorage).graph,edge_property_defaults[E_WIDTH]);
     32  Graph::EdgeMap<double> actual_map((mytab.mapstorage)->graph,edge_property_defaults[E_WIDTH]);
    3133 
    3234  if(edge==INVALID)
    3335    {
    34       for (EdgeIt i((mytab.mapstorage).graph); i!=INVALID; ++i)
     36      for (EdgeIt i((mytab.mapstorage)->graph); i!=INVALID; ++i)
    3537        {
    3638          double v=fabs(actual_map[i]);
     
    6971  double min, max;
    7072
    71   min=(mytab.mapstorage).minOfEdgeMap(mapname);
    72   max=(mytab.mapstorage).maxOfEdgeMap(mapname);
    73   actual_map=((mytab.mapstorage).edgemap_storage)[mapname];
    74 
    75   if(edge==INVALID)
    76     {
    77       for (EdgeIt i((mytab.mapstorage).graph); i!=INVALID; ++i)
     73  min=(mytab.mapstorage)->minOfEdgeMap(mapname);
     74  max=(mytab.mapstorage)->maxOfEdgeMap(mapname);
     75  actual_map=((mytab.mapstorage)->edgemap_storage)[mapname];
     76
     77  if(edge==INVALID)
     78    {
     79      for (EdgeIt i((mytab.mapstorage)->graph); i!=INVALID; ++i)
    7880        {
    7981          double v=(*actual_map)[i];
     
    132134  //green in RGB
    133135  Graph::EdgeMap<double> * actual_map;
    134   actual_map=((mytab.mapstorage).edgemap_storage)[mapname];
     136  actual_map=((mytab.mapstorage)->edgemap_storage)[mapname];
    135137
    136138  double max, min;
    137139
    138   max=(mytab.mapstorage).maxOfEdgeMap(mapname);
    139   min=(mytab.mapstorage).minOfEdgeMap(mapname);
    140 
    141   if(edge==INVALID)
    142     {
    143       for (EdgeIt i((mytab.mapstorage).graph); i!=INVALID; ++i)
     140  max=(mytab.mapstorage)->maxOfEdgeMap(mapname);
     141  min=(mytab.mapstorage)->minOfEdgeMap(mapname);
     142
     143  if(edge==INVALID)
     144    {
     145      for (EdgeIt i((mytab.mapstorage)->graph); i!=INVALID; ++i)
    144146        {
    145147          double w=(*actual_map)[i];
     
    183185  //the minimum of the nodemap to the range of
    184186  //green in RGB
    185   Graph::EdgeMap<double> actual_map((mytab.mapstorage).graph,edge_property_defaults[E_COLOR]);
     187  Graph::EdgeMap<double> actual_map((mytab.mapstorage)->graph,edge_property_defaults[E_COLOR]);
    186188
    187189  double max, min;
     
    192194  if(edge==INVALID)
    193195    {
    194       for (EdgeIt i((mytab.mapstorage).graph); i!=INVALID; ++i)
     196      for (EdgeIt i((mytab.mapstorage)->graph); i!=INVALID; ++i)
    195197        {
    196198          double w=actual_map[i];
     
    237239  if(edge==INVALID)
    238240    {
    239       for (EdgeIt i((mytab.mapstorage).graph); i!=INVALID; ++i)
     241      for (EdgeIt i((mytab.mapstorage)->graph); i!=INVALID; ++i)
    240242        {
    241243          edgemap_to_edit=mapname;
    242           double number=(*((mytab.mapstorage).edgemap_storage)[mapname])[i];
     244          double number=(*((mytab.mapstorage)->edgemap_storage)[mapname])[i];
    243245         
    244246          std::ostringstream ostr;
     
    251253  else
    252254    {
    253           double number=(*((mytab.mapstorage).edgemap_storage)[mapname])[edge];
     255          double number=(*((mytab.mapstorage)->edgemap_storage)[mapname])[edge];
    254256
    255257          std::ostringstream ostr;
     
    272274  if(edge==INVALID)
    273275    {
    274       for (EdgeIt i((mytab.mapstorage).graph); i!=INVALID; ++i)
     276      for (EdgeIt i((mytab.mapstorage)->graph); i!=INVALID; ++i)
    275277        {
    276278          edgemap_to_edit="";
Note: See TracChangeset for help on using the changeset viewer.