#!/usr/bin/python
##################
# setBGImage.py
#
# Copyright David Baddeley, 2011
# d.baddeley@auckland.ac.nz
# 
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
##################

def Plug(VisFr):
    pass

#vp.view.showTracks = False
#vp.view.showPoints = False
#class fakeVp:
#    pass
#
#fvp = fakeVp()
#fvp.do = vp.do
#class fakeVp:
#    def update(self, ev=None):
#        glCanvas.setBackgroundImage((255*vp.do.Gains[0]*(vp.do.ds[:,:,vp.do.zp] - vp.do.Offs[0])).astype('uint8'))
#
#fvp = fakeVp()
#fvp.do = vp.do
#fvp.update()
#from PYME.DSView.Modules import playback
#
#from PYME.DSView.modules import playback
#pplay = playback.PlayPanel(MainWindow, fvp)
#import wx.lib.agw.aui as aui
#pinfo1 = aui.AuiPaneInfo().Name("plPanel").Top().Caption('Playback').DestroyOnClose(True).CloseButton(False)
#pinfo1 = aui.AuiPaneInfo().Name("plPanel").Bottom().Caption('Playback').DestroyOnClose(True).CloseButton(False)
#MainWindow._mgr.AddPane(pplay, pinfo1)
#
#MainWindow._mgr.Update()
#
#class fakeVp:
#    def __init__(self, do):
#        self.do = do
#
#class fakeVp:
#    def __init__(self, do):
#        self.do = do
#    def update(self, ev=None):
#        glCanvas.setBackgroundImage((255*self.do.Gains[0]*(self.do.ds[:,:,self.do.zp] - self.do.Offs[0])).astype('uint8'))
#
#fvp = fakeVp(vp.do)
#fvp.update()
#fvp.update()
#class fakeVp:
#    def __init__(self, do):
#        self.do = do
#    def update(self, ev=None):
#        glCanvas.setBackgroundImage((255*self.do.Gains[0]*(self.do.ds[:,:,self.do.zp] - self.do.Offs[0])).astype('uint8'))
#        glCanvas.Refresh()
#
#fvp = fakeVp(vp.do)
#fvp.update()
#pplay.vp = fvp

