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

ExtendedImageView.py
Extended functionality to ImageView widget

 
Modules
            
Command
EventHandler
PyDVT.ImageViewSelect
Numeric
PyDVT
spslut
sys
types

 
Classes
            
PyDVT.ImageView.ImageView(PyDVT.View.View)
ExtendedImageView

 
class ExtendedImageView(PyDVT.ImageView.ImageView)
      This class implements a widget based on ImageView with extended functionalities.
Uses filters defined in ImageView.
 
Interface:
===========================
ImageView interface
CreateViewSelect
GetViewSelect
ClearViewSelect
SetColormap
SetScale
HistColormapWidget
EventSelection (overridable active view selection callback
                not needed if "SelectionCallback" defined in __init__)
 
  
AddMenuPopupCascade(self, label, menu) from PyDVT.View.View
AddMenuPopupItem(self, label, Command, Style='command') from PyDVT.View.View
AddMenuSeparator(self) from PyDVT.View.View
ClearMenu(self) from PyDVT.View.View
ClearViewSelect(self)
Destroys ViewSelect object created by CreateViewSelect or None.
ClearZoomSelect(self) from PyDVT.ImageView.ImageView
CreateDrawable(self) from PyDVT.ImageView.ImageView
CreateMenu(self)
Can be overwritten by derived classes to create a
different popup menu
CreateViewSelect(self, selection_class, callback=None)
Creates a ViewSelect object and connects it to self.self. If former ViewSelect
exists, it is destroyed
Parameters:
    selection_class: class of the ViewSelect to be created
    callback: Selection event callback
DataChanged(self, source=None)
Virtual: See ImageView.DataChanged
DataCoord2ImageCoord(self, data_coord) from PyDVT.ImageView.ImageView
DeleteMenuItem(self, index) from PyDVT.View.View
Destroy(self, source=None)
Virtual: See ImageView.Destroy
DisableMenuItem(self, index) from PyDVT.View.View
EnableMenuItem(self, index) from PyDVT.View.View
EventButtonPress(self, pos) from PyDVT.View.View
EventButtonPressMotion(self, pos) from PyDVT.View.View
EventButtonRelease(self, pos) from PyDVT.View.View
EventDoubleClick(self, pos) from PyDVT.View.View
EventKeyPress(self, key, flags) from PyDVT.View.View
EventMotion(self, pos) from PyDVT.View.View
EventPosition(self, source)
Overridable: Cursor callback event
             ExtendedImageView threats it if "AddStaus" option set in __init__.                      In this case, if this function is overriden ,derived classes
             should call ExtendedImageView.EventPosition
Parameters:
    source: ImageViewSelect object thar generated the event
EventSelection(self, source)
Overridable: there's two ways of getting the built-in selection events:
             either overriding this method or by adding "SelectionCallback"
             option in __init__.
Parameters:
    source: ImageViewSelect object thar generated the event
GetColormapFilter(self) from PyDVT.ImageView.ImageView
GetDataPositionValue(self, data_pos) from PyDVT.ImageView.ImageView
GetDrawable(self) from PyDVT.View.View
GetDrawableHeight(self) from PyDVT.View.View
GetDrawableWidth(self) from PyDVT.View.View
GetHeight(self) from PyDVT.GUIBinding.Binding.Container
GetImagePositionValue(self, image_pos) from PyDVT.ImageView.ImageView
GetPopupMenu(self) from PyDVT.View.View
GetPosition(self, event) from PyDVT.ImageView.ImageView
GetSaveFormats(self) from PyDVT.ImageView.ImageView
GetSource(self) from PyDVT.View.View
GetViewSelect(self)
Returns ViewSelect object created by CreateViewSelect or None.
GetWidth(self) from PyDVT.GUIBinding.Binding.Container
HistColormapWidget(self)
Creates a dialog with the histogram of the image on which
it can be selected the limits of colormap transformation.
ImageCoord2DataCoord(self, view_coord) from PyDVT.View.View
Invalidate(self) from PyDVT.View.View
IsVisible(self) from PyDVT.GUIBinding.Binding.Container
LockPosition(self, value) from PyDVT.View.View
Redraw(self) from PyDVT.ImageView.ImageView
Refresh(self) from PyDVT.View.View
Save(self, filename, format) from PyDVT.View.View
SetColormap(self, colormap)
Changes colormap of its ColormapFilter
Parameters:
    colormap: "GrayScale","Temperature","Red","Green","Blue" or "RevGrey"
