Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

LineStyle.h

Go to the documentation of this file.
00001 /* -*- mode:c++ -*- */
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   } // end namespace Line
00047 } // end namespace hippodraw
00048 
00049 #endif // _LineStyle_H_

Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3