CIvfColorController Class Reference

#include <ivfctl/IvfColorController.h>

Inheritance diagram for CIvfColorController:

CIvfController CIvfBase CIvfRefCountBase CIvfRTTIBase List of all members.

Public Types

enum  TColorMode { CM_DIFFUSE, CM_SPECULAR, CM_AMBIENT, CM_EMISSION }

Public Member Functions

 CIvfColorController ()
virtual ~CIvfColorController ()
 IvfClassInfo ("CIvfColorController", CIvfController)
void setColorMode (TColorMode mode)
TColorMode getColorMode ()
void setRedFunction (CIvfFunction2d *func)
void setGreenFunction (CIvfFunction2d *func)
void setBlueFunction (CIvfFunction2d *func)
void setAlphaFunction (CIvfFunction2d *func)
virtual void doUpdate (double dt)
virtual void doReset ()

Detailed Description

Color controller class

This controller controls the color component of the controlled object

Definition at line 36 of file IvfColorController.h.


Constructor & Destructor Documentation

CIvfColorController::CIvfColorController  ) 
 

CIvfColorController constructor

virtual CIvfColorController::~CIvfColorController  )  [virtual]
 

CIvfColorController


Member Function Documentation

virtual void CIvfColorController::doUpdate double  dt  )  [virtual]
 

Virtual update routine

This method should be overridden in derived classes to handle incremental time update

Parameters:
dt time since last call in seconds.

Reimplemented from CIvfController.

TColorMode CIvfColorController::getColorMode  ) 
 

Returns color mode

void CIvfColorController::setColorMode TColorMode  mode  ) 
 

Set color mode

Parameters:
mode defines which color component should be affected.

void CIvfColorController::setRedFunction CIvfFunction2d func  ) 
 

Set the function controlling the red color

Parameters:
func CIvfFunction2d derived class controlling the color value over time. Max value of the function should be 1.0.


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