SetCursor(self, cursor) from PyDVT.View.View
SetCursorType(self, cursortype) from PyDVT.ImageView.ImageView
SetOnLine(self, value) from PyDVT.View.View
SetPointer(self, pointer) from PyDVT.GUIBinding.Binding.Container
SetScale(self, scale)
Changes scale of its ColormapFilter
Parameters:
    scale: "Linear", "Logarithmic", "Gamma"
SetSize(self, width, height) from PyDVT.GUIBinding.Binding.Container
SetSource(self, source=()) from PyDVT.View.View
SetZoom(self, val=None, rect=None, com=None) from PyDVT.ImageView.ImageView
Show(self) from PyDVT.GUIBinding.Binding.Container
Update(self) from PyDVT.View.View
ViewCoord2DataCoord(self, view_coord) from PyDVT.ImageView.ImageView
ZoomTo(self)
_ButtonPress(self, event) from PyDVT.View.View
_ButtonPressMotion(self, event) from PyDVT.View.View
_ButtonRelease(self, event) from PyDVT.View.View
_ClearSel(self)
_CmdLockPosition(self) from PyDVT.View.View
_CmdOnLine(self) from PyDVT.View.View
_DataChanged(self, source=None) from PyDVT.View.View
_DataDeleted(self, source=None) from PyDVT.View.View
_DoubleClick(self, event) from PyDVT.View.View
_EventHistSelection(self, source)
_EventZoomSelection(self, source)
_KeyPress(self, key, flags=None) from PyDVT.View.View
_MenuColormap(self)
_Motion(self, event) from PyDVT.View.View
_RightButtonPress(self, event) from PyDVT.View.View
_SetReduc(self, reduc=1, fastreduc=0)
__init__(self, parent=None, pars={}, **kw)
See ImageView.__init__
Parameters:
  parent: Parent window
  pars:   Dictionary with View initialization options
          New options defined by this class (in addiction to base class options):
           "AddSelection": Adds default image view selections in popup menu
                           Default: 1
           "AddStatus": Adds status bar to the view to display mouse position
                        Default: 1
           "AddColormap": Adds colormap editor entry in popup menu
                          Default: 1
           "UseColormapWidget": If 1 uses changes colormap with ColormapEditorWidget
                                instead of Menu and Histogram dialog
                                Default: 1                   
           "AddReduc": Adds reduction entry in popup menu
                             Default: 0
           "AddCursorSelect": Adds cursor type selection in popup menu 
                         Default: 0
           "SelectionCallback": If "AddSelection" selected, gives a callback function
                         for the active ViewSelect object's Selection events.
                         Default: None
           "UseImageValues": This option changes the way the pixel value given in the
                             status bar is retrieved.
                             By default position events retrieve pixel values from data
                             object itself, by working with data coordinates.
                             This is done so multiple view can work based on the same
                             coordinates, and to save memory, since this option
                             forces "StoreImageData" option in ImageView.
                             In the case operations/filters have changed the displayed
                             data, it is possible to display the result value in the status
                             bar by setting this option to 1. In this case the view object
                             stores the "data" object from it's selection, and searches
                             for the pixel value based on image coordinates (see
                             DemoOperator.py).
                             If this option is set, values are only available if source
                             has "data" (it doesn'r work for such filters as ImageFilter,
                             that just has "image" key).
                         Default: 0
  kw:     keywords to Container initializatregisterion

 
Author
             Alexandre Gobbo (gobbo@esrf.fr)