GithubHelp home page GithubHelp logo

ifl-camp / imfusion_demoplugin Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 0.0 13 KB

An tiny example for the implementation of a custom plugin in ImFusionSuite

License: BSD 2-Clause "Simplified" License

CMake 15.49% C++ 84.51%
imfusion

imfusion_demoplugin's Introduction

DemoPlugin for ImFusionSuite

ImFusionSuite provides high-performance visualization and processing for medical data, it is developed by ImFusion GmbH. It also enables to implement custom C++ plugins that make use of the provided SDK.

This repo provides a baseline code for the implementation of a custom plugin.

To build it you require:

  • ImFusionSuite SDK
  • Qt5

It can be easily build using CMake, specifing the ImFusionLib_DIR and Qt5_DIR vabiables, e.g. (from the repository root)

mkdir build && cd build
cmake -DImFusionLib_DIR=<PATH_TO_IMFUSIONLIB_CMAKE> -DQt5_DIR=<PATH_TO_QT5_CMAKE> ..
make

Create your own plugin starting from this one!

You can easily create a new plugin for ImFusionSuite using this one as a starting point. For instance, if you want to create a plugin called MyAmazingPlugin, these are the required steps:

  • Copy the entire repo and change the root folder name to MyAmazingPlugin

  • Rename the folder include/demo_plugin to include/my_amazing_plugin

  • In every .hpp and .cpp file, rename the defined namespace to namespace MyAmazingPlugin

  • In every .cpp file, modify the includes that use demo_plugin/ to my_amazing_plugin/

  • In factory.cpp, modify line 12 to PluginAlgorithmFactory::PluginAlgorithmFactory() { registerAlgorithm<PluginAlgorithm>("MyCategory;My Amazing Plugin"); }

  • In plugin.cpp, modify line 10 to return new ImFusion::MyAmazingPlugin::Plugin;

  • In CMakeLists.txt, modify the project name from demo_plugin to my_amazing_plugin (it has to match the folder name under the include folder)

Contacts

TUM
Chair for Computer Aided Medical Procedures
Technical University of Munich, Germany.

Salvatore Virga : [email protected]

imfusion_demoplugin's People

Contributors

salvovirga avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

imfusion_demoplugin's Issues

Clang error after "make"

Hi!
Thank you for these detailed instructions, however, whilst following this, I have encountered an error that says:

clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libdemo_plugin.dylib] Error 1
make[1]: *** [CMakeFiles/demo_plugin.dir/all] Error 2
make: *** [all] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.