RGBFloat Class Reference

#include <RGBFloat.h>

List of all members.

Public Member Functions

 RGBFloat (void)
 RGBFloat (float red, float green, float blue)
 RGBFloat (const float scalar)
 RGBFloat (COLORREF c)
 RGBFloat (const RGBFloat &other)
 RGBFloat (const RGBHalf &other)
 RGBFloat (const RGBByte &other)
void * operator new (size_t size)
void operator delete (void *ptr)
RGBFloatoperator= (float scalar)
RGBFloatoperator= (const RGBFloat &other)
RGBFloatoperator+= (const RGBFloat &other)
RGBFloatoperator-= (const RGBFloat &other)
RGBFloatoperator *= (const RGBFloat &other)
RGBFloatoperator *= (float scale)
RGBFloatoperator/= (const RGBFloat &other)
RGBFloatoperator/= (float scale)
float Red () const
float Green () const
float Blue () const
void SetRed (float red)
void SetGreen (float green)
void SetBlue (float blue)
void Set (float red, float green, float blue)
void Set (float init)
int operator== (const RGBFloat &a) const
int operator!= (const RGBFloat &a) const
RGBFloat operator+ (const RGBFloat &a) const
RGBFloat operator- (const RGBFloat &a) const
RGBFloat operator * (const RGBFloat &a) const
RGBFloat operator * (float s) const
RGBFloat operator/ (float s) const
RGBFloat operator/ (const RGBFloat &a) const
float operator[] (int i) const
COLORREF GetCOLORREF () const
float GetLuminance () const
void Min (float min)
void Max (float max)
void MinMax (float min, float max)
RGBFloat GammaCorrect (float power) const
BOOL CheckOffBound (float lobound, float hibound)

Public Attributes

float m_blue
float m_green
float m_red

Friends

RGBFloat operator * (const float s, const RGBFloat &a)


Detailed Description

Definition at line 30 of file RGBFloat.h.


Constructor & Destructor Documentation

RGBFloat::RGBFloat void   )  [inline]
 

Definition at line 36 of file RGBFloat.h.

Referenced by GammaCorrect(), GetSpectrumColor(), operator *(), operator+(), operator-(), and operator/().

RGBFloat::RGBFloat float  red,
float  green,
float  blue
[inline]
 

Definition at line 37 of file RGBFloat.h.

References m_blue, m_green, and m_red.

RGBFloat::RGBFloat const float  scalar  )  [inline]
 

Definition at line 38 of file RGBFloat.h.

References m_blue, m_green, and m_red.

RGBFloat::RGBFloat COLORREF  c  )  [inline]
 

Definition at line 39 of file RGBFloat.h.

References m_blue, m_green, and m_red.

RGBFloat::RGBFloat const RGBFloat other  )  [inline]
 

Definition at line 40 of file RGBFloat.h.

RGBFloat::RGBFloat const RGBHalf other  )  [inline]
 

Definition at line 21 of file RGBFloat.inl.

References RGBHalf::Blue(), RGBHalf::Green(), m_blue, m_green, m_red, and RGBHalf::Red().

Here is the call graph for this function:

RGBFloat::RGBFloat const RGBByte other  )  [inline]
 

Definition at line 28 of file RGBFloat.inl.

References RGBByte::Blue(), RGBByte::Green(), m_blue, m_green, m_red, and RGBByte::Red().

Here is the call graph for this function:


Member Function Documentation

float RGBFloat::Blue  )  const [inline]
 

Definition at line 63 of file RGBFloat.h.

References m_blue.

Referenced by ColorBuf::Set().

BOOL RGBFloat::CheckOffBound float  lobound,
float  hibound
[inline]
 

Definition at line 101 of file RGBFloat.h.

References FALSE, and TRUE.

RGBFloat RGBFloat::GammaCorrect float  power  )  const [inline]
 

Definition at line 93 of file RGBFloat.h.

References m_blue, m_green, m_red, and RGBFloat().

Here is the call graph for this function:

COLORREF RGBFloat::GetCOLORREF  )  const [inline]
 

Definition at line 83 of file RGBFloat.h.

References fast_round(), m_blue, m_green, m_red, MAX, and MIN.

Here is the call graph for this function:

float RGBFloat::GetLuminance  )  const [inline]
 

Definition at line 84 of file RGBFloat.h.

References m_blue, m_green, and m_red.

float RGBFloat::Green  )  const [inline]
 

Definition at line 62 of file RGBFloat.h.

References m_green.

Referenced by ColorBuf::Set().

void RGBFloat::Max float  max  )  [inline]
 

Definition at line 89 of file RGBFloat.h.

References m_blue, m_green, and m_red.

void RGBFloat::Min float  min  )  [inline]
 

Definition at line 88 of file RGBFloat.h.

References m_blue, m_green, and m_red.

void RGBFloat::MinMax float  min,
float  max
[inline]
 

Definition at line 90 of file RGBFloat.h.

References m_blue, m_green, and m_red.

RGBFloat RGBFloat::operator * float  s  )  const [inline]
 

Definition at line 78 of file RGBFloat.h.

References RGBFloat().

Here is the call graph for this function:

RGBFloat RGBFloat::operator * const RGBFloat a  )  const [inline]
 

Definition at line 77 of file RGBFloat.h.

References RGBFloat().

Here is the call graph for this function:

RGBFloat& RGBFloat::operator *= float  scale  )  [inline]
 

