Here is a list of available objects in OsiriX: In your plugin you can call virtually any function of OsiriX. You can can define more than one menu for your plugin (in the ist file). The menuName string contains the menu selected by the user. OsiriX will always use this function to call your plugin. The -(long)filterImage:(NSString*)menuName method is the main function of a plugin. The PluginFilter class is defined in PluginFilter.m, available in the OsiriX headers folder.
Your plugin is a sub-class of PluginFilter. OsiriX will then run once the initPlugin function if available. It will then try to find if the plugin contains a sub-class of PluginFilter having a -(long)filterImage:(NSString*)menuName method. When OsiriX is launched, it will look in the 'plugin' folders for files with the. If you want to use ITK in your plugin, here is a quick help file: ITK plugins Help.txt. Ī small presentation to start writing an OsiriX plugin: Keynote presentation. The basic project will be created automatically. Unzip Osirix Plugin Generator.zip and run the AppleScript.
Ī convenient way to create a new plugin is to use the Plugin Generator from the OsiriX source code folder. You will be able to access the images data, DICOM header data, make an integration of OsiriX in you specific Hospital environment, and much more. The plugins architecture of OsiriX allows you to implements the features that you need. Source Code documentation is generated by Doxygen. Type svn co osirixplugins and hit return To download the plugins distributed with OsiriX: Select & run the 'Development' target to build OsiriX Open the Osirix.xcodeproj (in osirix/ ) and select & run the 'Unzip Binaries' target Open your Terminal application (in /Applications/Utilities/ ) īefore starting anything, make sure that you have the following installed: You will find here a quick step by step to download OsiriX Source Code from SourceForge. Writing a plugin for OsiriX is much easier than developing in IDL or in ImageJ. Xcode is a really powerful development environment, based on the open-source GCC compiler. Other useful resources to learn Cocoa and Objective-C: Īnd the Help menu of Xcode: "Documentation" Programming in Objective-C by Stephen Kochan Learning Cocoa with Objective-C by James Duncan Davidson & Apple, Inc.
Cocoa Programming for Mac OS X by Aaron Hillegass We highly recommend you to read the following books: Cocoa is a powerful and object-oriented framework that will allow you to create any kind of plugin with complex graphic user interface. If you already know Java or C++, you could probably learn Objective-C in less than 2 days. It is much less complex than C++ and much faster than Java. Objective-C is a dynamic and object-oriented language, like Java.
ĭeveloping software on Mac OS X is really easy, great and it's totally free! The complete development environment is available with any Mac! The language you will use to develop an OsiriX plugin is Objective-C. įor global information about the project, contributors, visit the Ohloh Web Site. This Guide was brought to you by the OsiriX development Team and is frequently updated. Build your own ITK library for your plugin