Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

osg::UByte4 Class Reference

General purpose float quad, uses include representation of colour coordinates. More...

List of all members.

Public Methods

 UByte4 ()
 UByte4 (unsigned char r, unsigned char g, unsigned char b, unsigned char a)
const bool operator== (const UByte4 &v) const
const bool operator!= (const UByte4 &v) const
const bool operator< (const UByte4 &v) const
unsigned char * ptr ()
const unsigned char * ptr () const
void set (unsigned char r, unsigned char g, unsigned char b, unsigned char a)
unsigned char & operator[] (const int i)
unsigned char operator[] (const int i) const
unsigned char & r ()
unsigned char & g ()
unsigned char & b ()
unsigned char & a ()
unsigned char r () const
unsigned char g () const
unsigned char b () const
unsigned char a () const
UByte4 operator * (const float rhs) const
 multiply by scalar

UByte4 & operator *= (const float rhs)
 unary multiply by scalar

UByte4 operator/ (const float rhs) const
 divide by scalar

UByte4 & operator/= (const float rhs)
 unary divide by scalar

UByte4 operator+ (const UByte4 &rhs) const
 binary vector add

UByte4 & operator+= (const UByte4 &rhs)
 unary vector add.

UByte4 operator- (const UByte4 &rhs) const
 binary vector subtract

UByte4 & operator-= (const UByte4 &rhs)
 unary vector subtract


Public Attributes

unsigned char _v [4]

Friends

std::ostream & operator<< (std::ostream &output, const UByte4 &vec)


Detailed Description

General purpose float quad, uses include representation of colour coordinates.

No support yet added for float * UByte4 - is it necessary? Need to define a non-member non-friend operator * etc. UByte4 * float is okay


Constructor & Destructor Documentation

osg::UByte4::UByte4   [inline]
 

osg::UByte4::UByte4 unsigned char    r,
unsigned char    g,
unsigned char    b,
unsigned char    a
[inline]
 


Member Function Documentation

unsigned char osg::UByte4::a   const [inline]
 

unsigned char& osg::UByte4::a   [inline]
 

unsigned char osg::UByte4::b   const [inline]
 

unsigned char& osg::UByte4::b   [inline]
 

unsigned char osg::UByte4::g   const [inline]
 

unsigned char& osg::UByte4::g   [inline]
 

UByte4 osg::UByte4::operator * const float    rhs const [inline]
 

multiply by scalar

UByte4& osg::UByte4::operator *= const float    rhs [inline]
 

unary multiply by scalar

const bool osg::UByte4::operator!= const UByte4 &    v const [inline]
 

UByte4 osg::UByte4::operator+ const UByte4 &    rhs const [inline]
 

binary vector add

UByte4& osg::UByte4::operator+= const UByte4 &    rhs [inline]
 

unary vector add.

Slightly more efficient because no temporary intermediate object

UByte4 osg::UByte4::operator- const UByte4 &    rhs const [inline]
 

binary vector subtract

UByte4& osg::UByte4::operator-= const UByte4 &    rhs [inline]
 

unary vector subtract

UByte4 osg::UByte4::operator/ const float    rhs const [inline]
 

divide by scalar

UByte4& osg::UByte4::operator/= const float    rhs [inline]
 

unary divide by scalar

const bool osg::UByte4::operator< const UByte4 &    v const [inline]
 

const bool osg::UByte4::operator== const UByte4 &    v const [inline]
 

unsigned char osg::UByte4::operator[] const int    i const [inline]
 

unsigned char& osg::UByte4::operator[] const int    i [inline]
 

const unsigned char* osg::UByte4::ptr   const [inline]
 

unsigned char* osg::UByte4::ptr   [inline]
 

unsigned char osg::UByte4::r   const [inline]
 

unsigned char& osg::UByte4::r   [inline]
 

void osg::UByte4::set unsigned char    r,
unsigned char    g,
unsigned char    b,
unsigned char    a
[inline]
 


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &    output,
const UByte4 &    vec
[friend]
 


Member Data Documentation

unsigned char osg::UByte4::_v[4]
 


The documentation for this class was generated from the following file:
Generated at Wed Sep 18 13:55:47 2002 for the Open Scene Graph by doxygen 1.2.16.