Definition at line 57 of file RGBFloat.h.

References m_blue, m_green, and m_red.

RGBFloat& RGBFloat::operator *= const RGBFloat other  )  [inline]
 

Definition at line 56 of file RGBFloat.h.

References m_blue, m_green, and m_red.

void RGBFloat::operator delete void *  ptr  )  [inline]
 

Definition at line 49 of file RGBFloat.h.

References FreeBitmap().

Here is the call graph for this function:

void* RGBFloat::operator new size_t  size  )  [inline]
 

Definition at line 47 of file RGBFloat.h.

References AllocBitmap().

Here is the call graph for this function:

int RGBFloat::operator!= const RGBFloat a  )  const [inline]
 

Definition at line 73 of file RGBFloat.h.

RGBFloat RGBFloat::operator+ const RGBFloat a  )  const [inline]
 

Definition at line 75 of file RGBFloat.h.

References RGBFloat().

Here is the call graph for this function:

RGBFloat& RGBFloat::operator+= const RGBFloat other  )  [inline]
 

Definition at line 54 of file RGBFloat.h.

References m_blue, m_green, and m_red.

RGBFloat RGBFloat::operator- const RGBFloat a  )  const [inline]
 

Definition at line 76 of file RGBFloat.h.

References RGBFloat().

Here is the call graph for this function:

RGBFloat& RGBFloat::operator-= const RGBFloat other  )  [inline]
 

Definition at line 55 of file RGBFloat.h.

References m_blue, m_green, and m_red.

RGBFloat RGBFloat::operator/ const RGBFloat a  )  const [inline]
 

Definition at line 80 of file RGBFloat.h.

References RGBFloat().

Here is the call graph for this function:

RGBFloat RGBFloat::operator/ float  s  )  const [inline]
 

Definition at line 79 of file RGBFloat.h.

References RGBFloat().

Here is the call graph for this function:

RGBFloat& RGBFloat::operator/= float  scale  )  [inline]
 

Definition at line 59 of file RGBFloat.h.

RGBFloat& RGBFloat::operator/= const RGBFloat other  )  [inline]
 

Definition at line 58 of file RGBFloat.h.

References m_blue, m_green, and m_red.

RGBFloat& RGBFloat::operator= const RGBFloat other  )  [inline]
 

Definition at line 52 of file RGBFloat.h.

References m_blue, m_green, and m_red.

RGBFloat& RGBFloat::operator= float  scalar  )  [inline]
 

Definition at line 51 of file RGBFloat.h.

References m_blue, m_green, and m_red.

int RGBFloat::operator== const RGBFloat a  )  const [inline]
 

Definition at line 72 of file RGBFloat.h.

References m_blue, m_green, and m_red.

float RGBFloat::operator[] int  i  )  const [inline]
 

Definition at line 81 of file RGBFloat.h.

References m_blue.

float RGBFloat::Red  )  const [inline]
 

Definition at line 61 of file RGBFloat.h.

References m_red.

Referenced by ColorBuf::Set().

void RGBFloat::Set float  init  )  [inline]
 

Definition at line 70 of file RGBFloat.h.

References m_blue, m_green, and m_red.

void RGBFloat::Set float  red,
float  green,
float  blue
[inline]
 

Definition at line 69 of file RGBFloat.h.

References m_blue, m_green, and m_red.

Referenced by Attr::Attr().

void RGBFloat::SetBlue float  blue  )  [inline]
 

Definition at line 67 of file RGBFloat.h.

References m_blue.

void RGBFloat::SetGreen float  green  )  [inline]
 

Definition at line 66 of file RGBFloat.h.

References m_green.

void RGBFloat::SetRed float  red  )  [inline]
 

Definition at line 65 of file RGBFloat.h.

References m_red.


Friends And Related Function Documentation

RGBFloat operator * const float  s,
const RGBFloat a
[friend]
 

Definition at line 86 of file RGBFloat.h.


Member Data Documentation

float RGBFloat::m_blue
 

Definition at line 32 of file RGBFloat.h.

Referenced by Blue(), GammaCorrect(), GetCOLORREF(), GetLuminance(), Max(), Min(), MinMax(), operator *=(), operator+=(), operator-=(), operator/=(), operator=(), operator==(), operator[](), RGBFloat(), Set(), and SetBlue().

float RGBFloat::m_green
 

Definition at line 33 of file RGBFloat.h.

Referenced by GammaCorrect(), GetCOLORREF(), GetLuminance(), Green(), Max(), Min(), MinMax(), operator *=(), operator+=(), operator-=(), operator/=(), operator=(), operator==(), RGBFloat(), Set(), and SetGreen().

float RGBFloat::m_red
 

Definition at line 34 of file RGBFloat.h.

Referenced by GammaCorrect(), GetCOLORREF(), GetLuminance(), Max(), Min(), MinMax(), operator *=(), operator+=(), operator-=(), operator/=(), operator=(), operator==(), Red(), RGBFloat(), Set(), and SetRed().


The documentation for this class was generated from the following files:
This A:M SDK v12.0 documentation is maintained by Hash Inc. Please address any comments concerning this documentation to AMReports. If you have any information, knowledge, or documentation to share with the A:M developer community, please post them on the Hash SDK forum.

Generated on Thu Oct 27 11:47:03 2005 with doxygen 1.4.5 written by Dimitri van Heesch, © 1997-2001