CIvfOldLightModel Class Reference

#include <ivf/IvfOldLightModel.h>

Inheritance diagram for CIvfOldLightModel:

CIvfObject CIvfBase CIvfRefCountBase CIvfRTTIBase List of all members.

Public Member Functions

void deleteLight (CIvfOldLight *light)
 CIvfOldLightModel ()
 ~CIvfOldLightModel ()
 IvfClassInfo ("CIvfOldLightModel", CIvfObject)
void setAmbient (GLfloat r, GLfloat g, GLfloat b, GLfloat a)
void setLocalViewer (GLboolean t)
void setTwoSide (GLboolean t)
void getAmbient (GLfloat &r, GLfloat &g, GLfloat &b, GLfloat &a) const
bool getLocalViewer () const
bool getTwoSide () const
void render ()
void setUseReference (bool flag)
void addLight (CIvfOldLight *light)
CIvfOldLight * removeLight (int index)
void deleteLight (int index)
CIvfOldLight * getLight (int i)
const CIvfOldLight * getLight (int i) const
int getNoLights () const
void activate ()
void deactivate ()
void disableAll ()
void deleteAll ()

Protected Member Functions

CIvfOldLightModel & operator= (const CIvfOldLightModel &)
 CIvfOldLightModel (const CIvfOldLightModel &)

Detailed Description

Light model class

Contains all scene lighting info

Author:
Carl-Johan Lejdfors

Definition at line 40 of file IvfOldLightModel.h.


Constructor & Destructor Documentation

CIvfOldLightModel::CIvfOldLightModel (   ) 
 

Constructor

CIvfOldLightModel::~CIvfOldLightModel (   ) 
 

Destructor


Member Function Documentation

void CIvfOldLightModel::activate (   ) 
 

Activate all lights

void CIvfOldLightModel::addLight (  CIvfOldLight *  light  ) 
 

Add a light to light model

If addReference is not called before adding the light to the light model, it is owned by the light model instance and is deleted if not needed anymore.

void CIvfOldLightModel::deactivate (   ) 
 

Deactivate all lights

void CIvfOldLightModel::deleteLight (  int  index  ) 
 

Deletes a light from the model

void CIvfOldLightModel::disableAll (   ) 
 

Disable all OpenGL lights

void CIvfOldLightModel::getAmbient (  GLfloat &  r,
GLfloat &  g,
GLfloat &  b,
GLfloat &  a
)  const
 

Return environment ambient lighting components

CIvfOldLight* CIvfOldLightModel::getLight (  int  i  ) 
 

Returns the i:th light

bool CIvfOldLightModel::getLocalViewer (   )  const
 

Return local viewer flag

int CIvfOldLightModel::getNoLights (   )  const
 

Returns the total number of lights

bool CIvfOldLightModel::getTwoSide (   )  const
 

Return two sided flag

CIvfOldLight* CIvfOldLightModel::removeLight (  int  index  ) 
 

Removes a light from the light model

void CIvfOldLightModel::render (   )  [virtual]
 

Render light model

Reimplemented from CIvfObject.

void CIvfOldLightModel::setAmbient (  GLfloat  r,
GLfloat  g,
GLfloat  b,
GLfloat  a
) 
 

Set environment ambient lighting components

void CIvfOldLightModel::setLocalViewer (  GLboolean  t  ) 
 

Set local viewer flag

void CIvfOldLightModel::setTwoSide (  GLboolean  t  ) 
 

Set two sided flag

void CIvfOldLightModel::setUseReference (  bool  flag  ) 
 

Set the use reference flag

Determines if reference counting should be used on object.


The documentation for this class was generated from the following file:
Generated on Fri Sep 1 15:36:55 2006 for Interactive Visualisation Framework - Ivf++ by  doxygen 1.4.6-NO