BinToLineStyle.cxx

Go to the documentation of this file.
00001 
00012 #include "BinToLineStyle.h"
00013 
00014 namespace hippodraw {
00015 
00016 BinToLineStyle::
00017 BinToLineStyle ( const char * name )
00018   : BinToColor ( name )
00019 {
00020 }
00021 
00022 BinToLineStyle::BinToLineStyle ( const BinToLineStyle & bin_to_color )
00023   : BinToColor ( bin_to_color )
00024 {
00025 }
00026 
00027 BinToColor * BinToLineStyle:: clone () const
00028 {
00029   return new BinToLineStyle ( *this );
00030 }
00031 
00032 void
00033 BinToLineStyle::
00034 doubleToColor ( double, Color & color ) const
00035 { 
00036   int red=color.getRed();
00037   int green=color.getGreen();
00038   int blue=color.getBlue();
00039   
00040   color.setColor ( red, green, blue );
00041 }
00042 
00043 bool
00044 BinToLineStyle::
00045 acceptChangeColor () const
00046 { 
00047         return true;
00048 }
00049 
00050 } // namespace hippodraw
00051 

Generated for HippoDraw Class Library by doxygen