Loading...
Searching...
No Matches
colorExtensions.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: colorExtensions.h,v 1.1.4.1 2007/03/25 21:25:40 oliver Exp $
//
#ifndef BALL_VIEW_DATATYPE_COLOREXTENSIONS_H
#define BALL_VIEW_DATATYPE_COLOREXTENSIONS_H
#ifndef BALL_VIEW_DATATYPE_COLORRGBA_H
# include <BALL/VIEW/DATATYPE/colorRGBA.h>
#endif
namespace BALL
{
namespace VIEW
{
class BALL_VIEW_EXPORT ColorExtension2
{
public:
BALL_CREATE(ColorExtension2)
//@{
ColorExtension2();
ColorExtension2(const ColorExtension2& color_extension);
virtual ~ColorExtension2();
virtual void clear();
void set(const ColorExtension2& color_extension);
const ColorExtension2& operator = (const ColorExtension2& color_extension);
void swap(ColorExtension2& color_extension);
void setColor2(const ColorRGBA& color);
ColorRGBA& getColor2();
const ColorRGBA& getColor2() const;
void getColor2(ColorRGBA& color) const;
virtual void dump(std::ostream& s = std::cout, Size depth = 0) const;
private:
/* color 2 */
ColorRGBA color2_;
};
class BALL_VIEW_EXPORT MultiColorExtension
{
public:
BALL_CREATE(MultiColorExtension)
//@{
MultiColorExtension();
MultiColorExtension(const MultiColorExtension& color_extension);
virtual ~MultiColorExtension();
virtual void clear();
void set(const MultiColorExtension& color_extension);
const MultiColorExtension& operator = (const MultiColorExtension& color_extension);
void swap(MultiColorExtension& color_extension);
void setColors(const vector<ColorRGBA>& colors);
vector<ColorRGBA>& getColors();
const vector<ColorRGBA>& getColors() const;
void setAlphas(Size alpha);
virtual void dump(std::ostream& s = std::cout, Size depth = 0) const;
vector<ColorRGBA> colors;
};
# ifndef BALL_NO_INLINE_FUNCTIONS
# include <BALL/VIEW/DATATYPE/colorExtensions.iC>
# endif
} // namespace VIEW
} // namespace BALL
#endif // BALL_VIEW_KERNEL_COLOREXTENSIONS_H
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::VIEW::ColorExtension2::setColor2
void setColor2(const ColorRGBA &color)
BALL::VIEW::ColorExtension2::ColorExtension2
ColorExtension2()
BALL::VIEW::ColorExtension2::dump
virtual void dump(std::ostream &s=std::cout, Size depth=0) const
BALL::VIEW::ColorExtension2::set
void set(const ColorExtension2 &color_extension)
BALL::VIEW::ColorExtension2::getColor2
ColorRGBA & getColor2()
BALL::VIEW::ColorExtension2::clear
virtual void clear()
BALL::VIEW::ColorExtension2::swap
void swap(ColorExtension2 &color_extension)
BALL::VIEW::ColorRGBA
Definition colorRGBA.h:32
BALL::VIEW::MultiColorExtension::clear
virtual void clear()
BALL::VIEW::MultiColorExtension::set
void set(const MultiColorExtension &color_extension)
BALL::VIEW::MultiColorExtension::MultiColorExtension
MultiColorExtension()
BALL::VIEW::MultiColorExtension::getColors
vector< ColorRGBA > & getColors()
BALL::VIEW::MultiColorExtension::setColors
void setColors(const vector< ColorRGBA > &colors)
BALL::VIEW::MultiColorExtension::setAlphas
void setAlphas(Size alpha)
Set the alpha values for all colors.
BALL::VIEW::MultiColorExtension::colors
vector< ColorRGBA > colors
Definition colorExtensions.h:199
BALL::VIEW::MultiColorExtension::dump
virtual void dump(std::ostream &s=std::cout, Size depth=0) const
BALL::VIEW::MultiColorExtension::swap
void swap(MultiColorExtension &color_extension)
colorRGBA.h
BALL_CREATE
#define BALL_CREATE(name)
Definition create.h:62
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
BALL::Size
BALL_SIZE_TYPE Size
Definition COMMON/global.h:114
std
STL namespace.