# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::UInstanceMaterial Class Reference

Base interface for manipulating Material retrieved from UInstance. More...

#include <u_instance_material.h>

Inheritance diagram for NL3D::UInstanceMaterial

Inheritance graph
[legend]
List of all members.

Public Methods

virtual bool isLighted () const = 0
virtual bool isUserColor () const = 0
virtual void setEmissive ( CRGBA emissive=CRGBA(0,0,0) ) = 0
 Set the emissive part ot material. Usefull only if setLighting(true, false) has been done.

virtual void setAmbient ( CRGBA ambient=CRGBA(0,0,0) ) = 0
 Set the Ambient part ot material. Usefull only if setLighting(true, false) has been done.

virtual void setDiffuse ( CRGBA diffuse=CRGBA(0,0,0) ) = 0
 Set the Diffuse part ot material. Usefull only if setLighting(true, false) has been done. NB: opacity is NOT copied from diffuse.A.

virtual void setOpacity ( uint8 opa ) = 0
 Set the Opacity part ot material. Usefull only if setLighting(true, false) has been done.

virtual void setSpecular ( CRGBA specular=CRGBA(0,0,0) ) = 0
 Set the specular part ot material. Usefull only if setLighting(true, false) has been done.

virtual void setShininess ( float shininess ) = 0
 Set the shininess part ot material. Usefull only if setLighting(true, false) has been done.

virtual CRGBA getEmissive () const = 0
virtual CRGBA getAmbient () const = 0
virtual CRGBA getDiffuse () const = 0
 return diffuse part. NB: A==opacity.

virtual uint8 getOpacity () const = 0
virtual CRGBA getSpecular () const = 0
virtual float getShininess () const = 0
virtual void setColor (CRGBA rgba) = 0
virtual CRGBA getColor (void) const = 0
virtual void setUserColor (CRGBA userColor) = 0
virtual CRGBA getUserColor () const = 0

Protected Methods

 UInstanceMaterial ()
virtual ~UInstanceMaterial ()

Detailed Description

Base interface for manipulating Material retrieved from UInstance.

Author(s):
Lionel Berenguier , Nevrax France
Date:
2001

Definition at line 47 of file u_instance_material.h.


Constructor & Destructor Documentation

NL3D::UInstanceMaterial::UInstanceMaterial ( ) [inline, protected]
 

Definition at line 53 of file u_instance_material.h.

NL3D::UInstanceMaterial::~UInstanceMaterial ( ) [inline, protected, virtual]
 

Definition at line 54 of file u_instance_material.h.


Member Function Documentation

virtual CRGBA NL3D::UInstanceMaterial::getAmbient ( ) const [pure virtual]
 

Reimplemented in NL3D::CInstanceMaterialUser.

virtual CRGBA NL3D::UInstanceMaterial::getColor ( void ) const [pure virtual]
 

Reimplemented in NL3D::CInstanceMaterialUser.

CRGBA NL3D::UInstanceMaterial::getDiffuse ( ) const [pure virtual]
 

return diffuse part. NB: A==opacity.

Reimplemented in NL3D::CInstanceMaterialUser.

virtual CRGBA NL3D::UInstanceMaterial::getEmissive ( ) const [pure virtual]
 

Reimplemented in NL3D::CInstanceMaterialUser.

virtual uint8 NL3D::UInstanceMaterial::getOpacity ( ) const [pure virtual]
 

Reimplemented in NL3D::CInstanceMaterialUser.

virtual float NL3D::UInstanceMaterial::getShininess ( ) const [pure virtual]
 

Reimplemented in NL3D::CInstanceMaterialUser.

virtual CRGBA NL3D::UInstanceMaterial::getSpecular ( ) const [pure virtual]
 

Reimplemented in NL3D::CInstanceMaterialUser.

virtual CRGBA NL3D::UInstanceMaterial::getUserColor ( ) const [pure virtual]
 

Reimplemented in NL3D::CInstanceMaterialUser.

bool NL3D::UInstanceMaterial::isLighted ( ) const [pure virtual]
 

Reimplemented in NL3D::CInstanceMaterialUser.

virtual bool NL3D::UInstanceMaterial::isUserColor ( ) const [pure virtual]
 

Reimplemented in NL3D::CInstanceMaterialUser.

void NL3D::UInstanceMaterial::setAmbient ( CRGBA ambient = CRGBA(0,0,0) ) [pure virtual]
 

Set the Ambient part ot material. Usefull only if setLighting(true, false) has been done.

Reimplemented in NL3D::CInstanceMaterialUser.

void NL3D::UInstanceMaterial::setColor ( CRGBA rgba ) [pure virtual]
 

Reimplemented in NL3D::CInstanceMaterialUser.

void NL3D::UInstanceMaterial::setDiffuse ( CRGBA diffuse = CRGBA(0,0,0) ) [pure virtual]
 

Set the Diffuse part ot material. Usefull only if setLighting(true, false) has been done. NB: opacity is NOT copied from diffuse.A.

Reimplemented in NL3D::CInstanceMaterialUser.

void NL3D::UInstanceMaterial::setEmissive ( CRGBA emissive = CRGBA(0,0,0) ) [pure virtual]
 

Set the emissive part ot material. Usefull only if setLighting(true, false) has been done.

Reimplemented in NL3D::CInstanceMaterialUser.

void NL3D::UInstanceMaterial::setOpacity ( uint8 opa ) [pure virtual]
 

Set the Opacity part ot material. Usefull only if setLighting(true, false) has been done.

Reimplemented in NL3D::CInstanceMaterialUser.

void NL3D::UInstanceMaterial::setShininess ( float shininess ) [pure virtual]
 

Set the shininess part ot material. Usefull only if setLighting(true, false) has been done.

Reimplemented in NL3D::CInstanceMaterialUser.

void NL3D::UInstanceMaterial::setSpecular ( CRGBA specular = CRGBA(0,0,0) ) [pure virtual]
 

Set the specular part ot material. Usefull only if setLighting(true, false) has been done.

Reimplemented in NL3D::CInstanceMaterialUser.

void NL3D::UInstanceMaterial::setUserColor ( CRGBA userColor ) [pure virtual]
 

Reimplemented in NL3D::CInstanceMaterialUser.


The documentation for this class was generated from the following file: