00001 #include <esg/Shape.h> 00002 00003 using namespace esg; 00004 00005 //-------- public ----------- 00006 00007 Shape::~Shape() 00008 { 00009 AutoPtr<EnergyCoat>::destroy(_pEnergy, (void*) this); 00010 } 00011 00012 void Shape::setEnergyState(AutoPtr<EnergyCoat>* e) 00013 { 00014 AutoPtr<EnergyCoat>::destroy(_pEnergy, (void*) this); 00015 if (e) e->registerReferer((void*) this); 00016 _pEnergy = e; 00017 } 00018