| 51 | } |
| 52 | |
| 53 | IPLProcess* IPProcessFactory::getInstance(QString name) |
| 54 | { |
| 55 | qDebug() << "IPProcessFactory::getInstance: " << name; |
| 56 | if(_map.contains(name)) |
| 57 | { |
| 58 | // return a fresh copy of the template process |
| 59 | IPLProcess* process = _map.value(name)->clone(); |
| 60 | process->properties()->clear(); |
| 61 | process->inputs()->clear(); |
| 62 | process->outputs()->clear(); |
| 63 | process->init(); |
| 64 | return process; |
| 65 | } |
| 66 | else |
| 67 | { |
| 68 | return NULL; |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | QStringList IPProcessFactory::getProcessNamesByCategory(IPLProcess::IPLProcessCategory category) |
| 73 | { |