SofaHAPI

Representative image of the SofaHAPI plugin
representative image of the plugin


Introduction

This page explains how to customize the empty plugin. Once you have read this page, you can replace it with the documentation of your plugin.
To customize the template, you can:
  1. Copy the SofaHAPI directory and rename it, for example, MyPlugin
  2. Open a command line tool in the MyPlugin directory and use the script utils/changeClassName.sh  to replace SofaHAPI with MyPlugin in all the file names and their content:
    utils/changeClassName.sh SofaHAPI MyPlugin
    cd examples
    ../utils/changeClassName.sh SofaHAPI MyPlugin
    cd ../doc/
    ../utils/changeClassName.sh SofaHAPI MyPlugin

  3. At this point, you may want to add the plugin directory to svn. You can also reload this page, since its content was changed by the last command.
  4. Finally, you can generate the (almost empty) code documentation using in the same command line tool:
    doxygen Doxyfile
  5. To insert the plugin in the SOFA development project, you can:
    1. add the following line to your sofa-local.prf
      DEFINES += SOFA_HAVE_PLUGIN_SofaHAPI
    2. add the following line to Sofa.pro
      contains(DEFINES, SOFA_HAVE_PLUGIN_SofaHAPI) { usePlugin(SofaHAPI) }
    3. if your plugin depends on other plugins, edit file SofaHAPI-dependencies.prf . See sofa-dependencies.prf for examples of how dependencies are defined.

Examples

Currently there is only one example:

Project structure


Intellectual property and rights

Authors
You
Contact
You@your.institute
License
Your can distribute this plugin under the same license as the core of SOFA, or any other license of your choice.
Patents

APP registration

Sponsors
Do not forget to thank your sponsors, they love it !


HowTo

Code documentation

can be generated using doxygen. In Unix systems, simply type doxygen Doxyfile in the doc directory.

LaTeX formulas

can be directly copy-pasted from .tex to this html document thanks to the mathjax config and script included in the header. Equation numbering and cross-referencing works, as well a newcommand.