Hi there Miri.

The recent MITK external project template is a good place to start. Having 
myself recently started with MITK, I have done my first few plugins, so if I 
were you I would do something like the following.

1. Take the latest template, exactly as it is, and make it compile, either by 
using the SuperBuild options which recompiles MITK, or using an already 
compiled MITK by pointing the MITK_DIR variable to your existing MITK build 
directory.

2. Check that the make, make install and make package commands work on your 
platform (BUILD, INSTALL and PACKAGE in visual studio if I remember correctly).

3. Rename the main application from AwesomeApp.cpp to the name of your choice, 
and check it all compiles.

4. Start to create your plugin. You can either rename the files from the 
example plugin or copy it, and rename the files.  I find it easy to start with 
the view component, get the controls in roughly the right place, connect the 
signals from your widgets to slots within the view class, and then start 
implementing your functionality.

5. Then the next main question is where to put all your new classes that you 
create for the duration of your project.  I have created two Modules. I have 
one Module for things derived from classes within the Mitk and MitkExt Modules. 
I have even created the same directory structure, to encourage myself to keep 
things to a similar design as the core MITK library. I have another Module for 
things derived from the Qmitk and QmitkExt Modules.  So, you could create two 
new Modules using the example module within the template.

6. Alternatively, you could create Modules based on functionality.  You can see 
this in the core MITK library, as under the Modules folder, there are classes 
specifically for RigidRegistration, DeformableRegistration etc.

7. Once you have an example module, and an example plugin of your own, you can 
delete the example ones like MyAwesomeLib and my.awesomeproject.exampleplugin, 
and tweak the CMakeLists.txt.

8. After that, you should focus on creating good classes within Modules, and 
simply use Plugins to bring them all together, in wonderful new and exciting 
applications.

9. I'm sure other people have other useful suggestions too.

Hope that helps.

Matt

------------------------------------------------------
Matt Clarkson Ph.D.
CMIC Software Manager
Senior Research Associate
[email protected]<mailto:[email protected]>

Centre For Medical Image Computing
http://cmic.cs.ucl.ac.uk/staff/matt_clarkson/<http://cmic.cs.ucl.ac.uk/>
Tel: 020 7679 0221
Fax: 020 7679 0255

Dementia Research Centre
http://dementia.ion.ucl.ac.uk/
Tel: 08451 555 000 ext. 723653
Fax: 020 7676 2066
------------------------------------------------------


On 31 Jul 2011, at 13:29, Miri Trope wrote:

Hi All,

I've learned by the tutorial's step, playing with CTK in order to add my 
plug-in.
What is the preferred way to add my plug-in with CTK template?
In MITK_ProjectTemplate tree there are some directories which I found useful:

- AwesomeApp.cpp
- AwesomeImageFlter.cpp
- mitkPluginActivator.cpp
- QmitkAwesomeView.cpp
- QmitkAwesomeViewControls.ui

I'm wondering if and how should I start to change those files (or there are 
another ?) in order to implement my filters.

Any help/information would be very appreciated !
Cheers,
Miri
------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to