00001 // Author: Justin Kinney 00002 // Date: Sep 2008 00003 00004 #ifndef ENERGY_H 00005 #define ENERGY_H 1 00006 00007 #include "meshmorph.h" 00008 00009 class Energy 00010 { 00011 private: 00012 vec_d total_energy; // samples of total energy of model 00013 static Energy * only_one; 00014 Energy (void); 00015 Energy (Energy const &); 00016 Energy & operator = (Energy const &); 00017 ~Energy (void); 00018 public: 00019 static Energy & instance (void); 00020 void computeGlobalEnergy (void); 00021 void writeStats (std::ostream &); 00022 }; 00023 00024 #endif