On Thu, 2008-11-06 at 18:44 +0100, Daniel Maleike wrote:
> On Thu, 2008-11-06 at 17:37 +0100, Marius Erdt wrote:
> > Hello MITK-team and users,
> > 
> > one of our students wrote a paintbrush tool as an extension to the 
> > Interactive Segmentation functionality of MITK. Maybe you are interested 
> > in including it into MITK or use it as a basis for an own extension.
> 
> Great, thanks! This is really welcomed!

Dear Marius (and MITK-community),

the patch is now integrated in MITK (with revision 15668). Unfortunately, you
will not recognize much of it, because I changed most of it -- I think only the
class structure remained. The detailed changes are listed below. I guess, these 
changes make the overall source code more maintainable.

Best regards
Daniel


List of changes:

Classes were renamed to include the word "Paintbrush". There is now
"mitk::PaintbrushTool" with all the functionality and
"mitk::DrawPaintbrushTool" and "mitk::ErasePaintbrushTool", which only set the
drawing "color" of PaintbrushTool.

Method names such as "SetRadiusValueChanged" were changed to either "Set..." or
"...Changed" to more clearly express their meaning.

Code in mitk::CircleTool::OnMousePressed() and mitk::CircleTool::OnMouseMoved()
was (nearly?) identical, at least one could be replaced by the other without
loss of function. This is bad for maintenance, should be moved into a function. 
Was not needed anymore after my changes.

Instead of calculating a circle each time the mouse moves, I calculate the
pen's contour with the first "mouse button down" event and reuse this contour
later.

There was no possibility to create a 1-pixel small pen. This is now possible.

The GUI elements (slider to adjust pen's radius) were removed from
QmitkInteractiveSegmentation (the functionality) and rewritten as subclasses of
QmitkToolGUI. These subclasses are used automatically and only when one of the
pen drawing tools becomes active.

A new issue went into our bug tracker: the pen's contour is only shown after
the mouse is pressed. Instead of this, the contour should ALWAYS be shown, so
that the user knows, where and what exact pixels (s)he will paint.

Icons of the Add/Subtract-Tools were changed to better distinguish them from
the pen tools.




-- 
Dipl.-Inform. Med. Daniel Maleike          Phone: +49 6221 42 2326
Deutsches Krebsforschungszentrum           Im Neuenheimer Feld 280
Medical and Biological Informatics (E130)         69120 Heidelberg


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to