In addition I should clarify that the mitk files in question are part of 
the coreui bundles like org.mitk.core.services.

For example:
mitkIDataStorageService.h

On 12/20/2010 10:49, Matthias Noll wrote:
> Hello again. I did not receive any responses to my last email I decided
> to try something else.
>
> Since the Diffusion Image reader in the MITK modules folder does
> something similar to which I want to achieve, I decided to build a
> module that includes my readers and registers them. For that I added a
> new folder called modules to my project. Since all include path's should
> be the same for modules as they are for the bundle folder, I added the
> module folder to the projects cmakelist.txt with the cmake
> ADD_SUBDIRECTORY(Modules) command.
> Furthermore I created a plugin with the activator template to activate
> my new module on MITK start. But as I was trying to compile my solution,
> all of my module files can't seem to find the includes of MITK and I
> don't know why. I thought that the ADD_SUBDIRECTORY(Modules) command
> should suffice to inherit the MITK include path information for the
> modules folder. I tried to find some line where the bundle folder
> utilizes an additional command to receive the include path's but I can't
> seem to find one. Can anyone tell me how I pass down the path
> information for MITK to my new modules folder so that I can test whether
> my build is finally working.
>
> /// my module cmakelists.txt
> FIND_PACKAGE(ITK)
>
> MITK_CREATE_MODULE( FileReaderCollection
>       INCLUDE_DIRS volImageIO UAFImageIO JHFImageIO
> ${CMAKE_CURRENT_BINARY_DIR}
>       #DEPENDS MitkExt
>       PACKAGE_DEPENDS ITK
>     )
>
> CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/FileReaderConfigure.h.in
> ${CMAKE_CURRENT_BINARY_DIR}/FileReaderConfigure.h.in)
>
> This is as similar to the DiffusionImaging cmakelists.txt as it can be.
>
> Thank you in advance for any responses.
>
>
> On 11/26/2010 13:07, Matthias Noll wrote:
>> Hi all,
>>
>> since I am porting my old mitk 0.12 functionalities to 0.14 I need to
>> figure out a way how to add my file reader classes. (itk based, not
>> mitkIOAdapter based)
>>
>> In the old verion it just worked like this:
>>
>> Register the factory of my own reader to the ObjectFactoryBase class and
>> it would be ready to read. I did this in the constructor of my
>> functionality.
>>
>> itk::ObjectFactoryBase::RegisterFactory( itk::MyImageIOFactory::New() );
>>
>> If I do the same in the new version of mitk it still seems to register
>> but nothing happens if I load any of my files. Afer some time of
>> debugging I still can't seem to find a solution for this problem.
>>
>> While loading a file the function ObjectFactoryBase::CreateAllInstance()
>> accesses the member ObjectFactoryBase::m_RegisteredFactories where all
>> itk file readers are present e.g. itkPNGImageIO except my newly registered.
>>
>> In addition the dicom file checking in
>> mitkDataNodeFactory::GenerateData() was changed from text based file
>> extension checking to this->ReadFileSeriesTypeDCM(); which effectively
>> is tag based. Since some of the readers I use also have dicom like tags,
>> they are not going to work since those files will always be treated as
>> dicom files making things even more problematic.
>>
>> Maybe somebody on the mailinglist can point me in the right direction
>> how to add/register itk based file readers to mitk.
>>
>> Best regards,
>> Matthias
>>
>> ------------------------------------------------------------------------------
>> Increase Visibility of Your 3D Game App&   Earn a Chance To Win $500!
>> Tap into the largest installed PC base&   get more eyes on your game by
>> optimizing for Intel(R) Graphics Technology. Get started today with the
>> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
>> http://p.sf.net/sfu/intelisp-dev2dev
>> _______________________________________________
>> mitk-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/mitk-users
>
>

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to