graph_displayer_canvas-node.cc
changeset 192 9d7489e8921e
parent 174 95872af46fc4
child 194 6b2b718420eb
child 204 8fec6a6472fe
equal deleted inserted replaced
19:c4a88631179b 20:7f28ebeff88b
   183 
   183 
   184 	  double w=(*actual_map)[i];
   184 	  double w=(*actual_map)[i];
   185 
   185 
   186 	  if(max!=min)
   186 	  if(max!=min)
   187 	    {
   187 	    {
   188 	      color.set_rgb_p (0, 0, 100*(w-min)/(max-min));
   188 	      color=rainbowColorCounter(min, max, w);
   189 	    }
   189 	    }
   190 	  else
   190 	  else
   191 	    {
   191 	    {
   192 	      color.set_rgb_p (0, 0, 100);
   192 	      color.set_rgb_p (0, 0, 1);
   193 	    }
   193 	    }
   194 
   194 
   195 	  nodesmap[i]->property_fill_color_gdk().set_value(color);
   195 	  nodesmap[i]->property_fill_color_gdk().set_value(color);
   196 	}
   196 	}
   197     }
   197     }
   201 
   201 
   202       double w=(*actual_map)[node];
   202       double w=(*actual_map)[node];
   203 
   203 
   204       if(max!=min)
   204       if(max!=min)
   205 	{
   205 	{
   206 	  color.set_rgb_p (0, 0, 100*(w-min)/(max-min));
   206 	  color=rainbowColorCounter(min, max, w);
   207 	}
   207 	}
   208       else
   208       else
   209 	{
   209 	{
   210 	  color.set_rgb_p (0, 0, 100);
   210 	  color.set_rgb_p (0, 0, 1);
   211 	}
   211 	}
   212 
   212 
   213       nodesmap[node]->property_fill_color_gdk().set_value(color);
   213       nodesmap[node]->property_fill_color_gdk().set_value(color);
   214     }
   214     }
   215   return 0;
   215   return 0;