Skip to content

Commit a0d80b9

Browse files
committed
Merge pull request #1091 from UV-CDAT/vcs2d_interactions_updated
Vcs2d interactions updated
2 parents cad2b89 + ee50b40 commit a0d80b9

80 files changed

Lines changed: 9736 additions & 4206 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,3 @@ sources/
6060
version
6161
/.hooks-config
6262
/.idea
63-

Packages/DV3D/Application.py

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -17,74 +17,74 @@ def getPlotFromVar( var, **args ):
1717
return plot
1818

1919
class DV3DApp:
20-
20+
2121
def __init__( self, canvas, cell_coordinates=None, **args ):
2222
self.plot = None
2323
self.canvas = canvas
2424
self.cell_coordinates = cell_coordinates
25-
26-
25+
26+
2727
# def init(self, **args ):
2828
# var= None
2929
# init_args = args.get( 'init', None )
3030
# if init_args:
3131
# ( grid_file, data_file, interface, varnames, grd_coords, var_proc_op, ROI, subSpace ) = init_args
32-
# df = cdms2.open( data_file )
32+
# df = cdms2.open( data_file )
3333
# var = df[ varnames[0] ]
3434
# else:
3535
# print>>sys.stderr, "Error, this method requires an init_args argument"
36-
#
36+
#
3737
# if id(var) <> id(None):
3838
# self.plot = getPlotFromVar( var, **args )
39-
# self.plot.init( **args )
39+
# self.plot.init( **args )
4040

4141
def update( self, tmpl ):
4242
if self.plot <> None:
43-
self.plot.updateModule()
44-
43+
self.plot.updateModule()
44+
4545
def onClosing(self, cell ):
4646
if self.plot <> None:
4747
self.plot.onClosing( cell )
48-
48+
4949
def applyAction( self, action ):
5050
if self.plot <> None:
5151
self.plot.applyAction( action )
52-
52+
5353
def setAnimationStepper( self, stepper ):
5454
self.plot.setAnimationStepper( stepper )
5555

5656
def gminit(self, var1, var2, **args ):
5757
grid_metadata = var1.getGrid()
5858
plot_type = args.get( 'plot_type', PlotType.getPointsLayout( grid_metadata ) )
5959
args[ 'cell_coordinates' ] = self.cell_coordinates
60-
60+
6161
if plot_type == PlotType.Grid:
6262
if self.plot == None:
63-
self.plot = RectGridPlot(**args)
63+
self.plot = RectGridPlot(**args)
6464
self.plot.gminit( var1, var2, **args )
6565
self.plot.ParameterValueChanged.connect(self.canvas.processParameterChange)
6666
else:
67-
self.plot.updateModule()
67+
self.plot.updateModule()
6868
else:
6969
if self.plot == None:
70-
self.plot = CPCPlot(**args)
71-
self.plot.gminit( var1, var2, **args )
70+
self.plot = CPCPlot(**args)
71+
self.plot.gminit( var1, var2, **args )
7272
self.plot.ParameterValueChanged.connect(self.canvas.processParameterChange)
7373
else:
74-
self.plot.updateModule()
74+
self.plot.updateModule()
75+
7576

76-
7777
def getRenderWindow(self):
78-
return self.plot.renderWindow
79-
80-
# def onKeyEvent( self, eventArgs ):
81-
# return self.plot.onKeyEvent( eventArgs )
82-
83-
def terminate( self ):
84-
return self.plot.terminate( )
85-
86-
def start(self):
87-
iren = self.plot.renderWindow.GetInteractor()
78+
return self.plot.renderWindow
79+
80+
# def onKeyEvent( self, eventArgs ):
81+
# return self.plot.onKeyEvent( eventArgs )
82+
83+
def terminate( self ):
84+
return self.plot.terminate( )
85+
86+
def start(self):
87+
iren = self.plot.renderWindow.GetInteractor()
8888
iren.Start()
8989

9090
def hideWidgets(self):

0 commit comments

Comments
 (0)