Salome HOME
*** empty log message ***
[modules/gui.git] / src / SPlot2d / SPlot2d_ViewModel.h
1 //  File   : SPlot2d_ViewModel.h
2 //  Author : Sergey RUIN
3 //  Module : SUIT
4
5 #ifndef SPlot2d_ViewModel_H
6 #define SPlot2d_ViewModel_H
7
8 #include "SPlot2d.h"  
9
10 #include "SALOME_Prs.h"
11 #include "Plot2d_ViewModel.h"
12 #include "SALOME_InteractiveObject.hxx"
13 #include "Plot2d_ViewFrame.h"
14 #include "Plot2d_ViewWindow.h"
15 #include "SPlot2d_Curve.h"
16
17 class SPLOT2D_EXPORT SPlot2d_Viewer : public Plot2d_Viewer, public SALOME_View
18
19   Q_OBJECT
20
21 public:
22   /* Construction/destruction */
23   SPlot2d_Viewer( bool theAutoDel = false );
24   virtual ~SPlot2d_Viewer();
25
26 public:
27
28   /*  interactive object management */
29   void highlight( const Handle(SALOME_InteractiveObject)& IObject, bool highlight, bool update = true ) {}
30   void unHighlightAll() {}
31   void rename( const Handle(SALOME_InteractiveObject)& IObject, QString newName );
32   bool isInViewer( const Handle(SALOME_InteractiveObject)& IObject );
33   
34   /* display */         
35   void Display( const Handle(SALOME_InteractiveObject)& IObject, bool update = true );
36   void DisplayOnly( const Handle(SALOME_InteractiveObject)& IObject );
37   void Erase( const Handle(SALOME_InteractiveObject)& IObject, bool update = true );
38
39   /* Reimplemented from SALOME_View */
40   void                 Display( const SALOME_Prs2d* );
41   void                 Erase( const SALOME_Prs2d*, const bool = false );
42   virtual void         EraseAll(const bool = false);
43   virtual void         Repaint();
44   virtual SALOME_Prs*  CreatePrs( const char* entry = 0 );
45   virtual void         BeforeDisplay( SALOME_Displayer* d );
46   virtual void         AfterDisplay ( SALOME_Displayer* d );
47   virtual bool         isVisible( const Handle(SALOME_InteractiveObject)& IObject );
48
49
50   /* operations */
51   SPlot2d_Curve*                   getCurveByIO( const Handle(SALOME_InteractiveObject)& theIObject );
52   Plot2d_ViewFrame*                getActiveViewFrame();
53   Handle(SALOME_InteractiveObject) FindIObject( const char* Entry );
54
55 };
56
57
58 #endif // SPlot2d_ViewModel_H
59
60
61
62