OpenGLPrakt --> cADSEColor

class cADSEColor

a simple class for representing ambient, diffuse, specular and emissive color

There should be no use in deriving from this class. It's basically a beefed-up struct with four cColor objects in it.

Source:
../src/cADSEColor.hh:25

Constructors Index

cADSEColor
[public] default constructor w/ optional initialization
~cADSEColor
[public] destructor


Variables Index

mAmbient
[protected]
mDiffuse
[protected]
mEmissive
[protected]
mSpecular
[protected]


Methods Index

Ambient
[public] provide read-only access to ambient component
Diffuse
[public] provide read-only access to diffuse component
Emissive
[public] provide read-only access to emissive component
Specular
[public] provide read-only access to emissive component
wAmbient
[public] provide write access to ambient color
wDiffuse
[public] provide write access to diffuse color
wEmissive
[public] provide write access to emissive color
wSpecular
[public] provide write access to specular color


Constructors

cADSEColor

public cADSEColor ( const cColor & amb = cColor ( ) ,
                    const cColor & diff = cColor ( ) ,
                    const cColor & spec = cColor ( ) ,
                    const cColor & em = cColor ( ) ) ;

default constructor w/ optional initialization

Parameters:
amb cColor object for ambient color
diff cColor object for diffuse color
spec cColor object for specular color
em cColor object for emissive color

cADSEColor

public ~ cADSEColor ( ) ;

destructor


Variables

mAmbient

protected cColor mAmbient

mDiffuse

protected cColor mDiffuse

mSpecular

protected cColor mSpecular

mEmissive

protected cColor mEmissive


Methods

Ambient

public const cColor & Ambient ( ) const ;

provide read-only access to ambient component

Return:
const reference to cColor

wAmbient

public cColor & wAmbient ( ) ;

provide write access to ambient color

Return:
reference to cColor

Diffuse

public const cColor & Diffuse ( ) const ;

provide read-only access to diffuse component

Return:
const reference to cColor

wDiffuse

public cColor & wDiffuse ( ) ;

provide write access to diffuse color

Return:
reference to cColor

Specular

public const cColor & Specular ( ) const ;

provide read-only access to emissive component

Return:
const reference to cColor

wSpecular

public cColor & wSpecular ( ) ;

provide write access to specular color

Return:
reference to cColor

Emissive

public const cColor & Emissive ( ) const ;

provide read-only access to emissive component

Return:
const reference to cColor

wEmissive

public cColor & wEmissive ( ) ;

provide write access to emissive color

Return:
reference to cColor

This documentation was generated automatically by the ccdoc tool (version 0.7a).
Click here to submit a bug report or feature request.

Click here to return to the top of the page.