00001
00002
00014 #ifndef _LineStyle_H_
00015 #define _LineStyle_H_
00016
00017 namespace hippodraw {
00018
00021 namespace Line {
00022
00025 enum Style
00026 {
00027 Solid,
00028 Dash,
00029 Dot,
00030 DashDot,
00031 DashDotDot,
00032 Invisible
00033 };
00034
00035 namespace {
00036 Style styles[] = { Solid, Dash, Dot, DashDot, DashDotDot, Invisible };
00037 }
00038
00039 inline Style convert ( unsigned int style )
00040 {
00041 if ( style > Invisible ) style = Invisible;
00042
00043 return styles [ style ];
00044 }
00045
00046 }
00047 }
00048
00049 #endif // _LineStyle_H_