BALL::VIEW::PixelFormat Class Reference

#include <BALL/VIEW/RENDERING/pixelFormat.h>

List of all members.

Public Types

enum  { MAX_NUMBER_OF_CHANNELS = 4 }
enum  { PLANAR_FRAMEBUFFER = 1<<1 }

Public Member Functions

 PixelFormat ()
 PixelFormat (const ChannelFormat &c0, unsigned int flags=0)
 PixelFormat (const ChannelFormat &c0, const ChannelFormat &c1, unsigned int flags=0)
 PixelFormat (const ChannelFormat &c0, const ChannelFormat &c1, const ChannelFormat &c2, unsigned int flags=0)
 PixelFormat (const ChannelFormat &c0, const ChannelFormat &c1, const ChannelFormat &c2, const ChannelFormat &c3, unsigned int flags=0)
unsigned int getNumChannels () const
const ChannelFormatgetChannel (unsigned int i) const
ChannelFormatgetChannel (unsigned int i)
const ChannelFormatoperator[] (unsigned int i) const
ChannelFormatoperator[] (unsigned int i)
unsigned int getFlags () const
void setFlags (unsigned int f)
unsigned int computeBitSize () const
unsigned int computeByteSize () const
PixelFormatoperator= (const PixelFormat &f)
bool operator== (const PixelFormat &f) const
bool operator!= (const PixelFormat &f) const
void print (std::ostream &o) const

Static Public Attributes

static const PixelFormat RGB_24
static const PixelFormat BGR_24
static const PixelFormat RGB_32
static const PixelFormat RGBA_32
static const PixelFormat BGR_32
static const PixelFormat BGRA_32
static const PixelFormat RGB_3_2_2
static const PixelFormat RGBF_96

Private Attributes

ChannelFormat channels [MAX_NUMBER_OF_CHANNELS]
unsigned int numChannels
unsigned int flags

Detailed Description

Definition at line 61 of file pixelFormat.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
MAX_NUMBER_OF_CHANNELS 

Definition at line 64 of file pixelFormat.h.

anonymous enum
Enumerator:
PLANAR_FRAMEBUFFER 

Definition at line 67 of file pixelFormat.h.


Constructor & Destructor Documentation

BALL::VIEW::PixelFormat::PixelFormat (  )  [inline]

Definition at line 73 of file pixelFormat.h.

BALL::VIEW::PixelFormat::PixelFormat ( const ChannelFormat c0,
unsigned int  flags = 0 
) [inline]

Definition at line 81 of file pixelFormat.h.

BALL::VIEW::PixelFormat::PixelFormat ( const ChannelFormat c0,
const ChannelFormat c1,
unsigned int  flags = 0 
) [inline]

Definition at line 88 of file pixelFormat.h.

BALL::VIEW::PixelFormat::PixelFormat ( const ChannelFormat c0,
const ChannelFormat c1,
const ChannelFormat c2,
unsigned int  flags = 0 
) [inline]

Definition at line 97 of file pixelFormat.h.

BALL::VIEW::PixelFormat::PixelFormat ( const ChannelFormat c0,
const ChannelFormat c1,
const ChannelFormat c2,
const ChannelFormat c3,
unsigned int  flags = 0 
) [inline]

Definition at line 108 of file pixelFormat.h.


Member Function Documentation

unsigned int BALL::VIEW::PixelFormat::computeBitSize (  )  const [inline]

Definition at line 149 of file pixelFormat.h.

unsigned int BALL::VIEW::PixelFormat::computeByteSize (  )  const [inline]

Definition at line 157 of file pixelFormat.h.

ChannelFormat& BALL::VIEW::PixelFormat::getChannel ( unsigned int  i  )  [inline]

Definition at line 130 of file pixelFormat.h.

const ChannelFormat& BALL::VIEW::PixelFormat::getChannel ( unsigned int  i  )  const [inline]

Definition at line 125 of file pixelFormat.h.

unsigned int BALL::VIEW::PixelFormat::getFlags (  )  const [inline]

Definition at line 145 of file pixelFormat.h.

unsigned int BALL::VIEW::PixelFormat::getNumChannels (  )  const [inline]

Definition at line 123 of file pixelFormat.h.

bool BALL::VIEW::PixelFormat::operator!= ( const PixelFormat f  )  const [inline]

Definition at line 183 of file pixelFormat.h.

PixelFormat& BALL::VIEW::PixelFormat::operator= ( const PixelFormat f  )  [inline]

Definition at line 162 of file pixelFormat.h.

bool BALL::VIEW::PixelFormat::operator== ( const PixelFormat f  )  const [inline]

Definition at line 172 of file pixelFormat.h.

ChannelFormat& BALL::VIEW::PixelFormat::operator[] ( unsigned int  i  )  [inline]

Definition at line 140 of file pixelFormat.h.

const ChannelFormat& BALL::VIEW::PixelFormat::operator[] ( unsigned int  i  )  const [inline]

Definition at line 135 of file pixelFormat.h.

void BALL::VIEW::PixelFormat::print ( std::ostream &  o  )  const
void BALL::VIEW::PixelFormat::setFlags ( unsigned int  f  )  [inline]

Definition at line 147 of file pixelFormat.h.


Member Data Documentation

Definition at line 190 of file pixelFormat.h.

Definition at line 194 of file pixelFormat.h.

Definition at line 195 of file pixelFormat.h.

ChannelFormat BALL::VIEW::PixelFormat::channels[MAX_NUMBER_OF_CHANNELS] [private]

Definition at line 204 of file pixelFormat.h.

unsigned int BALL::VIEW::PixelFormat::flags [private]

Definition at line 206 of file pixelFormat.h.

unsigned int BALL::VIEW::PixelFormat::numChannels [private]

Definition at line 205 of file pixelFormat.h.

Definition at line 189 of file pixelFormat.h.

Definition at line 192 of file pixelFormat.h.

Definition at line 198 of file pixelFormat.h.

Definition at line 193 of file pixelFormat.h.

Definition at line 201 of file pixelFormat.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Generated by  doxygen 1.6.3