RGBAFloat Class Reference

#include <RGBFloat.h>

Collaboration diagram for RGBAFloat:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RGBAFloat (void)
 RGBAFloat (float red, float green, float blue, float alpha)
 RGBAFloat (float scalar)
 RGBAFloat (COLORREF c)
 RGBAFloat (const RGBAFloat &other)
 RGBAFloat (const RGBAHalf &other)
 RGBAFloat (const RGBAByte &other)
 RGBAFloat (const ColorBuf &other)
 RGBAFloat (const RGBHalf &other)
void * operator new (size_t size)
void operator delete (void *ptr)
RGBAFloatoperator= (const RGBAFloat &other)
RGBAFloatoperator+= (const RGBAFloat &other)
RGBAFloatoperator-= (const RGBAFloat &other)
RGBAFloatoperator *= (const RGBAFloat &other)
RGBAFloatoperator *= (float scale)
RGBAFloatoperator/= (const RGBAFloat &other)
RGBAFloatoperator/= (float scale)
RGBFloat Color () const
float Red () const
float Green () const
float Blue () const
float Alpha () const
void SetRed (float red)
void SetGreen (float green)
void SetBlue (float blue)
void SetAlpha (float alpha)
void Set (float red, float green, float blue, float alpha)
void Set (float init)
void SetNoAlpha (const RGBFloat &color)
int operator== (const RGBAFloat &a) const
int operator!= (const RGBAFloat &a) const
RGBAFloat operator+ (const RGBAFloat &a) const
RGBAFloat operator- (const RGBAFloat &a) const
RGBAFloat operator * (const RGBAFloat &a) const
RGBAFloat operator * (float s) const
RGBAFloat operator/ (float s) const
RGBAFloat operator/ (const RGBAFloat &a) const
float operator[] (int i) const
BOOL CheckOffBound (float lobound, float hibound)

Public Attributes

RGBFloat m_color
float m_alpha

Friends

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

Detailed Description

Definition at line 123 of file RGBFloat.h.


Constructor & Destructor Documentation

RGBAFloat::RGBAFloat void   )  [inline]
 

Definition at line 129 of file RGBFloat.h.

RGBAFloat::RGBAFloat float  red,
float  green,
float  blue,
float  alpha
[inline]
 

Definition at line 130 of file RGBFloat.h.

RGBAFloat::RGBAFloat float  scalar  )  [inline]
 

Definition at line 131 of file RGBFloat.h.

RGBAFloat::RGBAFloat COLORREF  c  )  [inline]
 

Definition at line 132 of file RGBFloat.h.

RGBAFloat::RGBAFloat const RGBAFloat other  )  [inline]
 

Definition at line 133 of file RGBFloat.h.

RGBAFloat::RGBAFloat const RGBAHalf other  )  [inline]
 

Definition at line 38 of file RGBFloat.inl.

References RGBAHalf::Alpha(), and m_alpha.

Here is the call graph for this function:

RGBAFloat::RGBAFloat const RGBAByte other  )  [inline]
 

Definition at line 44 of file RGBFloat.inl.

References RGBAByte::Alpha(), float(), m_alpha, and MAXCOLOR.

Here is the call graph for this function:

RGBAFloat::RGBAFloat const ColorBuf other  )  [inline]
 

Definition at line 50 of file RGBFloat.inl.

References MAXCOLOR, SetAlpha(), SetBlue(), SetGreen(), SetRed(), and ColorBuf::values.

Here is the call graph for this function:

RGBAFloat::RGBAFloat const RGBHalf other  ) 
 


Member Function Documentation

float RGBAFloat::Alpha  )  const [inline]
 

Definition at line 159 of file RGBFloat.h.

Referenced by ColorBuf::ColorBuf(), operator=(), operator==(), and YAFloat::YAFloat().

float RGBAFloat::Blue  )  const [inline]
 

Definition at line 158 of file RGBFloat.h.

Referenced by ColorBuf::ColorBuf(), and YAFloat::YAFloat().

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

Definition at line 182 of file RGBFloat.h.

RGBFloat RGBAFloat::Color  )  const [inline]
 

Definition at line 155 of file RGBFloat.h.

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

float RGBAFloat::Green  )  const [inline]
 

Definition at line 157 of file RGBFloat.h.

Referenced by ColorBuf::ColorBuf(), and YAFloat::YAFloat().

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

Definition at line 175 of file RGBFloat.h.

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

Definition at line 174 of file RGBFloat.h.

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

Definition at line 151 of file RGBFloat.h.

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

Definition at line 150 of file RGBFloat.h.

References Color(), and m_alpha.

Here is the call graph for this function:

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

Definition at line 144 of file RGBFloat.h.

References FreeBitmap().

Here is the call graph for this function:

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

Definition at line 142 of file RGBFloat.h.

References AllocBitmap().

Here is the call graph for this function:

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

Definition at line 170 of file RGBFloat.h.

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

Definition at line 172 of file RGBFloat.h.

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

Definition at line 148 of file RGBFloat.h.

References Color(), and m_alpha.

Here is the call graph for this function:

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

Definition at line 173 of file RGBFloat.h.

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

Definition at line 149 of file RGBFloat.h.

References Color(), and m_alpha.

Here is the call graph for this function:

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

Definition at line 177 of file RGBFloat.h.

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

Definition at line 176 of file RGBFloat.h.

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

Definition at line 153 of file RGBFloat.h.

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

Definition at line 152 of file RGBFloat.h.

References Color(), and m_alpha.

Here is the call graph for this function:

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

Definition at line 146 of file RGBFloat.h.

References Alpha(), and Color().

Here is the call graph for this function:

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

Definition at line 169 of file RGBFloat.h.

References Alpha(), and Color().

Here is the call graph for this function:

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

Definition at line 178 of file RGBFloat.h.

float RGBAFloat::Red  )  const [inline]
 

Definition at line 156 of file RGBFloat.h.

Referenced by ColorBuf::ColorBuf(), and YAFloat::YAFloat().

void RGBAFloat::Set float  init  )  [inline]
 

Definition at line 166 of file RGBFloat.h.

void RGBAFloat::Set float  red,
float  green,
float  blue,
float  alpha
[inline]
 

Definition at line 165 of file RGBFloat.h.

void RGBAFloat::SetAlpha float  alpha  )  [inline]
 

Definition at line 163 of file RGBFloat.h.

Referenced by RGBAFloat().

void RGBAFloat::SetBlue float  blue  )  [inline]
 

Definition at line 162 of file RGBFloat.h.

Referenced by RGBAFloat().

void RGBAFloat::SetGreen float  green  )  [inline]
 

Definition at line 161 of file RGBFloat.h.

Referenced by RGBAFloat().

void RGBAFloat::SetNoAlpha const RGBFloat color  )  [inline]
 

Definition at line 167 of file RGBFloat.h.

void RGBAFloat::SetRed float  red  )  [inline]
 

Definition at line 160 of file RGBFloat.h.

Referenced by RGBAFloat().


Friends And Related Function Documentation

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

Definition at line 180 of file RGBFloat.h.


Member Data Documentation

float RGBAFloat::m_alpha
 

Definition at line 127 of file RGBFloat.h.

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

RGBFloat RGBAFloat::m_color
 

Definition at line 126 of file RGBFloat.h.


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