next up previous contents index
Next: Adding Directly to the Up: Processors Previous: Processors   Contents   Index

Using Templates:

Located in the plugin directory of the EMAN2 source (i.e. EMAN2/src/eman2/plugins) are various template files including processor_template.h and processor_template.cpp. These are the files that will be used for new processor installation. Begin by editing processor_template.h.

  1. Change the occurrences of "XYZ" in "XYZProcessor" with the name of the new processor
  2. Edit the string in get_desc() with a brief description of the processor. Place a more detailed descriptions elsewhere such as before the class or before the functions (see 3.3 for coding style information)
  3. Define the processor's parameters in get_param_types()
  4. In the class constructor of FilterFactorExt uncomment the line "Factory $<$Processor$>$ ::add(&dProcessor::NEW);"

Now edit processor_template.cpp

Finally rebuild EMAN:

%
cd ../../build
%
make
The new processor should now be available using the name that was specified in get_name().


next up previous contents index
Next: Adding Directly to the Up: Processors Previous: Processors   Contents   Index
2013-06-11