Cell_gtk Module

class Cell_gtk.GtkCell(cells, delete_f, export_f, state)[source]

A generic class for handling cell creation (get polygon as successive clicks)

add_point(tup)[source]
begend_evt(evt, slider, begend)[source]

Receives signals from the “Set begin frame” and “Set end frame” buttons and forward them to : 1. The slider 2. The cell object

click(tup)[source]

Function that receive a click from the viewer. This function returns True if the click lies inside the cell (core or reference polygon) In theory, the coordinates already have been converted

close()[source]

Function that close the polygon and create a new cell instance instead

delete()[source]
delete_cell_evt(evt)[source]

Function calling a forwarded function from Cells.gtk

dist(p1, p2)[source]
draw_polygon(im)[source]

Draw the polygon on the image :param im: the image to draw on. :param type: a numpy matrix (x*y*3) :returns: numpy matrix – the output image

get_name()[source]

Return the name of the cell

get_panel(rb, rb_none)[source]

Return the panel to manage a cell rb is the radiobutton instance determining which cell is selected

get_selected()[source]
get_type()[source]

Return the cell type (‘pol’ for instance)

init_ref(refsize)[source]
move(tup)[source]

Function called when the cell is selected and the user tries to drag’n’drop it

move_refwcell_evt(evt)[source]
new_cell(name=None)[source]

Function that initialize an empty cell .. warning : You should immediately add a polygon to the cell as it doesn’t like empty timetracks much...

quant_evt(w)[source]

Binding called when clicking on the “Export quantification” button

rb_toggled(active)[source]
refsize_sb_evt(evt)[source]

Function called when the value of the spinbutton “Set reference size” is changed

reset_polygon()[source]
reset_ref_evt(evt)[source]
set_cell(cell)[source]

Set the cell (no gtk) when loading a savefile

set_r_panel(panel)[source]
set_selected(sel)[source]
show_evt(evt)[source]
slider_changed_evt(w, features_gtk)[source]
tiff_evt(w)[source]

Binding called when clicking on the “Export as TIFF series” button Many parameters exist, but they cannot be tuned for the moment This is used as a way to experiment for the quantification export

This function should call a function displaying a progress bar, and call a cell object returning an iterator on the number of frames, such as in: http://stackoverflow.com/questions/496814/progress-bar-not-updating-during-operation or: http://faq.pygtk.org/index.py?req=show&file=faq23.020.htp

unclick()[source]

Function called when the user click is released

class Cell_gtk.GtkRect(cells, state)[source]

Bases: Cell_gtk.GtkCell

A generic class to handle polygons as untilted rectangles

class Cell_gtk.GtkRect_ct(cells, state)[source]

Bases: Cell_gtk.GtkRect

class Cell_gtk.GtkRect_tp(cells, state)[source]

Bases: Cell_gtk.GtkRect

Previous topic

Cell Module

Next topic

Cells Module

This Page