00001 /* -*- mode: c++ -*- */ 00002 00014 #include "SymbolType.h" 00015 00016 namespace hippodraw { 00017 00018 namespace Symbol { 00019 00025 static Type types [] = { SQUARE, SOLIDSQUARE, 00026 PLUS, TIMES, 00027 TRIANGLE, FILLED_TRIANGLE, 00028 CIRCLE, FILLED_CIRCLE, 00029 INVISIBLE }; 00030 00031 Type convert ( unsigned int type ) 00032 { 00033 type = type > INVISIBLE ? INVISIBLE : type; 00034 00035 return types [ type ]; 00036 } 00037 00038 } 00039 }