Tony S Yu
631e97d973
ENH: Add rectangle tool and crop plugin example
2012-12-12 23:59:40 -05:00
Tony S Yu
36bc6da757
STY: Refactors general parts of line tool to base tool
2012-12-12 23:42:15 -05:00
Tony S Yu
cb30c24427
ENH: Add measure tool plugin
2012-12-12 21:46:08 -05:00
Tony S Yu
d06c7bcb34
STY: Rename line_tool module to linetool
2012-12-12 16:01:06 -05:00
Tony S Yu
67aada9adc
ENH: Increase default selection threshold for ease of use
2012-12-12 15:58:10 -05:00
Tony S Yu
ece045790e
STY: Remove reset functionality in line tool
...
Since a line can be draw without selecting handles, the reset functionality doesn't seem necessary.
2012-12-12 15:54:12 -05:00
Tony S Yu
bacc12e00a
ENH: Draw new line when click is far from handle
2012-12-12 15:50:49 -05:00
Tony S Yu
9f70148f08
STY: Minor code clean up
2012-12-12 15:48:45 -05:00
Tony S Yu
16a720770a
STY: Clean up unused blitting-related code
2012-12-12 13:34:53 -05:00
Tony S Yu
866e7d7d60
BUG: Fix blitting behavior
2012-12-12 11:45:02 -05:00
Tony S Yu
15b1ad4929
STY: Remove commented out code
2012-12-10 21:30:25 -05:00
Tony S Yu
0428f821e5
BUG: Fix background update when canvas resized
2012-12-10 21:18:50 -05:00
Tony S Yu
211bba0195
ENH: Default to blitting
...
Since the Qt4 Agg backend is always used, it's always safe to use blitting.
2012-12-09 21:11:06 -05:00
Tony S Yu
588fe29b57
BUG: Allow slider to accept key press events
2012-12-09 20:54:10 -05:00
Tony S Yu
ef2bb54c45
Fix figure canvas creation.
...
Avoid use of matplotlib's pyplot functions for creating figure canvases. In particular, key press events were ignored by the canvas.
2012-12-09 20:51:18 -05:00
Tony S Yu
9d653fec78
BUG: Clean up imports
2012-11-15 23:53:47 -05:00
Tony S Yu
0d411e21dc
STY: Refactor parts of LineTool to CanvasToolBase
2012-11-15 22:04:02 -05:00
Tony S Yu
d219a76f58
BUG: Fix blitting behavior in canvastools
2012-11-15 21:56:51 -05:00
Tony S Yu
5be5813070
STY: Reuse ThickLineTool in LineProfile
2012-11-15 00:16:19 -05:00
Tony S Yu
2ff3e78c52
BUG: Move callback connection to parent class
2012-11-15 00:16:19 -05:00
Tony S Yu
4f6f25efe9
ENH: Add canvastools subpckages with base class and line tools
2012-11-15 00:16:19 -05:00
Andreas Mueller
6c59e04714
MISC remove unused imports, some pep8 corrections.
2012-09-27 20:01:45 +01:00
Tony S Yu
fcf2a9bc97
DOC: Fix doctests in viewer subpackage
...
The doctests in the viewer subpackage weren't originally written as proper doctests.
2012-09-11 23:38:00 -04:00
Tony S Yu
d98a92a603
ENH: Set viewer min-intensity to zero when possible.
...
Some image dtypes allow negative values, but these are typically not used. If an dtype allows negative values, but no negative values are present in the image, set the minimum value to 0 so that the image doesn't look washed out.
2012-09-05 10:12:49 -04:00
Tony S Yu
d1e012ea30
BUG: Initialize QApplication when creating Plugin.
...
QWidgets cannot be initialized unless QApplication has been created. In cases where the Plugin is created before the ImageViewer, ensure that QApplication exists.
2012-09-04 22:07:59 -04:00
Tony S Yu
fe41023370
STY: Refactor initialization of QApplication.
2012-09-04 22:07:25 -04:00
Stefan van der Walt
c47e230847
Merge pull request #289 from tonysyu/qtmpl-collection-viewer
...
ENH: Add CollectionViewer.
2012-09-02 04:39:23 -07:00
Tony S Yu
41ea3ba7fd
Add line profile plugin back in.
...
I saved a copy of the line profile plugin in a branch and then deleted the plugin from the main qtmpl-viewer branch. Unfortunately, I forgot that rebasing off the main branch would erase the plugin. This commit just adds the plugin back.
2012-09-01 15:42:52 -04:00
Tony S Yu
7d858a8ba9
ENH: Add CollectionViewer
2012-09-01 15:31:34 -04:00
Stefan van der Walt
ac41a4b1be
Merge pull request #269 from tonysyu/viewer-fix-doc-and-test
...
BUG: Viewer: fix autodoc and nosetest failures.
2012-08-25 10:44:26 -07:00
Tony S Yu
be33941701
Change error to warning so that autodoc doesn't fail.
2012-08-25 12:11:46 -04:00
Tony S Yu
b14514e018
BUG: Fix nosetest and autodoc errors when PyQt4 not available
...
nose and autodoc imports the viewer modules so all PyQt4 imports must be wrapped in a try-except block. In addition, any classes derived from PyQt4 must be proxied since the class definition are run on import. This is really hacky.
2012-08-25 12:06:03 -04:00
Stefan van der Walt
3c14898fda
Merge pull request #267 from tonysyu/viewer-adapt-dtype
...
BUG: Adjust pixel limits based on image data type.
2012-08-25 07:14:55 -07:00
Tony S Yu
ebf4b44a9e
BUG: Adjust pixel limits based on image data type
2012-08-24 22:44:04 -04:00
Tony S Yu
2c0ff0543c
BUG: Closing ImageViewer shouldn't quit parent program
2012-08-24 22:43:13 -04:00
Tony S Yu
2c84a2135f
Remove custom dtype range
...
Bool support was added in gh-#260
2012-08-24 22:36:20 -04:00
Stefan van der Walt
e6118a5068
BUG: Workaround to unit tests failing if PyQt4 not available.
2012-08-24 06:24:41 -07:00
Tony S Yu
ffe2ebacae
BUG: Update filter when edit-box is changed.
2012-08-22 22:47:54 -04:00
Tony S Yu
cfd0b84a9b
STY: Tweak button sizes.
2012-08-03 23:04:51 -04:00
Tony S Yu
e96aca5637
ENH: Add OK/Cancel buttons
2012-08-03 22:27:05 -04:00
Tony S Yu
398b320477
BUG: reset image when plugin is closed.
2012-08-03 22:21:59 -04:00
Tony S Yu
4ab583ba31
ENH: Add SaveButtons widget.
2012-08-03 21:50:28 -04:00
Tony S Yu
9ac42728c6
DOC: Clean up docstring for Slider
2012-08-03 20:47:42 -04:00
Tony S Yu
54af4176dd
ENH: Add RequiredAttr to raise warnings when attr not set.
2012-08-03 20:45:01 -04:00
Tony S Yu
ce017cc035
ENH: Add Slider value_type to allow int values.
2012-08-01 00:11:48 -04:00
Tony S Yu
3340d0612d
BUG: Fix scaling when setting default slider value.
2012-07-28 14:38:46 -04:00
Tony S Yu
7d533e19a4
DOC: Add explanation of add operator.
2012-07-28 11:43:20 -04:00
Tony S Yu
1000c73ceb
DOC: Explain use of callback parameter.
2012-07-28 11:40:04 -04:00
Tony S Yu
b6045a8d5f
BUG: Fix behavior when initial overlay limits are bad.
...
Intensity limits are calculated by the initial input image. If this image has, for example, all black pixels, then subsequent overlays will remain all black because of the initialized limits. Set limits based on data type to fix this issue.
2012-07-28 00:13:33 -04:00
Tony S Yu
449f3e4cbf
STY: Refactor BaseWidget from Slider and ComboBox
2012-07-27 22:58:20 -04:00