The Machine Perception Toolbox

[Introduction]- [News]- [Download]- [Screenshots]- [Manual (pdf)]- [Forums]- [API Reference]- [Repository ]

 

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

nRGBTRIPLE Class Reference

#include <common.h>

List of all members.

Public Member Functions

 nRGBTRIPLE (const nRGBTRIPLE &v)
template<class T>
 nRGBTRIPLE (const T &v)
 nRGBTRIPLE (PIXEL_TYPE r, PIXEL_TYPE g, PIXEL_TYPE b)
 nRGBTRIPLE ()
void operator= (const nRGBTRIPLE &v)
template<class T>
void operator= (const T &v)

Public Attributes

PIXEL_TYPE rgbtBlue
PIXEL_TYPE rgbtGreen
PIXEL_TYPE rgbtRed


Constructor & Destructor Documentation

nRGBTRIPLE  )  [inline]
 

Definition at line 79 of file common.h.

00079 : rgbtRed(0), rgbtGreen(0), rgbtBlue(0){};

nRGBTRIPLE PIXEL_TYPE  r,
PIXEL_TYPE  g,
PIXEL_TYPE  b
[inline]
 

Definition at line 80 of file common.h.

References r.

00080                                                        :
00081     rgbtRed(r), rgbtGreen(g), rgbtBlue(b){};

nRGBTRIPLE const T &  v  )  [inline]
 

Definition at line 83 of file common.h.

00083                                      {
00084           rgbtRed = static_cast<PIXEL_TYPE>(v);
00085           rgbtGreen = static_cast<PIXEL_TYPE>(v);
00086           rgbtBlue = static_cast<PIXEL_TYPE>(v);
00087   }

nRGBTRIPLE const nRGBTRIPLE v  )  [inline]
 

Definition at line 88 of file common.h.

References rgbtBlue, rgbtGreen, rgbtRed, and v.

00088                                  {
00089         rgbtRed = v.rgbtRed;
00090         rgbtGreen = v.rgbtGreen;
00091         rgbtBlue = v.rgbtBlue;
00092   }


Member Function Documentation

void operator= const nRGBTRIPLE v  )  [inline]
 

Definition at line 102 of file common.h.

References rgbtBlue, rgbtGreen, rgbtRed, and v.

00102                                             {
00103                 rgbtRed = v.rgbtRed;
00104                 rgbtGreen = v.rgbtGreen;
00105                 rgbtBlue = v.rgbtBlue;
00106 //              return *this;
00107   }

void operator= const T &  v  )  [inline]
 

Definition at line 95 of file common.h.

00095                                            {
00096                 rgbtRed = static_cast<PIXEL_TYPE>(v);
00097                 rgbtGreen = static_cast<PIXEL_TYPE>(v);
00098                 rgbtBlue = static_cast<PIXEL_TYPE>(v);
00099 //              return *this;
00100   }


Member Data Documentation

PIXEL_TYPE rgbtBlue
 

Definition at line 76 of file common.h.

Referenced by nRGBTRIPLE(), and operator=().

PIXEL_TYPE rgbtGreen
 

Definition at line 75 of file common.h.

Referenced by nRGBTRIPLE(), and operator=().

PIXEL_TYPE rgbtRed
 

Definition at line 74 of file common.h.

Referenced by nRGBTRIPLE(), and operator=().


The documentation for this class was generated from the following file:
Generated on Mon Nov 8 17:08:40 2004 for MPT by  doxygen 1.3.9.1