1 // Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 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.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // VISU OBJECT : interactive object for VISU entities implementation
24 // File : VISU_ViewManager_i.hh
25 // Author : Alexey PETROV
28 #ifndef VISU_ViewManager_i_HeaderFile
29 #define VISU_ViewManager_i_HeaderFile
31 #include "VISUConfig.hh"
33 class SalomeApp_Application;
38 class SUIT_ViewWindow;
40 class SVTK_ViewWindow;
41 class Plot2d_ViewFrame;
52 class VISU_I_EXPORT ViewManager_i : public virtual POA_VISU::ViewManager,
56 ViewManager_i(SALOMEDS::Study_ptr theStudy);
57 virtual ~ViewManager_i();
58 virtual VISU::VISUType GetType() { return VISU::TVIEWMANAGER;};
60 virtual View3D_ptr Create3DView();
61 virtual View_ptr GetCurrentView();
62 virtual TableView_ptr CreateTableView(VISU::Table_ptr theTable);
63 virtual XYPlot_ptr CreateXYPlot();
64 virtual void Destroy(View_ptr theView);
67 SalomeApp_Application *myApplication;
70 vtkRenderer* GetRenderer (SUIT_ViewWindow* theViewWindow);
71 vtkCamera* GetCamera (SUIT_ViewWindow* theViewWindow);
73 void RepaintView (SUIT_ViewWindow* theViewWindow);
75 enum Displaing {eDisplayAll, eDisplay, eDisplayOnly, eErase, eEraseAll, eUpdateData};
76 VISU_I_EXPORT VISU_Actor* UpdateViewer (SUIT_ViewWindow* theViewWindow, int theDisplaing, Prs3d_i* thePrs = NULL);
77 void UpdatePlot2d (Curve_i* theCurve, int theDisplaying, Plot2d_ViewFrame* theView = NULL);
79 VISU_I_EXPORT VISU_Actor* FindActor(SVTK_ViewWindow* theViewWindow, VISU::Prs3d_i* thePrs3d);
80 VISU_I_EXPORT VISU_ActorBase* FindActorBase(SVTK_ViewWindow* theViewWindow, VISU::TActorFactory* theActor);
82 void DeleteActors (VISU::Prs3d_i* thePrs);
83 void DeleteActors (VISU::Curve_i* thePrs);