# 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::CPointLightNamed Class Reference

A pointLight with a name, and a default color setup. More...

#include <point_light_named.h>

Inheritance diagram for NL3D::CPointLightNamed:

NL3D::CPointLight List of all members.

Public Methods

 CPointLightNamed ()
 Constructor. More...

void setDefaultAmbient (NLMISC::CRGBA ambient)
 Set the Default ambient color of the light. Default to Black. More...

void setDefaultDiffuse (NLMISC::CRGBA diffuse)
 Set the Default diffuse color of the light. Default to White. More...

void setDefaultSpecular (NLMISC::CRGBA specular)
 Set the Default specular color of the light. Default to White. More...

NLMISC::CRGBA getDefaultAmbient () const
 Get the Default ambient color of the light. More...

NLMISC::CRGBA getDefaultDiffuse () const
 Get the Default diffuse color of the light. More...

NLMISC::CRGBA getDefaultSpecular () const
 Get the Default specular color of the light. More...

void setLightFactor (NLMISC::CRGBA nFactor)
 modulate the default color setup with nFactor, and set to the current setup. More...

void serial (NLMISC::IStream &f)

Public Attributes

std::string LightGroupName
 Identifier of this PointLight. used for UInstanceGroup::setLightFactor(), and ULandscape::setLightFactor();. More...


Private Attributes

sint _IdInInfluenceList
NLMISC::CRGBA _DefaultAmbient
NLMISC::CRGBA _DefaultDiffuse
NLMISC::CRGBA _DefaultSpecular

Friends

class CLightInfluenceInterpolator

Detailed Description

A pointLight with a name, and a default color setup.

The current setup is the setup in CPointLight. A CPointLightNamed influence can also be interpolated with a CLightInfluenceInterpolator.

Author:
Lionel Berenguier , Nevrax France
Date:
2001

Definition at line 48 of file point_light_named.h.


Constructor & Destructor Documentation

NL3D::CPointLightNamed::CPointLightNamed  
 

Constructor.

Definition at line 35 of file point_light_named.cpp.

References _DefaultAmbient, _DefaultDiffuse, _DefaultSpecular, NL3D::CPointLight::getAmbient, NL3D::CPointLight::getDiffuse, and NL3D::CPointLight::getSpecular.


Member Function Documentation

NLMISC::CRGBA NL3D::CPointLightNamed::getDefaultAmbient   const [inline]
 

Get the Default ambient color of the light.

Definition at line 69 of file point_light_named.h.

References _DefaultAmbient.

NLMISC::CRGBA NL3D::CPointLightNamed::getDefaultDiffuse   const [inline]
 

Get the Default diffuse color of the light.

Definition at line 71 of file point_light_named.h.

References _DefaultDiffuse.

NLMISC::CRGBA NL3D::CPointLightNamed::getDefaultSpecular   const [inline]
 

Get the Default specular color of the light.

Definition at line 73 of file point_light_named.h.

References _DefaultSpecular.

void NL3D::CPointLightNamed::serial NLMISC::IStream   f
 

Reimplemented from NL3D::CPointLight.

Definition at line 61 of file point_light_named.cpp.

References _DefaultAmbient, _DefaultDiffuse, _DefaultSpecular, LightGroupName, NLMISC::IStream::serial, and NLMISC::IStream::serialVersion.

void NL3D::CPointLightNamed::setDefaultAmbient NLMISC::CRGBA    ambient [inline]
 

Set the Default ambient color of the light. Default to Black.

Definition at line 62 of file point_light_named.h.

References _DefaultAmbient.

void NL3D::CPointLightNamed::setDefaultDiffuse NLMISC::CRGBA    diffuse [inline]
 

Set the Default diffuse color of the light. Default to White.

Definition at line 64 of file point_light_named.h.

References _DefaultDiffuse.

void NL3D::CPointLightNamed::setDefaultSpecular NLMISC::CRGBA    specular [inline]
 

Set the Default specular color of the light. Default to White.

Definition at line 66 of file point_light_named.h.

References _DefaultSpecular.

void NL3D::CPointLightNamed::setLightFactor NLMISC::CRGBA    nFactor
 

modulate the default color setup with nFactor, and set to the current setup.

Definition at line 45 of file point_light_named.cpp.

References _DefaultAmbient, _DefaultDiffuse, _DefaultSpecular, NL3D::CPointLight::setAmbient, NL3D::CPointLight::setDiffuse, and NL3D::CPointLight::setSpecular.


Friends And Related Function Documentation

friend class CLightInfluenceInterpolator [friend]
 

Definition at line 87 of file point_light_named.h.


Member Data Documentation

NLMISC::CRGBA NL3D::CPointLightNamed::_DefaultAmbient [private]
 

Definition at line 91 of file point_light_named.h.

Referenced by CPointLightNamed, getDefaultAmbient, serial, setDefaultAmbient, and setLightFactor.

NLMISC::CRGBA NL3D::CPointLightNamed::_DefaultDiffuse [private]
 

Definition at line 92 of file point_light_named.h.

Referenced by CPointLightNamed, getDefaultDiffuse, serial, setDefaultDiffuse, and setLightFactor.

NLMISC::CRGBA NL3D::CPointLightNamed::_DefaultSpecular [private]
 

Definition at line 93 of file point_light_named.h.

Referenced by CPointLightNamed, getDefaultSpecular, serial, setDefaultSpecular, and setLightFactor.

sint NL3D::CPointLightNamed::_IdInInfluenceList [private]
 

Definition at line 88 of file point_light_named.h.

std::string NL3D::CPointLightNamed::LightGroupName
 

Identifier of this PointLight. used for UInstanceGroup::setLightFactor(), and ULandscape::setLightFactor();.

Definition at line 52 of file point_light_named.h.

Referenced by serial.


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