Trees | Index | Help |
---|
Module gwy :: Class Selection |
|
Selection
struct describes an abstract
selection as a collection of coordinates. It should not be accessed
directly except selection class implementation.
Method Summary | |
---|---|
Emits "changed" signal on a selection. | |
Clears a selection. | |
Deletes a one selection object. | |
Emits "finished" signal on a selection. | |
Return list of selected points. | |
Gets the maximum number of selected objects. | |
Gets one selection object. | |
Gets the number of coordinates that make up a one selection object. | |
Checks whether the maximum number of objects is selected. | |
Sets selection data. | |
Sets the maximum number of objects allowed to select. | |
Sets one selection object. |
Method Details |
---|
changed(i)Emits "changed" signal on a selection.
|
clear()Clears a selection. |
delete_object(i)Deletes a one selection object. Since there cannot be holes in the object list, the rest of selection objects is moved to close the gap.
|
finished()Emits "finished" signal on a selection. |
get_data()Return list of selected points.
|
get_max_objects()Gets the maximum number of selected objects.
|
get_object(i, data)Gets one selection object.
|
get_object_size()Gets the number of coordinates that make up a one selection object.
|
is_full()Checks whether the maximum number of objects is selected.
|
set_data(nselected, data)Sets selection data.
|
set_max_objects(max_objects)Sets the maximum number of objects allowed to select. When selection reaches this number of selected objects, it emits "finished" signal.
|
set_object(i, data)Sets one selection object. This method can be also used to append objects (if the maximum number is not exceeded). Since there cannot be holes in the object list,i must be then equal to either the number of
selected objects or special value -1 meaning append to end.
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Tue Dec 30 04:01:42 2008 | http://epydoc.sf.net |