ColorVector Class Reference

#include <ColorVec.h>

List of all members.

Public Member Functions

 ColorVector (void)
 ColorVector (float red, float green, float blue)
 ColorVector (const float scalar)
 ColorVector (COLORREF c)
 ColorVector (const ColorVector &other)
 ColorVector (const HalfColorBuf &other)
ColorVectoroperator= (float scalar)
ColorVectoroperator= (const ColorVector &other)
ColorVectoroperator+= (const ColorVector &other)
ColorVectoroperator-= (const ColorVector &other)
ColorVectoroperator *= (const ColorVector &other)
ColorVectoroperator *= (float scale)
ColorVectoroperator/= (const ColorVector &other)
ColorVectoroperator/= (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 ColorVector &a) const
int operator!= (const ColorVector &a) const
ColorVector operator+ (const ColorVector &a) const
ColorVector operator- (const ColorVector &a) const
ColorVector operator * (const ColorVector &a) const
ColorVector operator * (float s) const
ColorVector operator/ (float s) const
ColorVector operator/ (const ColorVector &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)

Public Attributes

float m_red
float m_green
float m_blue

Friends

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


Detailed Description

Definition at line 26 of file ColorVec.h.


Constructor & Destructor Documentation

ColorVector::ColorVector void   )  [inline]
 

Definition at line 32 of file ColorVec.h.

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

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

Definition at line 33 of file ColorVec.h.

References m_blue, m_green, and m_red.

ColorVector::ColorVector const float  scalar  )  [inline]
 

Definition at line 34 of file ColorVec.h.

References m_blue, m_green, and m_red.

ColorVector::ColorVector COLORREF  c  )  [inline]
 

Definition at line 35 of file ColorVec.h.

References m_blue, m_green, and m_red.

ColorVector::ColorVector const ColorVector other  )  [inline]
 

Definition at line 36 of file ColorVec.h.

ColorVector::ColorVector const HalfColorBuf other  )  [inline]
 

Definition at line 18 of file ColorVec.inl.

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

Here is the call graph for this function:


Member Function Documentation

float ColorVector::Blue  )  const [inline]
 

Definition at line 51 of file ColorVec.h.

References m_blue.

COLORREF ColorVector::GetCOLORREF  )  const [inline]
 

Definition at line 71 of file ColorVec.h.

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

Here is the call graph for this function:

float ColorVector::GetLuminance  )  const [inline]
 

Definition at line 72 of file ColorVec.h.

References m_blue, m_green, and m_red.

float ColorVector::Green  )  const [inline]
 

Definition at line 50 of file ColorVec.h.

References m_green.

void ColorVector::Max float  max  )  [inline]
 

Definition at line 77 of file ColorVec.h.

References m_blue, m_green, and m_red.

void ColorVector::Min float  min  )  [inline]
 

Definition at line 76 of file ColorVec.h.

References m_blue, m_green, and m_red.

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

Definition at line 78 of file ColorVec.h.

References m_blue, m_green, and m_red.

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

Definition at line 66 of file ColorVec.h.

References ColorVector().

Here is the call graph for this function:

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

Definition at line 65 of file ColorVec.h.

References ColorVector().

Here is the call graph for this function:

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

Definition at line 45 of file ColorVec.h.

References m_blue, m_green, and m_red.

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

Definition at line 44 of file ColorVec.h.

References m_blue, m_green, and m_red.

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

Definition at line 61 of file ColorVec.h.

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

Definition at line 63 of file ColorVec.h.

References ColorVector().

Here is the call graph for this function:

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

Definition at line 42 of file ColorVec.h.

References m_blue, m_green, and m_red.

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

Definition at line 64 of file ColorVec.h.

References ColorVector().

Here is the call graph for this function:

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

Definition at line 43 of file ColorVec.h.

References m_blue, m_green, and m_red.

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

Definition at line 68 of file ColorVec.h.

References ColorVector().

Here is the call graph for this function:

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

Definition at line 67 of file ColorVec.h.

References ColorVector().

Here is the call graph for this function:

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

Definition at line 47 of file ColorVec.h.

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

Definition at line 46 of file ColorVec.h.

References m_blue, m_green, and m_red.

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

Definition at line 40 of file ColorVec.h.

References m_blue, m_green, and m_red.

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

Definition at line 39 of file ColorVec.h.

References m_blue, m_green, and m_red.

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

Definition at line 60 of file ColorVec.h.

References m_blue, m_green, and m_red.

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

Definition at line 69 of file ColorVec.h.

References m_red.

float ColorVector::Red  )  const [inline]
 

Definition at line 49 of file ColorVec.h.

References m_red.

void ColorVector::Set float  init  )  [inline]
 

Definition at line 58 of file ColorVec.h.

References m_blue, m_green, and m_red.

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

Definition at line 57 of file ColorVec.h.

References m_blue, m_green, and m_red.

void ColorVector::SetBlue float  blue  )  [inline]
 

Definition at line 55 of file ColorVec.h.

References m_blue.

void ColorVector::SetGreen float  green  )  [inline]
 

Definition at line 54 of file ColorVec.h.

References m_green.

void ColorVector::SetRed float  red  )  [inline]
 

Definition at line 53 of file ColorVec.h.

References m_red.


Friends And Related Function Documentation

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

Definition at line 74 of file ColorVec.h.


Member Data Documentation

float ColorVector::m_blue
 

Definition at line 30 of file ColorVec.h.

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

float ColorVector::m_green
 

Definition at line 29 of file ColorVec.h.

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

float ColorVector::m_red
 

Definition at line 28 of file ColorVec.h.

Referenced by ColorVector(), GetCOLORREF(), GetLuminance(), Max(), Min(), MinMax(), operator *=(), operator+=(), operator-=(), operator/=(), operator=(), operator==(), operator[](), Red(), 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:46:51 2005 with doxygen 1.4.5 written by Dimitri van Heesch, © 1997-2001