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

SymbolType.h

Go to the documentation of this file.
00001 /* -*- mode: c++ -*- */
00002 
00014 #ifndef _SymbolType_H_
00015 #define _SymbolType_H_
00016 
00017 
00018 namespace hippodraw {
00019 
00022   namespace Symbol {
00033     enum Type { 
00034       SQUARE,
00035       SOLIDSQUARE, 
00036       PLUS, 
00037       TIMES, 
00038       TRIANGLE, 
00039       FILLED_TRIANGLE, 
00040       CIRCLE,
00041       FILLED_CIRCLE,
00042       INVISIBLE
00043     };
00044 
00045     namespace {
00046       Type types [] = { SQUARE, SOLIDSQUARE, PLUS, TIMES, TRIANGLE,
00047                         FILLED_TRIANGLE, CIRCLE, FILLED_CIRCLE, INVISIBLE };
00048     }
00049 
00050     inline Type convert ( unsigned int type )
00051     {
00052       type = type > INVISIBLE ? INVISIBLE : type;
00053 
00054       return types [ type];
00055     }
00056 
00057   }
00058 }
00059 
00060 #endif // _SymbolType_H_

Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3