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

Member Enumeration Documentation

anonymous enum
Enumerator:
MAX_NUMBER_OF_CHANNELS 
anonymous enum
Enumerator:
PLANAR_FRAMEBUFFER 

Constructor & Destructor Documentation

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

References _RTSG_FB_SETCH.

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

References _RTSG_FB_SETCH.

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

References _RTSG_FB_SETCH.

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

References _RTSG_FB_SETCH.


Member Function Documentation

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

References channels.

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

References channels.

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

References flags.

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

References numChannels.

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

References channels, flags, and numChannels.

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

References channels, flags, and numChannels.

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

References channels.

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

References channels.

void BALL::VIEW::PixelFormat::print ( std::ostream &  o  )  const

Referenced by BALL::VIEW::operator<<().

void BALL::VIEW::PixelFormat::setFlags ( unsigned int  f  )  [inline]

References flags.


Member Data Documentation

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