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

osg::Color4< ValueTypeT > Class Template Reference

Color4. More...

#include <OSGColor.h>

Collaboration diagram for osg::Color4< ValueTypeT >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef ValueTypeT ValueType

Public Methods

Constructors
 Color4 (void)
 Constructor.

 Color4 (const Color4 &source)
 Copy Constructor.

 Color4 (ValueType red, ValueType green, ValueType blue, ValueType alpha)
 Constructor.

Destructors
 ~Color4 (void)
 Destructor.

Set
void clear (void)
void setValuesRGBA (ValueType red, ValueType green, ValueType blue, ValueType alpha)
void setValuesHSV (Real32 h, Real32 s, Real32 v)
void setRandom (void)
void setRGBA (UInt32 rgbPack)
 method to set the rgb values (ABGGRR)

void setValue (const char *szString)
void setValue (char *szString)
Get
UInt32 getRGBA (void) const
 method to get a packed rgb value (ABGGRR)

void getValuesRGBA (ValueType &red, ValueType &green, ValueType &blue, ValueType &alpha)
 method to get a packed rgb value (ABGGRR)

void getValuesHSV (Real32 &h, Real32 &s, Real32 &v)
 method to get a packed rgb value (ABGGRR)

ValueType red (void) const
 method to get a packed rgb value (ABGGRR)

ValueType green (void) const
 method to get a packed rgb value (ABGGRR)

ValueType blue (void) const
 method to get a packed rgb value (ABGGRR)

ValueType alpha (void) const
 method to get a packed rgb value (ABGGRR)

ValueTypegetValuesRGBA (void)
 method to get a packed rgb value (ABGGRR)

const ValueTypegetValuesRGBA (void) const
 method to get a packed rgb value (ABGGRR)

Operators
Color4 operator * (const ValueType val)
ValueTypeoperator[] (UInt32 uiIndex)
const ValueTypeoperator[] (UInt32 uiIndex) const
Color4 & operator= (const Color4 &source)
 assignment

bool equals (const Color4 &other, ValueType tolerance) const
 equal within tolerance

bool operator== (const Color4 &other) const
 equal

bool operator!= (const Color4 &other) const
 unequal


Static Public Attributes

const Color4 Null

Protected Attributes

ValueType _rgba [4]

Detailed Description

template<class ValueTypeT>
class osg::Color4< ValueTypeT >

Color4.


Member Typedef Documentation

template<class ValueTypeT>
typedef ValueTypeT osg::Color4< ValueTypeT >::ValueType
 


Constructor & Destructor Documentation

template<class ValueTypeT>
osg::Color4< ValueTypeT >::Color4 void    [inline]
 

Constructor.

template<class ValueTypeT>
osg::Color4< ValueTypeT >::Color4 const Color4< ValueTypeT > &    source [inline]
 

Copy Constructor.

template<class ValueTypeT>
osg::Color4< ValueTypeT >::Color4 ValueType    red,
ValueType    green,
ValueType    blue,
ValueType    alpha
[inline]
 

Constructor.

template<class ValueTypeT>
osg::Color4< ValueTypeT >::~Color4 void    [inline]
 

Destructor.


Member Function Documentation

template<class ValueTypeT>
void osg::Color4< ValueTypeT >::clear void    [inline]
 

template<class ValueTypeT>
void osg::Color4< ValueTypeT >::setValuesRGBA ValueType    red,
ValueType    green,
ValueType    blue,
ValueType    alpha
[inline]
 

template<class ValueTypeT>
void osg::Color4< ValueTypeT >::setValuesHSV Real32    h,
Real32    s,
Real32    v
[inline]
 

template<class ValueTypeT>
void osg::Color4< ValueTypeT >::setRandom void    [inline]
 

template<class ValueTypeT>
void osg::Color4< ValueTypeT >::setRGBA UInt32    rgbPack [inline]
 

method to set the rgb values (ABGGRR)

template<class ValueTypeT>
void osg::Color4< ValueTypeT >::setValue const char *    szString [inline]
 

template<class ValueTypeT>
void osg::Color4< ValueTypeT >::setValue char *    szString [inline]
 

template<class ValueTypeT>
UInt32 osg::Color4< ValueTypeT >::getRGBA void    const [inline]
 

method to get a packed rgb value (ABGGRR)

template<class ValueTypeT>
void osg::Color4< ValueTypeT >::getValuesRGBA ValueType   red,
ValueType   green,
ValueType   blue,
ValueType   alpha
[inline]
 

method to get a packed rgb value (ABGGRR)

template<class ValueTypeT>
void osg::Color4< ValueTypeT >::getValuesHSV Real32   h,
Real32   s,
Real32   v
[inline]
 

method to get a packed rgb value (ABGGRR)

template<class ValueTypeT>
Color4< ValueTypeT >::ValueType osg::Color4< ValueTypeT >::red void    const [inline]
 

method to get a packed rgb value (ABGGRR)

template<class ValueTypeT>
Color4< ValueTypeT >::ValueType osg::Color4< ValueTypeT >::green void    const [inline]
 

method to get a packed rgb value (ABGGRR)

template<class ValueTypeT>
Color4< ValueTypeT >::ValueType osg::Color4< ValueTypeT >::blue void    const [inline]
 

method to get a packed rgb value (ABGGRR)

template<class ValueTypeT>
Color4< ValueTypeT >::ValueType osg::Color4< ValueTypeT >::alpha void    const [inline]
 

method to get a packed rgb value (ABGGRR)

template<class ValueTypeT>
Color4< ValueTypeT >::ValueType * osg::Color4< ValueTypeT >::getValuesRGBA void    [inline]
 

method to get a packed rgb value (ABGGRR)

template<class ValueTypeT>
const Color4< ValueTypeT >::ValueType * osg::Color4< ValueTypeT >::getValuesRGBA void    const [inline]
 

method to get a packed rgb value (ABGGRR)

template<class ValueTypeT>
Color4< ValueTypeT > osg::Color4< ValueTypeT >::operator * const ValueType    val [inline]
 

template<class ValueTypeT>
Color4< ValueTypeT >::ValueType & osg::Color4< ValueTypeT >::operator[] UInt32    uiIndex [inline]
 

template<class ValueTypeT>
const Color4< ValueTypeT >::ValueType & osg::Color4< ValueTypeT >::operator[] UInt32    uiIndex const [inline]
 

template<class ValueTypeT>
Color4< ValueTypeT > & osg::Color4< ValueTypeT >::operator= const Color4< ValueTypeT > &    other [inline]
 

assignment

template<class ValueTypeT>
bool osg::Color4< ValueTypeT >::equals const Color4< ValueTypeT > &    other,
ValueType    tolerance
const [inline]
 

equal within tolerance

template<class ValueTypeT>
bool osg::Color4< ValueTypeT >::operator== const Color4< ValueTypeT > &    other const [inline]
 

equal

template<class ValueTypeT>
bool osg::Color4< ValueTypeT >::operator!= const Color4< ValueTypeT > &    other const [inline]
 

unequal


Member Data Documentation

template<class ValueTypeT>
const Color4< ValueTypeT > osg::Color4< ValueTypeT >::Null [static]
 

template<class ValueTypeT>
ValueType osg::Color4< ValueTypeT >::_rgba[4] [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Jul 3 16:23:29 2002 for OpenSG by doxygen1.2.16