YAFloat Class Reference

#include <RGBFloat.h>

List of all members.

Public Member Functions

 YAFloat (void)
 YAFloat (float luminance)
 YAFloat (float luminance, float alpha)
 YAFloat (const YAFloat &other)
 YAFloat (const YAHalf &other)
 YAFloat (const YAByte &other)
 YAFloat (const RGBAFloat &other)
 YAFloat (const RGBAHalf &other)
 YAFloat (const RGBAByte &other)
 YAFloat (const ColorBuf &other)
 YAFloat (const RGBHalf &other)
 YAFloat (const RGBByte &other)
void * operator new (size_t size)
void operator delete (void *ptr)
YAFloatoperator= (const YAFloat &other)
YAFloatoperator+= (const YAFloat &other)
YAFloatoperator-= (const YAFloat &other)
YAFloatoperator *= (const YAFloat &other)
YAFloatoperator *= (float scale)
YAFloatoperator/= (const YAFloat &other)
YAFloatoperator/= (float scale)
float Luminance () const
float Alpha () const
void SetLuminance (float luminance)
void SetAlpha (float alpha)
void Set (float luminance, float alpha)
void Set (float luminance)
void Set (float red, float green, float blue, float alpha=1.0f)
void SetNoAlpha (const float luminance)
int operator== (const YAFloat &a) const
int operator!= (const YAFloat &a) const
YAFloat operator+ (const YAFloat &a) const
YAFloat operator- (const YAFloat &a) const
YAFloat operator * (const YAFloat &a) const
YAFloat operator * (float s) const
YAFloat operator/ (float s) const
YAFloat operator/ (const YAFloat &a) const
float operator[] (int i) const
BOOL CheckOffBound (float lobound, float hibound)

Public Attributes

float m_luminance
float m_alpha

Friends

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


Detailed Description

Definition at line 192 of file RGBFloat.h.


Constructor & Destructor Documentation

YAFloat::YAFloat void   )  [inline]
 

Definition at line 198 of file RGBFloat.h.

YAFloat::YAFloat float  luminance  )  [inline]
 

Definition at line 199 of file RGBFloat.h.

YAFloat::YAFloat float  luminance,
float  alpha
[inline]
 

Definition at line 200 of file RGBFloat.h.

YAFloat::YAFloat const YAFloat other  )  [inline]
 

Definition at line 201 of file RGBFloat.h.

YAFloat::YAFloat const YAHalf other  )  [inline]
 

Definition at line 61 of file RGBFloat.inl.

References YAHalf::m_alpha, and m_alpha.

YAFloat::YAFloat const YAByte other  )  [inline]
 

Definition at line 67 of file RGBFloat.inl.

References float(), YAByte::m_alpha, m_alpha, and MAXCOLOR.

Here is the call graph for this function:

YAFloat::YAFloat const RGBAFloat other  )  [inline]
 

Definition at line 206 of file RGBFloat.h.

References RGBAFloat::Alpha(), RGBAFloat::Blue(), RGBAFloat::Green(), and RGBAFloat::Red().

Here is the call graph for this function:

YAFloat::YAFloat const RGBAHalf other  )  [inline]
 

Definition at line 73 of file RGBFloat.inl.

References RGBAHalf::Alpha(), RGBAHalf::Blue(), RGBAHalf::Green(), m_alpha, m_luminance, and RGBAHalf::Red().

Here is the call graph for this function:

YAFloat::YAFloat const RGBAByte other  )  [inline]
 

Definition at line 79 of file RGBFloat.inl.

References RGBAByte::Alpha(), RGBAByte::Blue(), float(), RGBAByte::Green(), m_alpha, m_luminance, MAXCOLOR, and RGBAByte::Red().

Here is the call graph for this function:

YAFloat::YAFloat const ColorBuf other  )  [inline]
 

Definition at line 86 of file RGBFloat.inl.

References float(), m_alpha, m_luminance, MAXCOLOR, and ColorBuf::values.

Here is the call graph for this function:

YAFloat::YAFloat const RGBHalf other  )  [inline]
 

Definition at line 93 of file RGBFloat.inl.

References RGBHalf::Blue(), RGBHalf::Green(), m_alpha, m_luminance, and RGBHalf::Red().

Here is the call graph for this function:

YAFloat::YAFloat const RGBByte other  )  [inline]
 

Definition at line 100 of file RGBFloat.inl.

References RGBByte::Blue(), float(), RGBByte::Green(), m_alpha, m_luminance, MAXCOLOR, and RGBByte::Red().

Here is the call graph for this function:


Member Function Documentation

float YAFloat::Alpha  )  const [inline]
 

Definition at line 230 of file RGBFloat.h.

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

Definition at line 253 of file RGBFloat.h.

References FALSE, and TRUE.

float YAFloat::Luminance  )  const [inline]
 

Definition at line 229 of file RGBFloat.h.

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

Definition at line 246 of file RGBFloat.h.

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

Definition at line 245 of file RGBFloat.h.

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

Definition at line 225 of file RGBFloat.h.

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

Definition at line 224 of file RGBFloat.h.

References m_alpha, and m_luminance.

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

Definition at line 218 of file RGBFloat.h.

References FreeBitmap().

Here is the call graph for this function:

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

Definition at line 216 of file RGBFloat.h.

References AllocBitmap().

Here is the call graph for this function:

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

Definition at line 241 of file RGBFloat.h.

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

Definition at line 243 of file RGBFloat.h.

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

Definition at line 222 of file RGBFloat.h.

References m_alpha, and m_luminance.

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

Definition at line 244 of file RGBFloat.h.

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

Definition at line 223 of file RGBFloat.h.

References m_alpha, and m_luminance.

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

Definition at line 248 of file RGBFloat.h.

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

Definition at line 247 of file RGBFloat.h.

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

Definition at line 227 of file RGBFloat.h.

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

Definition at line 226 of file RGBFloat.h.

References m_alpha, and m_luminance.

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

Definition at line 220 of file RGBFloat.h.

References m_alpha, and m_luminance.

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

Definition at line 240 of file RGBFloat.h.

References m_alpha, and m_luminance.

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

Definition at line 249 of file RGBFloat.h.

void YAFloat::Set float  red,
float  green,
float  blue,
float  alpha = 1.0f
[inline]
 

Definition at line 237 of file RGBFloat.h.

void YAFloat::Set float  luminance  )  [inline]
 

Definition at line 235 of file RGBFloat.h.

void YAFloat::Set float  luminance,
float  alpha
[inline]
 

Definition at line 234 of file RGBFloat.h.

void YAFloat::SetAlpha float  alpha  )  [inline]
 

Definition at line 232 of file RGBFloat.h.

void YAFloat::SetLuminance float  luminance  )  [inline]
 

Definition at line 231 of file RGBFloat.h.

void YAFloat::SetNoAlpha const float  luminance  )  [inline]
 

Definition at line 238 of file RGBFloat.h.


Friends And Related Function Documentation

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

Definition at line 251 of file RGBFloat.h.


Member Data Documentation

float YAFloat::m_alpha
 

Definition at line 196 of file RGBFloat.h.

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

float YAFloat::m_luminance
 

Definition at line 195 of file RGBFloat.h.

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


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:07 2005 with doxygen 1.4.5 written by Dimitri van Heesch, © 1997-2001