#include "GeomExport.h"
#include "maxheap.h"
#include <WTypes.h>
#include "point3.h"
#include "maxtypes.h"
Go to the source code of this
file.
Classes
|
struct
|
RealPixel |
class
|
Color |
struct
|
LogLUV32Pixel |
struct
|
LogLUV24Pixel |
Defines
|
#define |
FLto255(x) ((int)((x)*255.0f+.5)) |
Functions
|
GEOMEXPORT
RealPixel |
MakeRealPixel
(float r, float g, float b) |
GEOMEXPORT
void |
ExpandRealPixel
(const RealPixel
&rp, float &r, float &g, float &b) |
GEOMEXPORT
int |
MaxComponent
(const Color &) |
GEOMEXPORT
int |
MinComponent
(const Color &) |
GEOMEXPORT
float |
MaxVal (const
Color &) |
GEOMEXPORT
float |
MinVal (const
Color &) |
float |
Length (const
Color &v) |
Color |
operator*
(float f, const Color
&a) |
Color |
operator*
(const Color &a,
float f) |
Color |
operator/
(const Color &a,
float f) |
Color |
operator+
(const Color &a,
float f) |
Color |
operator+
(float f, const Color
&a) |
Color |
operator-
(const Color &a,
float f) |
Color |
operator-
(float f, const Color
&a) |
Define Documentation
#define FLto255 |
( |
|
x |
) |
((int)((x)*255.0f+.5)) |
Function Documentation
GEOMEXPORT RealPixel MakeRealPixel |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b |
|
) |
|
|
GEOMEXPORT void ExpandRealPixel |
( |
const RealPixel & |
rp, |
|
|
float & |
r, |
|
|
float & |
g, |
|
|
float & |
b |
|
) |
|
|
GEOMEXPORT int MaxComponent |
( |
const Color & |
|
) |
|
- Parameters:
- const Color&
The color to check.
- Returns:
- The index of the component with the maximum absolute value.
r=0, g=1, b=2.
GEOMEXPORT int MinComponent |
( |
const Color & |
|
) |
|
- Parameters:
- const Color&
The color to check.
- Returns:
- The index of the component with the minimum absolute value.
r=0, g=1, b=2.
GEOMEXPORT float MaxVal |
( |
const Color & |
|
) |
|
- Parameters:
- const Color&
The color to check.
- Returns:
- The value of the component with the maximum absolute
value.
GEOMEXPORT float MinVal |
( |
const Color & |
|
) |
|
- Parameters:
- const Color&
The color to check.
- Returns:
float Length |
( |
const Color & |
v |
) |
[inline] |
- Parameters:
- const Color&
v
The color to return the length of.
- Returns:
- The length of the color.
- Operators:
Definition at line 342 of file color.h.
{
return (float)sqrt(v.r*v.r+v.g*v.g+v.b*v.b);
}
Color
operator* |
( |
float |
f, |
|
|
const Color & |
a |
|
) |
|
[inline] |
Color
operator* |
( |
const Color & |
a, |
|
|
float |
f |
|
) |
|
[inline] |
Color
operator/ |
( |
const Color & |
a, |
|
|
float |
f |
|
) |
|
[inline] |
Color
operator+ |
( |
const Color & |
a, |
|
|
float |
f |
|
) |
|
[inline] |
Color
operator+ |
( |
float |
f, |
|
|
const Color & |
a |
|
) |
|
[inline] |
Color
operator- |
( |
const Color & |
a, |
|
|
float |
f |
|
) |
|
[inline] |
Color
operator- |
( |
float |
f, |
|
|
const Color & |
a |
|
) |
|
[inline] |