Debian Codegraph @

include/BALL/PYTHON/EXTENSIONS/pyColorRGBAVector.h

raw symbols SCIP
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4 // $Id: pyColorRGBAVector.h,v 1.2 2005/12/23 17:01:56 amoll Exp $
5 //
6
7 #ifndef BALL_PYTHON_PYCOLORRGBAVECTOR_H
8 #define BALL_PYTHON_PYCOLORRGBAVECTOR_H
9
10 #ifndef BALL_COMMON_H
11 # include <BALL/common.h>
12 #endif
13
14 #ifndef BALL_VIEW_DATATYPE_COLORRGBA_H
15 # include <BALL/VIEW/DATATYPE/colorRGBA.h>
16 #endif
17
18 #include <vector>
19
20 namespace BALL
21 {
22 /** Equivalent for a STL::vector of ColorRGBA in Python
23 \ingroup PythonExtensions
24 */
25 class PyColorRGBAVector
26 : public std::vector<VIEW::ColorRGBA>
27 {
28 public:
29
30 BALL_CREATE(PyColorRGBAVector)
31
32 /** @name Type Definitions
33 */
34 //@{
35
36 /** ColorRGBA type
37 */
38 typedef VIEW::ColorRGBA ValueType;
39
40 /** Pointer type
41 */
42 typedef VIEW::ColorRGBA* PointerType;
43
44 /** Iterator type.
45 */
46 typedef std::vector<VIEW::ColorRGBA>::iterator Iterator;
47
48 /** Constant iterator type.
49 */
50 typedef std::vector<VIEW::ColorRGBA>::const_iterator ConstIterator;
51
52 //@}
53 /** @name Constructors and Destructors */
54 //@{
55
56 /** Default constructor.
57 */
58 PyColorRGBAVector();
59
60 /// Copy constructor.
61 PyColorRGBAVector(const PyColorRGBAVector& c_vector);
62
63 /// Copy constructor.
64 PyColorRGBAVector(const std::vector<VIEW::ColorRGBA>& c_vector);
65
66 /// Destructor
67 virtual ~PyColorRGBAVector() throw();
68 //@}
69
70 };
71
72 } // namespace BALL
73
74 #endif // BALL_PYTHON_PYCOLORRGBAVECTOR_H