Version: 6.3.1

src/VISU_I/VISU_ViewManager_i.hh

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  VISU OBJECT : interactive object for VISU entities implementation
00024 //  File   : VISU_ViewManager_i.hh
00025 //  Author : Alexey PETROV
00026 //  Module : VISU
00027 //
00028 #ifndef VISU_ViewManager_i_HeaderFile
00029 #define VISU_ViewManager_i_HeaderFile
00030 
00031 #include "VISUConfig.hh"
00032 
00033 class SalomeApp_Application;
00034 
00035 class VISU_Actor;
00036 class VISU_ActorBase;
00037 
00038 class SUIT_ViewWindow;
00039 
00040 class SVTK_ViewWindow;
00041 class Plot2d_ViewFrame;
00042 
00043 class vtkRenderer;
00044 class vtkCamera;
00045 
00046 
00047 namespace VISU {
00048   class Prs3d_i;
00049   class Curve_i;
00050   class TActorFactory;
00051 
00052   class VISU_I_EXPORT ViewManager_i : public virtual POA_VISU::ViewManager,
00053                         public virtual Base_i
00054   {
00055   public:
00056     ViewManager_i(SALOMEDS::Study_ptr theStudy);
00057     virtual ~ViewManager_i();
00058     virtual VISU::VISUType GetType() { return VISU::TVIEWMANAGER;};
00059 
00060     virtual View3D_ptr    Create3DView();
00061     virtual View_ptr      GetCurrentView();
00062     virtual TableView_ptr CreateTableView(VISU::Table_ptr theTable);
00063     virtual XYPlot_ptr    CreateXYPlot();
00064     virtual void          Destroy(View_ptr theView);
00065 
00066   protected:
00067     SalomeApp_Application *myApplication;
00068   };
00069 
00070   vtkRenderer*     GetRenderer   (SUIT_ViewWindow* theViewWindow);
00071   vtkCamera*       GetCamera     (SUIT_ViewWindow* theViewWindow);
00072 
00073   void RepaintView (SUIT_ViewWindow* theViewWindow);
00074 
00075   enum Displaing {eDisplayAll, eDisplay, eDisplayOnly, eErase, eEraseAll, eUpdateData};
00076   VISU_I_EXPORT VISU_Actor* UpdateViewer (SUIT_ViewWindow* theViewWindow, int theDisplaing, Prs3d_i* thePrs = NULL);
00077   void UpdatePlot2d (Curve_i* theCurve, int theDisplaying, Plot2d_ViewFrame* theView = NULL);
00078 
00079   VISU_I_EXPORT VISU_Actor* FindActor(SVTK_ViewWindow* theViewWindow, VISU::Prs3d_i* thePrs3d);
00080   VISU_I_EXPORT VISU_ActorBase* FindActorBase(SVTK_ViewWindow* theViewWindow, VISU::TActorFactory* theActor);
00081 
00082   void DeleteActors (VISU::Prs3d_i* thePrs);
00083   void DeleteActors (VISU::Curve_i* thePrs);
00084 }
00085 
00086 #endif
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS