BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
colorExtensions.h
Go to the documentation of this file.
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4 // $Id: colorExtensions.h,v 1.1.4.1 2007/03/25 21:25:40 oliver Exp $
5 //
6 
7 #ifndef BALL_VIEW_DATATYPE_COLOREXTENSIONS_H
8 #define BALL_VIEW_DATATYPE_COLOREXTENSIONS_H
9 
10 #ifndef BALL_VIEW_DATATYPE_COLORRGBA_H
12 #endif
13 
14 namespace BALL
15 {
16  namespace VIEW
17  {
18 
26  {
27  public:
28 
30 
31 
34 
39 
42  ColorExtension2(const ColorExtension2& color_extension);
43 
46  virtual ~ColorExtension2();
47 
53  virtual void clear();
54 
56 
59 
62  void set(const ColorExtension2& color_extension);
63 
67  const ColorExtension2& operator = (const ColorExtension2& color_extension);
68 
71  void swap(ColorExtension2& color_extension);
72 
74 
77 
80  void setColor2(const ColorRGBA& color);
81 
84  ColorRGBA& getColor2();
85 
88  const ColorRGBA& getColor2() const;
89 
92  void getColor2(ColorRGBA& color) const;
93 
95 
97 
105  virtual void dump(std::ostream& s = std::cout, Size depth = 0) const;
107 
108  private:
109 
110  /* color 2 */
111  ColorRGBA color2_;
112  };
113 
121  {
122  public:
123 
125 
126 
129 
133 
136  MultiColorExtension(const MultiColorExtension& color_extension);
137 
140  virtual ~MultiColorExtension();
141 
145  virtual void clear();
146 
148 
151 
154  void set(const MultiColorExtension& color_extension);
155 
159  const MultiColorExtension& operator = (const MultiColorExtension& color_extension);
160 
163  void swap(MultiColorExtension& color_extension);
164 
166 
169 
172  void setColors(const vector<ColorRGBA>& colors);
173 
176  vector<ColorRGBA>& getColors();
177 
180  const vector<ColorRGBA>& getColors() const;
181 
183  void setAlphas(Size alpha);
184 
186 
188 
196  virtual void dump(std::ostream& s = std::cout, Size depth = 0) const;
198 
199  vector<ColorRGBA> colors;
200  };
201 
202 
203 # ifndef BALL_NO_INLINE_FUNCTIONS
204 # include <BALL/VIEW/DATATYPE/colorExtensions.iC>
205 # endif
206 
207  } // namespace VIEW
208 } // namespace BALL
209 
210 #endif // BALL_VIEW_KERNEL_COLOREXTENSIONS_H
#define BALL_CREATE(name)
Definition: create.h:62
#define BALL_VIEW_EXPORT
Definition: COMMON/global.h:52