1 // VISU OBJECT : interactive object for VISU entities implementation
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
23 // File : VISU_ViewManager_i.hh
24 // Author : Alexey PETROV
27 #ifndef VISU_ViewManager_i_HeaderFile
28 #define VISU_ViewManager_i_HeaderFile
30 #include "VISUConfig.hh"
32 class SalomeApp_Application;
36 class SUIT_ViewWindow;
38 class SVTK_ViewWindow;
39 class Plot2d_ViewFrame;
49 class ViewManager_i : public virtual POA_VISU::ViewManager,
53 ViewManager_i(SALOMEDS::Study_ptr theStudy);
54 virtual ~ViewManager_i();
55 virtual VISU::VISUType GetType() { return VISU::TVIEWMANAGER;};
57 virtual View3D_ptr Create3DView();
58 virtual View_ptr GetCurrentView();
59 virtual TableView_ptr CreateTableView(VISU::Table_ptr theTable);
60 virtual XYPlot_ptr CreateXYPlot();
61 virtual void Destroy(View_ptr theView);
64 SalomeApp_Application *myApplication;
67 SVTK_ViewWindow* GetViewWindow (SUIT_ViewWindow* theStudyFrame);
68 vtkRenderer* GetRenderer (SUIT_ViewWindow* theStudyFrame);
69 vtkCamera* GetCamera (SUIT_ViewWindow* theStudyFrame);
71 void RepaintView (SUIT_ViewWindow* theStudyFrame);
73 enum Displaing {eDisplayAll, eDisplay, eDisplayOnly, eErase, eEraseAll};
74 VISU_Actor* UpdateViewer (SUIT_ViewWindow* theStudyFrame, int theDisplaing, Prs3d_i* thePrs = NULL);
75 void UpdatePlot2d (Plot2d_ViewFrame *theView, int theDisplaying, Curve_i* theCurve);
77 VISU_Actor* GetActor (VISU::Prs3d_i* thePrs, SVTK_ViewWindow* theViewWindow);
79 void DeleteActors (VISU::Prs3d_i* thePrs);
80 void DeleteActors (VISU::Curve_i* thePrs);