00001 /* -*- mode:c++ -*- */ 00002 00015 #include "LineStyle.h" 00016 00017 namespace hippodraw { 00018 00019 namespace Line { 00020 00026 static Style styles[] = { Solid, Dash, Dot, DashDot, DashDotDot, 00027 Invisible }; 00028 00029 Style convert ( unsigned int style ) 00030 { 00031 if ( style > Invisible ) style = Invisible; 00032 00033 return styles [ style ]; 00034 } 00035 00036 } // end namespace Line 00037 } // end namespace