#include <zZoneInfluence.h>
Public Member Functions | |
zZoneInfluenceItemScale (zZonePtr aZone) | |
virtual | ~zZoneInfluenceItemScale () |
void | set (REAL sca) |
virtual void | apply (const tPolynomial< nMessage > &value) |
Protected Attributes | |
REAL | scale |
Definition at line 63 of file zZoneInfluence.h.
zZoneInfluenceItemScale::zZoneInfluenceItemScale | ( | zZonePtr | aZone | ) |
Definition at line 39 of file zZoneInfluence.cpp.
00039 : 00040 zZoneInfluenceItem(aZone), 00041 scale(0.0) 00042 {}
virtual zZoneInfluenceItemScale::~zZoneInfluenceItemScale | ( | ) | [inline, virtual] |
void zZoneInfluenceItemScale::set | ( | REAL | sca | ) | [inline] |
Definition at line 70 of file zZoneInfluence.h.
References scale.
00070 { 00071 scale = sca; 00072 };
void zZoneInfluenceItemScale::apply | ( | const tPolynomial< nMessage > & | value | ) | [virtual] |
Reimplemented from zZoneInfluenceItem.
Definition at line 45 of file zZoneInfluence.cpp.
References scale, tFunction::SetOffset(), tFunction::SetSlope(), and zZoneInfluenceItem::zone.
00045 { 00046 tFunction tfScale; 00047 tfScale.SetOffset( scale ); 00048 tfScale.SetSlope( 0.0f ); 00049 zone->getShape()->setScale( tfScale ); 00050 }
REAL zZoneInfluenceItemScale::scale [protected] |