BALL
1.4.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
BALL
VIEW
DATATYPE
colorUnitHue.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
5
#ifndef BALL_VIEW_DATATYPE_COLORUNITHUE_H
6
#define BALL_VIEW_DATATYPE_COLORUNITHUE_H
7
8
#ifndef BALL_COMMON_H
9
# include <
BALL/common.h
>
10
#endif
11
12
#ifndef BALL_DATATYPE_STRING_H
13
# include <
BALL/DATATYPE/string.h
>
14
#endif
15
16
#ifndef BALL_VIEW_DATATYPE_COLORUNIT_H
17
# include <
BALL/VIEW/DATATYPE/colorUnit.h
>
18
#endif
19
20
#include <iostream>
21
#include <stdio.h>
22
23
namespace
BALL
24
{
25
namespace
VIEW
26
{
36
class
BALL_VIEW_EXPORT
ColorUnitHue
37
{
38
public
:
39
40
BALL_CREATE
(
ColorUnitHue
)
41
42
45
48
ColorUnitHue
();
49
52
ColorUnitHue
(
const
ColorUnitHue
& colcor_h_unit);
53
59
ColorUnitHue
(
const
char
* value);
60
65
ColorUnitHue
(
const
String
& value);
66
71
ColorUnitHue
(
const
short
value);
72
77
ColorUnitHue
(
const
unsigned
short
value);
78
83
ColorUnitHue
(
const
int
value);
84
89
ColorUnitHue
(
const
unsigned
int
value);
90
95
ColorUnitHue
(
const
long
value);
96
101
ColorUnitHue
(
const
unsigned
long
value);
102
107
ColorUnitHue
(
const
float
value);
108
113
ColorUnitHue
(
const
double
value);
114
119
ColorUnitHue
(
const
long
double
value);
120
122
124
127
virtual
~
ColorUnitHue
();
128
132
virtual
void
clear();
133
135
138
142
operator
String
()
const
;
143
147
operator
short ()
const
;
148
152
operator
unsigned
short ()
const
;
153
157
operator
int ()
const
;
158
162
operator
unsigned
int ()
const
;
163
167
operator
long ()
const
;
168
172
operator
unsigned
long ()
const
;
173
177
operator
float
()
const
;
178
182
operator
double
()
const
;
183
187
operator
long
double
()
const
;
188
190
193
196
void
set
(
const
ColorUnitHue
& color_unit_hue);
197
200
const
ColorUnitHue
& operator = (
const
ColorUnitHue
& color_unit_hue);
201
204
void
swap(
ColorUnitHue
& color_unit_hue);
205
212
void
set
(
const
char
* value);
213
220
const
ColorUnitHue
& operator = (
const
char
* value);
221
228
void
get
(
char
* value)
const
;
229
235
void
set
(
const
String
& value);
236
243
const
ColorUnitHue
& operator = (
const
String
& value);
244
249
void
get
(
String
& value)
const
;
250
255
void
set
(
const
short
value);
256
262
const
ColorUnitHue
& operator = (
const
short
value);
263
267
void
get
(
short
& value)
const
;
268
273
void
set
(
const
unsigned
short
value);
274
280
const
ColorUnitHue
& operator = (
const
unsigned
short
value);
281
285
void
get
(
unsigned
short
& value)
const
;
286
291
void
set
(
const
int
value);
292
298
const
ColorUnitHue
& operator = (
const
int
value);
299
303
void
get
(
int
& value)
const
;
304
309
void
set
(
const
unsigned
int
value);
310
316
const
ColorUnitHue
& operator = (
const
unsigned
int
value);
317
321
void
get
(
unsigned
int
& value)
const
;
322
327
void
set
(
const
long
value);
328
334
const
ColorUnitHue
& operator = (
const
long
value);
335
339
void
get
(
long
& value)
const
;
340
345
void
set
(
const
unsigned
long
value);
346
352
const
ColorUnitHue
& operator = (
const
unsigned
long
value);
353
357
void
get
(
unsigned
long
& value)
const
;
358
363
void
set
(
const
float
value);
364
370
const
ColorUnitHue
& operator = (
const
float
init);
371
376
void
get
(
float
& value)
const
;
377
382
void
set
(
const
double
value);
383
389
const
ColorUnitHue
& operator = (
const
double
value);
390
394
void
get
(
double
& value)
const
;
395
400
void
set
(
const
long
double
value);
401
407
const
ColorUnitHue
& operator = (
const
long
double
value);
408
412
void
get
(
long
double
& value)
const
;
413
415
418
421
bool
operator == (
const
ColorUnitHue
& color_unit_hue)
const
;
422
425
bool
operator != (
const
ColorUnitHue
& color_unit_hue)
const
;
426
429
bool
operator < (
const
ColorUnitHue
& color_unit_hue)
const
;
430
433
bool
operator <= (
const
ColorUnitHue
& color_unit_hue)
const
;
434
437
bool
operator > (
const
ColorUnitHue
& color_unit_hue)
const
;
438
441
bool
operator >= (
const
ColorUnitHue
& color_unit_hue)
const
;
442
444
447
454
virtual
void
dump(std::ostream& s = std::cout,
Size
depth = 0)
const
;
455
457
460
468
friend
std::istream&
operator >>
(std::istream& s,
ColorUnitHue
& color_unit_hue);
469
477
friend
std::ostream&
operator <<
(std::ostream& s,
const
ColorUnitHue
& color_unit_hue);
479
480
private
:
481
482
// @throw Exception::InvalidRange
483
// @throw Exception::NotInHexFormat
484
float
hexToFloat_(
const
char
*
string
);
485
486
float
value_
;
487
};
488
489
# ifndef BALL_NO_INLINE_FUNCTIONS
490
# include <BALL/VIEW/DATATYPE/colorUnitHue.iC>
491
# endif
492
493
}
// namspace VIEW
494
}
// namespace BALL
495
496
#endif // BALL_VIEW_DATATYPE_COLORUNITHUE_H
Generated by
1.8.1.2