Next: Aligners
Up: Processors
Previous: Using Templates:
Contents
Index
If the new processor code has already been created using the supplied
templates, then adding to the core can be done as follows:
- Open processor.h in src/eman2/libEM
- Copy the class you defined in processor_template.h and paste it
in the file
- Open processor.cpp (also located in src/eman2/libEM)
- Copy and paste the class from processor_template.cpp to
processor.cpp. Header file include statements may also need to
be copied.
- In the template class Factory located in the begining of
processor.cpp add a line "force_add(&newProcessor::NEW)" where
"newProcessor" is the name of the processor class that is being
added
- Rebuild EMAN2
The instructions for adding a new processor without first using
templates go as follows:
- In src/eman2/libEM open processor.h
- Towards the end of the file there is an example class called
XYZProcessor. Follow the first 3 steps listed in "Using
Templates".
- Open processor.cpp and write an implementation for the process()
function that was just defined in processor.h
- Repeat the last two steps (5 and 6)
from the template installation
Next: Aligners
Up: Processors
Previous: Using Templates:
Contents
Index
2013-06-11