MCPcopy Create free account
hub / github.com/cpvrlab/ImagePlay / getInstance

Method getInstance

ImagePlay/src/IPProcessFactory.cpp:53–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53IPLProcess* 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
72QStringList IPProcessFactory::getProcessNamesByCategory(IPLProcess::IPLProcessCategory category)
73{

Callers 2

IPProcessStepMethod · 0.80
initMethod · 0.80

Calls 6

containsMethod · 0.80
propertiesMethod · 0.80
cloneMethod · 0.45
valueMethod · 0.45
clearMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected