Salome HOME
add MEDReader tests
[modules/paravis.git] / src / PVGUI / PVGUI_Module.h
index c6b608a73edfe7329ac4bffa8207b1230ee6b358..f955a6e1093d9e31123498853d3833d181f5ce51 100644 (file)
@@ -1,6 +1,6 @@
 // PARAVIS : ParaView wrapper SALOME module
 //
-// Copyright (C) 2010-2014  CEA/DEN, EDF R&D
+// Copyright (C) 2010-2015  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -19,7 +19,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 // File   : PVGUI_Module.h
-// Author : Sergey ANIKIN
+// Author : Sergey ANIKIN, Adrien BRUNETON
 //
 
 
@@ -27,9 +27,8 @@
 #define PVGUI_Module_H
 
 #include <SalomeApp_Module.h>
-#include "SALOMEconfig.h"
-#include CORBA_SERVER_HEADER(SALOMEDS)
-#include CORBA_SERVER_HEADER(PARAVIS_Gen)
+#include <SALOMEconfig.h>
+#include CORBA_SERVER_HEADER(PVSERVER_Gen)
 
 #include <ostream>
 #include <vtkType.h>
@@ -50,6 +49,7 @@ class pqPVApplicationCore;
 class pqDataRepresentation;
 class pqRepresentation;
 class PVViewer_GUIElements;
+class PVViewer_EngineWrapper;
 
 class PVGUI_Module : public SalomeApp_Module
 {
@@ -145,7 +145,7 @@ public:
   virtual void           initialize( CAM_Application* );
   virtual void           windows( QMap<int, int>& ) const;
 
-  virtual QString engineIOR() const;
+  virtual QString engineIOR() const;  // to be removed when becoming Light
 
   void openFile(const char* theName);
   void executeScript(const char *script);
@@ -164,10 +164,13 @@ public:
 
   virtual void contextMenuPopup(const QString& theClient, QMenu* theMenu, QString& theTitle);
 
-  // Get the unwrapped version of the engine - compare with PVViewer_EngineWrapper.
-  inline static PARAVIS_ORB::PARAVIS_Gen_var GetCPPEngine();
+  inline static PVViewer_EngineWrapper * GetEngine();
+  inline static PVSERVER_ORB::PVSERVER_Gen_var GetCPPEngine();  // to be removed once light!
   inline static pqPVApplicationCore * GetPVApplication();
 
+  virtual CAM_DataModel* createDataModel();
+  void  fixAnimationScene();
+
 public slots:
   //void onImportFromVisu(QString theEntry);
 
@@ -242,7 +245,7 @@ private slots:
   void onShowTrace();
   void onRestartTrace();
 
-  void onNewParaViewWindow();
+//  void onNewParaViewWindow();
 
   void onSaveMultiState();
   void onAddState();
@@ -297,7 +300,8 @@ private:
 
   PVViewer_GUIElements * myGuiElements;
 
-  static PARAVIS_ORB::PARAVIS_Gen_var MyEngine;
+  static PVSERVER_ORB::PVSERVER_Gen_var MyEngine;
+
 };
 
 #endif // PVGUI_Module_H