Salome HOME
Better timestamp management to synchronize the timestamp of the view and the field id
[modules/med.git] / src / MEDCalc / gui / MEDModule.cxx
index 53d274a7ea6d5701b0a36a1a790464305c0958ba..0401d929eb874afb68facc1b9870f0f0c4aed6a3 100644 (file)
@@ -53,6 +53,7 @@
 
 #include <pqAnimationManager.h>
 #include <pqPVApplicationCore.h>
+#include <pqAnimationScene.h>
 
 //! The only instance of the reference to engine
 MED_ORB::MED_Gen_var MEDModule::_MED_engine;
@@ -315,6 +316,13 @@ MEDModule::initToolbars()
 #endif
 }
 
+double
+MEDModule::getCurrentAnimationTimestamp()
+{
+  double timestamp = pqPVApplicationCore::instance()->animationManager()->getActiveScene()->getAnimationTime();
+  return timestamp;
+}
+
 void
 MEDModule::createModuleActions() {
   _datasourceController->createActions();