Page MenuHomePhabricator

CMD Plugin does not support MiniApp
Closed, ResolvedPublic

Description

This bug is to document the trail to include MiniApps into the regular CTK CMD Plugin.

We tried to make MiniApps "parseable" using different strategies:

Implementation of a two layer approach,

  • registering a MiniApp and parsing for submodules
  • resitering submoldules as executables

This approach did not work because the xml output is cached,
and the cache object uses a default xml parser that cannot be adapted,
so parsing it the second time allways failed.

Deactivating the cache (by always returning -1 as time steps),
would make it parsable and the correctly showed all mini apps ind the plugin.

The next problem arises when executing a mini app,
the problem is that the Sub-App needs to be the first argument after the executable, but this is not possible to inject into the CTK launcher (as is uses a hash table, and the forst arguement cannot be guaranteed to be the Sub-App).

Re-implementing the argument parsing on Backend-level (the parsing in CTK is private (PIMPL) ) would allow this, but at this point we already arrived at a notable number of changes and "un-nice" changes that we decided to stop here, and look for another option.

Current Plan is to, get rid of the MiniApp-way of grouping together these executables and creating single executables. Thereby using the Plugin in its original form.
Consequences of creating a variety of different executables still have to be discussed.

Related Objects

StatusAssignedTask
ResolvedNone
ResolvedNone

Event Timeline

User webechr has pushed new remote branch:

bug-18222-SingleCommandLines

[3f0568]: Merge branch 'bug-18222-SingleCommandLines'

Merged commits:

2014-11-26 18:22:00 Christian Weber [0f6dea]
add missing dependency to load ctk gui building capabilities


2014-11-26 17:37:18 Christian Weber [02412b]
documentation changes


2014-11-26 16:03:11 Christian Weber [9f5496]
Merge branch 'bug-18239-ActivateCMDPlugin' into bug-18222-SingleCommandLines


2014-11-26 15:24:34 Christian Weber [749dc3]
change cpp files arguments,
handle non existing files.cmake


2014-11-19 19:19:10 Christian Weber [2851b9]
all mini apps compile,
extended xml generator for InputImages


2014-11-19 15:46:14 Christian Weber [5413c2]
Changed CMAKE create_mitk_executable to allow for cpp files inclusion


2014-11-17 19:43:10 Christian Weber [40bc5f]
Prepare single command lines structure
rename ctkCmd too mitkCmd
WIP added some mini apps


2014-10-09 13:30:53 Christian Weber [b2c5fc]
Merge branch 'bug-18239-ActiaveCMDPlugin' into bug-18239-ActivateCMDPlugin


2014-10-08 17:22:30 Christian Weber [bfbceb]
activate cmd module plugin