Loading...
Searching...
No Matches
colorUnitHue.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_VIEW_DATATYPE_COLORUNITHUE_H
#define BALL_VIEW_DATATYPE_COLORUNITHUE_H
#include <BALL/common.h>
#include <BALL/DATATYPE/string.h>
#include <BALL/MATHS/common.h>
#include <BALL/VIEW/DATATYPE/colorUnit.h>
#include <iostream>
#include <cstdio>
namespace BALL
{
namespace VIEW
{
class BALL_VIEW_EXPORT ColorUnitHue
{
public:
BALL_CREATE(ColorUnitHue)
ColorUnitHue();
ColorUnitHue(const ColorUnitHue& colcor_h_unit);
ColorUnitHue(const char* value);
ColorUnitHue(const String& value);
ColorUnitHue(const short value);
ColorUnitHue(const unsigned short value);
ColorUnitHue(const int value);
ColorUnitHue(const unsigned int value);
ColorUnitHue(const long value);
ColorUnitHue(const unsigned long value);
ColorUnitHue(const float value);
ColorUnitHue(const double value);
ColorUnitHue(const long double value);
virtual ~ColorUnitHue();
virtual void clear();
operator String () const;
operator short () const;
operator unsigned short () const;
operator int () const;
operator unsigned int () const;
operator long () const;
operator unsigned long () const;
operator float () const;
operator double () const;
operator long double () const;
void set(const ColorUnitHue& color_unit_hue);
const ColorUnitHue& operator = (const ColorUnitHue& color_unit_hue);
void swap(ColorUnitHue& color_unit_hue);
void set(const char* value);
const ColorUnitHue& operator = (const char* value);
void get(char* value) const;
void set(const String& value);
const ColorUnitHue& operator = (const String& value);
void get(String& value) const;
void set(const short value);
const ColorUnitHue& operator = (const short value);
void get(short& value) const;
void set(const unsigned short value);
const ColorUnitHue& operator = (const unsigned short value);
void get(unsigned short& value) const;
void set(const int value);
const ColorUnitHue& operator = (const int value);
void get(int& value) const;
void set(const unsigned int value);
const ColorUnitHue& operator = (const unsigned int value);
void get(unsigned int& value) const;
void set(const long value);
const ColorUnitHue& operator = (const long value);
void get(long& value) const;
void set(const unsigned long value);
const ColorUnitHue& operator = (const unsigned long value);
void get(unsigned long& value) const;
void set(const float value);
const ColorUnitHue& operator = (const float init);
void get(float& value) const;
void set(const double value);
const ColorUnitHue& operator = (const double value);
void get(double& value) const;
void set(const long double value);
const ColorUnitHue& operator = (const long double value);
void get(long double& value) const;
bool operator == (const ColorUnitHue& color_unit_hue) const;
bool operator != (const ColorUnitHue& color_unit_hue) const;
bool operator < (const ColorUnitHue& color_unit_hue) const;
bool operator <= (const ColorUnitHue& color_unit_hue) const;
bool operator > (const ColorUnitHue& color_unit_hue) const;
bool operator >= (const ColorUnitHue& color_unit_hue) const;
virtual void dump(std::ostream& s = std::cout, Size depth = 0) const;
friend std::istream& operator >> (std::istream& s, ColorUnitHue& color_unit_hue);
friend std::ostream& operator << (std::ostream& s, const ColorUnitHue& color_unit_hue);
private:
// @throw Exception::InvalidRange
// @throw Exception::NotInHexFormat
float hexToFloat_(const char* string);
float value_;
};
# ifndef BALL_NO_INLINE_FUNCTIONS
# include <BALL/VIEW/DATATYPE/colorUnitHue.iC>
# endif
} // namspace VIEW
} // namespace BALL
#endif // BALL_VIEW_DATATYPE_COLORUNITHUE_H
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
common.h
BALL::String
Definition string.h:57
BALL::VIEW::ColorUnitHue::swap
void swap(ColorUnitHue &color_unit_hue)
BALL::VIEW::ColorUnitHue::dump
virtual void dump(std::ostream &s=std::cout, Size depth=0) const
BALL::VIEW::ColorUnitHue::ColorUnitHue
ColorUnitHue()
BALL::VIEW::ColorUnitHue::set
void set(const ColorUnitHue &color_unit_hue)
BALL::VIEW::ColorUnitHue::clear
virtual void clear()
BALL::VIEW::ColorUnitHue::get
void get(char *value) const
colorUnit.h
common.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.
string.h