Hi MITK users, I just discovered QmitkLevelWindowWidgetClass. I would like to use this class to create a new view that shows sliders for Contrast and Brightness adjustment. Is there any example code for this class?
Sincerely, Joe Giacomini -----Original Message----- From: [email protected] [mailto:[email protected]] Sent: Thursday, June 16, 2011 3:35 PM To: [email protected] Subject: mitk-users Digest, Vol 61, Issue 10 Send mitk-users mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/mitk-users or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of mitk-users digest..." Today's Topics: 1. Re: Question about Architecture - MVC stuff (Matt Clarkson) 2. Superbuild (linux) Ext App Seg Fault (David Guthrie) 3. Re: Superbuild (linux) Ext App Seg Fault (David Guthrie) 4. Re: Superbuild (linux) Ext App Seg Fault (Sascha Zelzer) 5. Cannot compile latest MITK with VS 2010 64-bit (Klaus Drechsler) 6. Re: Cannot compile latest MITK with VS 2010 64-bit (Sascha Zelzer) 7. Re: ITK now uses the CTK Plugin Framework (Sascha Zelzer) ---------------------------------------------------------------------- Message: 1 Date: Tue, 14 Jun 2011 15:57:00 +0100 (BST) From: Matt Clarkson <[email protected]> Subject: Re: [mitk-users] Question about Architecture - MVC stuff To: [email protected] Message-ID: <13389461.115676.1308063420563.JavaMail.root@shyrka> Content-Type: text/plain; charset=utf-8 Hi Sascha, thanks as always for your advice. Matt ------------------------------ Message: 2 Date: Wed, 15 Jun 2011 12:25:47 -0400 From: David Guthrie <[email protected]> Subject: [mitk-users] Superbuild (linux) Ext App Seg Fault To: [email protected] Message-ID: <[email protected]> Content-Type: text/plain; charset=us-ascii I ran the MITK superbuild on linux (Centos 5 latest). I ran it prior to the CTK integration and everything went fine, but now when I run the ExtApp it segfaults. The org.mitk.gui.qt.extapplication plugin does not appear to be building correctly. It has no META-INF dir and it says it must be in state INSTALLED in order to load. I copied in the plugins.xml and the manifest.mf from the source tree so that the bundle would load, but it says it can't load MitkExtQtHelpCollection.qhc. It actually put a long version string after the name, but that file didn't exist in the resources directory of the bundle, so I change it so it would not append that long string after name, but it still it couldn't find it. After that it crashes in berryWorkbench.cpp in NewWorkbenchWindow(). It looks up the WorkbenchTweaklet::KEY, which seems to exist in the Tweaklets, but the dynamic cast to a WorkbenchTweaklet fails, making it return NULL, which then results in a de-reference of NULL and a segfault. Any ideas? --- David Guthrie [email protected] Alion Science and Technology BMH Operation - A CMMI Maturity Level 3 Organization 5365 Robin Hood Road, Suite 100 Norfolk, VA 23513-2416 (757) 857-5670, ext 269, Fax (757) 857-6781 ------------------------------ Message: 3 Date: Wed, 15 Jun 2011 16:31:44 -0400 From: David Guthrie <[email protected]> Subject: Re: [mitk-users] Superbuild (linux) Ext App Seg Fault To: David Guthrie <[email protected]> Cc: [email protected] Message-ID: <[email protected]> Content-Type: text/plain; charset=us-ascii After further investigation, the problem has nothing to do with the plugins, but that essentially all dynamic casts are returning 0. It must be some sort of build option, and I can't believe no one else would be seeing this. --- David Guthrie [email protected] Alion Science and Technology BMH Operation - A CMMI Maturity Level 3 Organization 5365 Robin Hood Road, Suite 100 Norfolk, VA 23513-2416 (757) 857-5670, ext 269, Fax (757) 857-6781 On Jun 15, 2011, at 12:25 PM, David Guthrie wrote: > I ran the MITK superbuild on linux (Centos 5 latest). I ran it prior to the CTK integration and everything went fine, but now when I run the ExtApp it segfaults. > > The org.mitk.gui.qt.extapplication plugin does not appear to be building correctly. It has no META-INF dir and it says it must be in state INSTALLED in order to load. > > I copied in the plugins.xml and the manifest.mf from the source tree so that the bundle would load, but it says it can't load MitkExtQtHelpCollection.qhc. It actually put a long version string after the name, but that file didn't exist in the resources directory of the bundle, so I change it so it would not append that long string after name, but it still it couldn't find it. > > After that it crashes in berryWorkbench.cpp in NewWorkbenchWindow(). It looks up the WorkbenchTweaklet::KEY, which seems to exist in the Tweaklets, but the dynamic cast to a WorkbenchTweaklet fails, making it return NULL, which then results in a de-reference of NULL and a segfault. > > Any ideas? > ------------------------------ Message: 4 Date: Thu, 16 Jun 2011 08:51:58 +0200 From: Sascha Zelzer <[email protected]> Subject: Re: [mitk-users] Superbuild (linux) Ext App Seg Fault To: David Guthrie <[email protected]> Cc: "[email protected]" <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi David, thank you for the bug report and your investigations. We are currently working on that problem. It actually occurs only on systems with gcc < 4.5 and hence we did not catch it early enough. Thanks, Sascha On 06/15/2011 10:31 PM, David Guthrie wrote: > After further investigation, the problem has nothing to do with the plugins, but that essentially all dynamic casts are returning 0. It must be some sort of build option, and I can't believe no one else would be seeing this. > > --- > David Guthrie > [email protected] > Alion Science and Technology > BMH Operation - A CMMI Maturity Level 3 Organization > 5365 Robin Hood Road, Suite 100 > Norfolk, VA 23513-2416 > (757) 857-5670, ext 269, Fax (757) 857-6781 > > > On Jun 15, 2011, at 12:25 PM, David Guthrie wrote: > >> I ran the MITK superbuild on linux (Centos 5 latest). I ran it prior to the CTK integration and everything went fine, but now when I run the ExtApp it segfaults. >> >> The org.mitk.gui.qt.extapplication plugin does not appear to be building correctly. It has no META-INF dir and it says it must be in state INSTALLED in order to load. >> >> I copied in the plugins.xml and the manifest.mf from the source tree so that the bundle would load, but it says it can't load MitkExtQtHelpCollection.qhc. It actually put a long version string after the name, but that file didn't exist in the resources directory of the bundle, so I change it so it would not append that long string after name, but it still it couldn't find it. >> >> After that it crashes in berryWorkbench.cpp in NewWorkbenchWindow(). It looks up the WorkbenchTweaklet::KEY, which seems to exist in the Tweaklets, but the dynamic cast to a WorkbenchTweaklet fails, making it return NULL, which then results in a de-reference of NULL and a segfault. >> >> Any ideas? >> > > ---------------------------------------------------------------------------- -- > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > mitk-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mitk-users ------------------------------ Message: 5 Date: Thu, 16 Jun 2011 14:44:49 +0200 From: "Klaus Drechsler" <[email protected]> Subject: [mitk-users] Cannot compile latest MITK with VS 2010 64-bit To: [email protected] Message-ID: <[email protected]> Content-Type: text/plain; charset="utf-8" Hi, I pulled the latest changes from the GIT repository today (commit hash: 6a34852b6a79c496b79152ae01180aa920c1998f). Then I used cmake to configure a fresh build. Basically I just unselected to build the tutorials and left all other options as they are. So it is a "superbuild" ... During compilation I get a lot of errors, some of them CTK related. I wonder if someone successfully build the latest CTK-based MITK with Visual Studio 2010 as 64-bit application? And what is the latest Non-CTK GIT revision? Best wishes Klaus -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 6 Date: Thu, 16 Jun 2011 14:53:12 +0200 From: Sascha Zelzer <[email protected]> Subject: Re: [mitk-users] Cannot compile latest MITK with VS 2010 64-bit To: Klaus Drechsler <[email protected]> Cc: "[email protected]" <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset="utf-8" Hi Klaus, MITK does not officially support VS2010 yet. So you might be out of luck with a pre-CTK checkout too. Here would be a hash value you could try: 75dfd168462786b4002411d1957afc170bf39985 Note that you need to build Qt yourself with VS2010, if you are going to use Qt-specific code of MITK. Best, Sascha On 06/16/2011 02:44 PM, Klaus Drechsler wrote: > Hi, > > I pulled the latest changes from the GIT repository today (commit > hash: 6a34852b6a79c496b79152ae01180aa920c1998f). > Then I used cmake to configure a fresh build. Basically I just > unselected to build the tutorials and left all other options as they > are. So it is a "superbuild" ... > > During compilation I get a lot of errors, some of them CTK related. > > I wonder if someone successfully build the latest CTK-based MITK with > Visual Studio 2010 as 64-bit application? > > And what is the latest Non-CTK GIT revision? > > Best wishes > Klaus > > -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 7 Date: Fri, 17 Jun 2011 00:34:37 +0200 From: Sascha Zelzer <[email protected]> Subject: Re: [mitk-users] ITK now uses the CTK Plugin Framework To: Matt Clarkson <[email protected]> Cc: "[email protected]" <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset=UTF-8; format=flowed Hi, the issues with dynamic_cast and the segmentation plugin have been resolved. To get the latest fixes, please update your MITK git clone and issue a build command at the superbuild level (or make sure that you also update and build your CTK sources). For those interested in the technical details, please read bug #8481 at http://bugs.mitk.org/show_bug.cgi?id=8481 and the comments in the CTK commits: https://github.com/commontk/CTK/commit/76dcb40ef8eb6124a0e3242f5ddae87f1037c b19 (use -fvisibility=hidden for external plugins) https://github.com/commontk/CTK/commit/9d40144ec9fb1dd46d777638e0439656e02fe e90 (make symbols with vague linkage always visible) Thanks for all the bug reports, Sascha On 06/13/2011 06:41 PM, Matt Clarkson wrote: > Hi Sascha, > > following your email below, I did a git clone of the latest MITK, turned the first screen of plugins all on, and did a full SuperBuild on Mac and Centos. > > The good news on Centos is that both CoreApp and ExtApp do now start. So, i believe bug 8481 to do with dynamic casts has been fixed. However, on Centos, running ExtApp and selecting Window->Show View and simply loading the following plugins gives segmentation faults (see attached log files, starting with ExtApp). > > DeformableRegistration > RegionGrowing > RigidRegistration > Segmentation > > Then on my Mac if I run CoreApp, I get 2 different errors: > > If I run with my debugger connected, I get to line berryStarter.cpp line 144, the line that reads: app = runs.front()->CreateExecutableExtension<IApplication> ("class"); > I put a debug line of text before and after this, and the line of text before gets emmitted, and the line of text after doesnt get emmitted. i.e. when I step over this line, the application crashes. I have attached the Mac crash log. > > Thanks for the quick fixes. > > Matt > > ----- "Sascha Zelzer"<[email protected]> wrote: > >> Hi, >> >> this has been fixed recently. Please have a look at >> http://bugs.mitk.org/show_bug.cgi?id=8481 if you are interested in the >> >> technical details. >> >> Best, >> Sascha >> >> On 06/10/2011 11:56 AM, Sascha Zelzer wrote: >>> Hi, >>> >>> Thanks again for the debugging. We are having the same issue on one >> of >>> our Mac machines and a Ubuntu 10.04 machine and are currently >> working on >>> a solution. I hope to be able to fix it today. >>> >>> Best, >>> Sascha >>> >>> On 06/07/2011 07:17 PM, Matt Clarkson wrote: >>>> Hi Sascha, >>>> >>>> I removed $HOME/.ExtApp, and that resolved the problem of picking >> up 2 different sets of plugins. >>>> However, the seg-fault is still happening. >>>> >>>> This problem is seen just running the standard MITK ExtApp program >> from a completely clean build of MITK, on both my Centos and Mac >> machines. >>>> As far as I can work out on my Centos machine, it's the "result = >> iter->second.Cast<I>();" in berryTweaklets.h Get method that is >> failing. When the WorkbenchTweaklet is first created, it is entered >> into the map, which is a map of smart pointers to objects. When it is >> used from the map, the Cast operation performs a dynamic cast, and >> this fails. Swapping to a static_cast instead of a dynamic cast >> appears to get past this issue, but there are other problems further >> along the line, where the IPreferencesService appears to not be >> present. >>>> Thats as far as I have got for now. >>>> >>>> Matt ------------------------------ ---------------------------------------------------------------------------- -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ------------------------------ _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users End of mitk-users Digest, Vol 61, Issue 10 ****************************************** ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
