zZoneInfluenceItemColor Class Reference

#include <zZoneInfluence.h>

Inheritance diagram for zZoneInfluenceItemColor:

Inheritance graph
[legend]
Collaboration diagram for zZoneInfluenceItemColor:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 zZoneInfluenceItemColor (zZonePtr aZone)
virtual ~zZoneInfluenceItemColor ()
void set (rColor const &col)
virtual void apply (const tPolynomial< nMessage > &value)

Protected Attributes

rColor color


Detailed Description

Definition at line 89 of file zZoneInfluence.h.


Constructor & Destructor Documentation

zZoneInfluenceItemColor::zZoneInfluenceItemColor ( zZonePtr  aZone  ) 

Definition at line 69 of file zZoneInfluence.cpp.

00069                                                               :
00070         zZoneInfluenceItem(aZone),
00071         color(0.0, 0.0, 0.0, 0.0)
00072 {}

virtual zZoneInfluenceItemColor::~zZoneInfluenceItemColor (  )  [inline, virtual]

Definition at line 94 of file zZoneInfluence.h.

00094 {};


Member Function Documentation

void zZoneInfluenceItemColor::set ( rColor const &  col  )  [inline]

Definition at line 96 of file zZoneInfluence.h.

References tColor::a_, and color.

00096                                  {
00097         color = col;
00098         color.a_ = color.a_ < 0.0?0.0:(color.a_>0.7?0.7:color.a_);
00099     };

void zZoneInfluenceItemColor::apply ( const tPolynomial< nMessage > &  value  )  [virtual]

Reimplemented from zZoneInfluenceItem.

Definition at line 75 of file zZoneInfluence.cpp.

References color, and zZoneInfluenceItem::zone.

00075                                                                  {
00076     zone->getShape()->setColorNow( color );
00077 }


Member Data Documentation

rColor zZoneInfluenceItemColor::color [protected]

Definition at line 91 of file zZoneInfluence.h.

Referenced by apply(), and set().


The documentation for this class was generated from the following files:
Generated on Sun Mar 16 00:02:39 2008 for Armagetron Advanced by  doxygen 1.5.4