PyDVT.Transf2DFilter (version 1.1.0, 08/11/2002)
index
/mntdirect/_bliss/users/gobbo/PyDVT/PyDVT/Transf2DFilter.py

Transf2DFilter.py
2D Transformations

 
Modules
            
EventHandler
Numeric

 
Classes
            
PyDVT.Filter.Filter
Transf2DFilter

 
class Transf2DFilter(PyDVT.Filter.Filter)
      Filter derived class, implement flip, transpose and rotate operations
over 2d sources.
Requires the  following keys from it's source (GetOutputmethod):
    "data": 2D NumPy array
    "xdata":(optional) 1d NumPy array with the x values
    "ydata":(optional) 1d NumPy array with the y values
 
If this source is connected to a view with x and y labels, in case of rotation
the labels have to be changed at application level.
Example:
    if my_transf in ('Transpose','Rotate90','Rotate270'):
        my_view.SetLabels(x_label="(y)",y_label="(x)")
    else:
        my_view.SetLabels(x_label="(x)",y_label="(y)")
    my_filter.SetTransformation(my_transf,refresh=1)
 
  
DataChanged(self, par) from PyDVT.Filter.Filter
DataCoord2SelectionCoord(self, data_coord)
Overriden to corret coords convertion acording to the transformation.
Destroy(self, source=None) from PyDVT.Filter.Filter
GetData(self) from PyDVT.Filter.Filter
GetDataSelection(self) from PyDVT.Filter.Filter
GetInput(self) from PyDVT.Filter.Filter
GetOutput(self)
See Filter.GetOutput
GetSource(self) from PyDVT.Filter.Filter
Refresh(self) from PyDVT.Filter.Filter
SelectionCoord2DataCoord(self, selection_coord)
Overriden to corret coords convertion acording to the transformation.
SetSynchronized(self, synchronized) from PyDVT.Filter.Filter
SetTransformation(self, transformation=None, refresh=0)
Sets the 2d transformation
Parameters:
  transformation:
      None or 'Normal': No transformation
      'Transpose'
      'FlipY'
      'FlipX'
      'FlipXY'
      'Rotate90'
      'Rotate180'
      'Rotate270'
    refresh:
      If non-zero, calls raises refresh event (redraws linked windows)
__init__(self, *args, **keys)
Constructor
See Filter.__init__

 
Author
             Alexandre Gobbo (gobbo@esrf.fr)