SymbolType.cxx
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #include "SymbolType.h"
15 
16 namespace hippodraw {
17 
18  namespace Symbol {
19 
25  static Type types [] = { SQUARE, SOLIDSQUARE,
26  PLUS, TIMES,
29  INVISIBLE };
30 
31  Type convert ( unsigned int type )
32  {
33  type = type > INVISIBLE ? INVISIBLE : type;
34 
35  return types [ type ];
36  }
37 
38  }
39 }
Type
Enumeration of the type of symbols supported by this class.
Definition: SymbolType.h:28
static Type types[]
An array to allow conversion of integer to enumeration.
Definition: SymbolType.cxx:25
PyArray_TYPES type(numeric::array arr)
Definition: num_util.cpp:249
SymbolType enumeration.
Type convert(unsigned int type)
Definition: SymbolType.cxx:31

Generated for HippoDraw Class Library by doxygen