Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
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