Salome HOME
Merge remote-tracking branch 'origin/rnv/vtk_opengl2_backend' into V8_1_BR
[modules/gui.git] / tools / CurvePlot / src / python / views / View.py
1 class View(object) :
2
3     def __init__( self, controller, model=None ) :
4         """Constructor"""
5         
6         self._model = model
7         self._controller = controller
8         pass
9
10     def getModel( self ) :
11         """
12         :returns: Model -- The view's model. 
13         """
14         return self._model
15
16     def setModel( self, model ) :
17         """
18         Associates a model to the view.
19         
20         :param model: Model -- The model to be associated.
21         
22         """
23         self._model = model
24         pass
25     
26     def getController( self ) :
27         """
28         :returns: Controller -- The controller of the view.
29         """
30         return self._controller
31     
32     def setController( self, controller ) :
33         """
34         Associates a controller to the view.
35         
36         :param controller: Controller -- The controller to be associated.
37         
38         """
39         self._controller = controller
40         pass
41     
42     def update( self) :
43         """
44         Updates the view contents.
45         
46         .. note::
47         
48            Virtual Method.
49            
50         """
51         raise NotImplementedError
52
53 pass