#include <itkRGBAPixel.h>
Inheritance diagram for itk::RGBAPixel:
Public Types | |
typedef RGBAPixel | Self |
typedef FixedArray< TComponent, 4 > | Super |
typedef FixedArray< TComponent, 4 > | BaseArray |
typedef TComponent | ComponentType |
Public Methods | |
ComponentType | GetNthComponent (int c) const |
ComponentType | GetScalarValue () const |
void | SetNthComponent (int c, const ComponentType &v) |
void | SetRed (ComponentType red) |
void | SetGreen (ComponentType green) |
void | SetBlue (ComponentType blue) |
void | SetAlpha (ComponentType alpha) |
void | Set (ComponentType red, ComponentType green, ComponentType blue, ComponentType alpha) |
const ComponentType & | GetRed (void) const |
const ComponentType & | GetGreen (void) const |
const ComponentType & | GetBlue (void) const |
const ComponentType & | GetAlpha (void) const |
RGBAPixel () | |
RGBAPixel (const ComponentType &r) | |
RGBAPixel (const Self &r) | |
RGBAPixel (const ComponentType r[4]) | |
RGBAPixel & | operator= (const Self &r) |
RGBAPixel & | operator= (const ComponentType r[4]) |
Static Public Methods | |
int | GetNumberOfComponents () |
This class is templated over the representation used for each component.
The following syntax for assigning an index is allowed/suggested:
RGBAPixel<float> pixel; pixel = 1.0f, 0.0f, .5f, .8; RGBAPixel<char> pixelArray[2]; pixelArray[0] = 255, 255, 255, 230; pixelArray[1] = 255, 255, 244, 255;
Since RGBAPixel is a subclass of Array, you can access its components as: pixel[0], pixel[1], pixel[2], pixel[3]
Definition at line 52 of file itkRGBAPixel.h.
|
Convenience typedefs. Definition at line 60 of file itkRGBAPixel.h. |
|
Define the component type. Definition at line 63 of file itkRGBAPixel.h. Referenced by itk::RGBAPixel< float >::GetBlue(), itk::RGBAPixel< float >::GetGreen(), itk::RGBAPixel< float >::GetNumberOfComponents(), itk::RGBAPixel< float >::GetRed(), itk::RGBAPixel< float >::RGBAPixel(), itk::RGBAPixel< float >::SetAlpha(), itk::RGBAPixel< float >::SetBlue(), itk::RGBAPixel< float >::SetGreen(), and itk::RGBAPixel< float >::SetRed(). |
|
Standard class typedefs. Definition at line 56 of file itkRGBAPixel.h. |
|
Definition at line 57 of file itkRGBAPixel.h. |
|
Default constructor has nothing to do. Definition at line 66 of file itkRGBAPixel.h. |
|
Default constructor has nothing to do. |
|
Pass-through constructor for the Array base class. Definition at line 71 of file itkRGBAPixel.h. |
|
Pass-through constructor for the Array base class. Definition at line 72 of file itkRGBAPixel.h. |
|
Get the Alpha component. Definition at line 126 of file itkRGBAPixel.h. |
|
Get the Blue component. Definition at line 123 of file itkRGBAPixel.h. |
|
Get the Green component. Definition at line 120 of file itkRGBAPixel.h. |
|
Return the value for the Nth component. Definition at line 84 of file itkRGBAPixel.h. |
|
Return the number of componentsxquery-rep. Definition at line 81 of file itkRGBAPixel.h. |
|
Get the Red component. Definition at line 117 of file itkRGBAPixel.h. |
|
Return the value for the Nth component. Definition at line 88 of file itkRGBAPixel.h. |
|
Pass-through assignment operator for the Array base class. |
|
Pass-through assignment operator for the Array base class. |
|
Set the four components. Definition at line 113 of file itkRGBAPixel.h. |
|
Set the Alpha component. Definition at line 110 of file itkRGBAPixel.h. |
|
Set the Blue component. Definition at line 107 of file itkRGBAPixel.h. |
|
Set the Green component. Definition at line 104 of file itkRGBAPixel.h. |
|
Set the Nth component to v. Definition at line 97 of file itkRGBAPixel.h. |
|
Set the Red component. Definition at line 101 of file itkRGBAPixel.h. |