1 // Copyright (C) 2007-2008 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
22 // VISU OBJECT : interactive object for VISU entities implementation
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;
37 class SUIT_ViewWindow;
39 class SVTK_ViewWindow;
40 class Plot2d_ViewFrame;
51 class VISU_I_EXPORT ViewManager_i : public virtual POA_VISU::ViewManager,
55 ViewManager_i(SALOMEDS::Study_ptr theStudy);
56 virtual ~ViewManager_i();
57 virtual VISU::VISUType GetType() { return VISU::TVIEWMANAGER;};
59 virtual View3D_ptr Create3DView();
60 virtual View_ptr GetCurrentView();
61 virtual TableView_ptr CreateTableView(VISU::Table_ptr theTable);
62 virtual XYPlot_ptr CreateXYPlot();
63 virtual void Destroy(View_ptr theView);
66 SalomeApp_Application *myApplication;
69 vtkRenderer* GetRenderer (SUIT_ViewWindow* theViewWindow);
70 vtkCamera* GetCamera (SUIT_ViewWindow* theViewWindow);
72 void RepaintView (SUIT_ViewWindow* theViewWindow);
74 enum Displaing {eDisplayAll, eDisplay, eDisplayOnly, eErase, eEraseAll};
75 VISU_I_EXPORT VISU_Actor* UpdateViewer (SUIT_ViewWindow* theViewWindow, int theDisplaing, Prs3d_i* thePrs = NULL);
76 void UpdatePlot2d (Plot2d_ViewFrame *theView, int theDisplaying, Curve_i* theCurve);
78 VISU_I_EXPORT VISU_Actor* FindActor(SVTK_ViewWindow* theViewWindow, VISU::Prs3d_i* thePrs3d);
79 VISU_I_EXPORT VISU_ActorBase* FindActorBase(SVTK_ViewWindow* theViewWindow, VISU::TActorFactory* theActor);
81 void DeleteActors (VISU::Prs3d_i* thePrs);
82 void DeleteActors (VISU::Curve_i* thePrs);