Build your own Property
This guide will walk you through the creation of a new property.
Necessary files and changes
Similar to the “Build your own Processor” guide, we recommend using Inviwo-meta to create the necessary files for a property. The following describes the necessary files and changes:
- Create source and header files in
- Register the property in its module. Open the
<module-dir>/src/<module-name>module.cppand add the following line to its constructor:
- Add the new property’s header and source to the modules
Inviwo-meta does currently not have a special argument to create properties. That means you need to use the standard file creation default arguments. This will create the header and source and will add them to CMake. You will need to register the property in the module manually.