Weasis plugin development

79 views
Skip to first unread message

JP

unread,
Dec 12, 2014, 5:38:07 PM12/12/14
to dcm...@googlegroups.com
Hi,

I'm interested in making a plugin tool for Weasis. I've built and run the sample tools without a problem.

I would like to use the core utilities Weasis provides to build my plugin, but I'm having a little difficulty understanding how some of them work.

I'm looking at MeasureTool.java as an example. I would like to make a JToogleButtonGroup. Can someone please explain how it is determined which buttons are included in "measures" ?

Thanks

Nicolas Roduit

unread,
Dec 15, 2014, 2:53:17 AM12/15/14
to dcm...@googlegroups.com
There are defined in the data model of "measureAction" in the class EventManager:
       iniAction(measureAction =
            newMeasurementAction(MeasureToolBar.graphicList.toArray(new Graphic[MeasureToolBar.graphicList.size()])));

JP

unread,
Dec 15, 2014, 6:48:29 PM12/15/14
to dcm...@googlegroups.com
Thanks for pointing me in the right direction. I appreciate the explanation.

I'm looking for a simple way to add a few drawing tools to a new dockable tool. For example, the rectangle tool with a red linecolor. Is there a simple way to do this?

Thank you

Nicolas Roduit

unread,
Dec 16, 2014, 2:06:36 AM12/16/14
to dcm...@googlegroups.com
If you want to add drawing tools to the current measure tool panel (and toolbar), you only need to set the new graphic list to measureAction ( measureAction.setDataList(newList);).

For building a new drawing tools outside the existing one is more difficult. It would be easy to display drawings on new layers (like DICOM Presentation State)  but not to draw interactively.
Reply all
Reply to author
Forward
0 new messages