HappyDoc Generated Documentation Class: Markers

. / VolumeViewer / histogram.py / Markers 

Draw a set of movable markers on a canvas. The markers can be moved with the mouse. They can be drawn as vertical lines (line type) or as small boxes (box type). Each marker has a color. Markers can be added or deleted with ctrl-button-1. A callback is invoked with no arguments when user mouse interaction selects, moves, adds or removes a marker.

This was designed for display and control of theshold levels shown on a histogram.

Methods   
  canvas_xy_to_user_xy 
canvas_xy_to_user_xy ( self,  cxy )
  select_marker_cb 
select_marker_cb ( self,  event )
  clamp_canvas_xy 
clamp_canvas_xy ( self,  xy )
  show 
show ( self,  show )
  set_user_x_range 
set_user_x_range (
        self,
        xmin,
        xmax,
        )
  set_canvas_box 
set_canvas_box ( self,  canvas_box )

canvas_box = (xmin, ymin, xmax, ymax) The xmin and xmax values should give the positions corresponding to the values passed to set_user_x_range().

  user_xy_to_canvas_xy 
user_xy_to_canvas_xy ( self,  uxy )
  move_marker_cb 
move_marker_cb ( self,  event )
  update_connections 
update_connections ( self )
  closest_marker_index 
closest_marker_index (
        self,
        x,
        y,
        range,
        )
  selected_marker 
selected_marker ( self )
  update_plot 
update_plot ( self )
  plot_markers 
plot_markers ( self )
  unplot_markers 
unplot_markers ( self )
  set_markers 
set_markers ( self,  markers )
  update_marker_coordinates 
update_marker_coordinates ( self )
  add_or_delete_marker_cb 
add_or_delete_marker_cb ( self,  event )
  __init__ 
__init__ (
        self,
        canvas,
        canvas_box,
        marker_type,
        new_marker_color,
        connect_markers,
        callback,
        )

This document was automatically generated Thu Nov 15 14:09:16 2007 by HappyDoc version 3.0.a1