#ifndef ANIMABLE_I_H_\r
#define ANIMABLE_I_H_\r
\r
-#include <iostream>\r
-#include "cudaTools.h"\r
+#include <string>\r
+#include <vector>\r
\r
-using std::string;\r
+#include "cudaTools.h"\r
\r
/*----------------------------------------------------------------------*\\r
|* Declaration *|\r
class Animable_I\r
{\r
public:\r
-\r
- //virtual ~Animable_I(void)=0;\r
+ virtual ~Animable_I(void) {};\r
\r
virtual void runGPU(uchar4* ptrDevPixels)=0;\r
virtual void animationStep(void)=0;\r
virtual int getW()=0;\r
virtual int getH()=0;\r
\r
- /**\r
- * getParaAnimation\r
- */\r
- virtual float getT()=0;\r
+ /**\r
+ * Ancienne version de l'interface.\r
+ */\r
+ virtual float getT() { return 0.0; };\r
\r
- virtual string getTitle()=0;\r
+ virtual std::vector<std::string> getNames() { std::vector<std::string> def; def.push_back("t = "); return def; }\r
+ virtual void getValues(float* values) { values[0] = this->getT(); }\r
\r
+ virtual std::string getTitle() = 0;\r
};\r
\r
#endif\r