Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
graphics
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
,
27
TRIANGLE
,
FILLED_TRIANGLE
,
28
CIRCLE
,
FILLED_CIRCLE
,
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
}
hippodraw::Symbol::CIRCLE
Definition:
SymbolType.h:36
hippodraw::Symbol::TRIANGLE
Definition:
SymbolType.h:34
hippodraw::Symbol::Type
Type
Enumeration of the type of symbols supported by this class.
Definition:
SymbolType.h:28
hippodraw::Symbol::types
static Type types[]
An array to allow conversion of integer to enumeration.
Definition:
SymbolType.cxx:25
hippodraw::Symbol::SOLIDSQUARE
Definition:
SymbolType.h:30
hippodraw::Symbol::PLUS
Definition:
SymbolType.h:32
hippodraw::Symbol::TIMES
Definition:
SymbolType.h:33
hippodraw::Symbol::FILLED_CIRCLE
Definition:
SymbolType.h:37
num_util::type
PyArray_TYPES type(numeric::array arr)
Definition:
num_util.cpp:249
SymbolType.h
SymbolType enumeration.
hippodraw::Symbol::SQUARE
Definition:
SymbolType.h:29
hippodraw::Symbol::INVISIBLE
Definition:
SymbolType.h:38
hippodraw::Symbol::convert
Type convert(unsigned int type)
Definition:
SymbolType.cxx:31
hippodraw::Symbol::FILLED_TRIANGLE
Definition:
SymbolType.h:35
Generated for HippoDraw Class Library by