Salome HOME
View activation bug
[modules/visu.git] / src / VISUGUI / VisuGUI_Tools.h
index 296596fc0b18c6c4a63ba0be61bfaba9efd2699e..e02b91d4dd950670fad7377fb1c64b75d700a337 100644 (file)
@@ -40,6 +40,7 @@
 #include CORBA_SERVER_HEADER(MED_Gen)
 
 class SUIT_Desktop;
+class SUIT_ViewWindow;
 class VISU_Actor;
 class SVTK_ViewWindow;
 class SPlot2d_Viewer;
@@ -67,17 +68,24 @@ namespace VISU{
   VISU::Storable::TRestoringMap        getMapOfValue(_PTR(SObject) theSObject);
   QString                              getValue(SALOMEDS::SObject_var theSObject, QString theKey);
   QString                              getValue(_PTR(SObject) theSObject, QString theKey);
-  SVTK_ViewWindow*                     GetViewWindow(const SalomeApp_Module* theModule);
+
+  SVTK_ViewWindow*                     GetViewWindow(const SalomeApp_Module* theModule, const bool theCreate = false );
   SVTK_ViewWindow*                     GetViewWindow();
+  SUIT_ViewWindow*                     GetActiveView(const SalomeApp_Module* theModule, QString theType = QString::null);
+
   VISU_Actor*                          PublishInView(const SalomeApp_Module* theModule,
                                                     VISU::Prs3d_i* thePrs);
   VISU_Actor*                          UpdateViewer(const SalomeApp_Module* theModule,
                                                    VISU::Prs3d_i* thePrs, 
                                                    bool theDispOnly = false);
+
   VISU_Actor*                          FindActor(SVTK_ViewWindow* theViewWindow,
                                                 const char* theEntry);
   VISU_Actor*                          FindActor(SVTK_ViewWindow* theViewWindow,
                                                 VISU::Prs3d_i* thePrs);
+  void                                 RecreateActor(const SalomeApp_Module* theModule,
+                                                    VISU::Prs3d_i* thePrs);
+
   void                                 Add(SalomeApp_SelectionMgr* theSelectionMgr,
                                           const Handle(SALOME_InteractiveObject)& theIO);
   void                                 Remove(SalomeApp_SelectionMgr* theSelectionMgr,
@@ -106,7 +114,7 @@ namespace VISU{
   void                                 ErasePrs3d(SalomeApp_Module* theModule,
                                                  VISU::Prs3d_i* thePrs);
 
-  SPlot2d_Viewer*                      GetPlot2dViewer(const SalomeApp_Module* theModule);
+  SPlot2d_Viewer*                      GetPlot2dViewer(const SalomeApp_Module* theModule, const bool theCreate = false);
   void                                 PlotTable( const SalomeApp_Module* theModule, 
                                                  VISU::Table_i* table, 
                                                  int theDisplaying );
@@ -116,6 +124,8 @@ namespace VISU{
   void                                 PlotContainer( const SalomeApp_Module* theModule, 
                                                      VISU::Container_i* container, 
                                                      int theDisplaying );
+  void                                 CreatePlot( SalomeApp_Module* theModule,
+                                                  _PTR(SObject) theSobj );
 }
 
 bool VISU::IsSObjectTable( _PTR(SObject) theSObject )