comparison transform/TransformFactory.cpp @ 18:4563a72c1d8b

* Add Zero Crossings output from zc plugin (as well as Zero Crossings Count) * Use brief friendly names for layers instead of full transform descriptions * Clearer command names for editing commands * Some efficiencies in drawing dense points in TimeInstantLayer
author Chris Cannam
date Tue, 31 Jan 2006 17:19:45 +0000
parents cc98d496d52b
children 742e6882e187
comparison
equal deleted inserted replaced
17:2fb933f88604 18:4563a72c1d8b
97 if (m_transforms.find(name) != m_transforms.end()) { 97 if (m_transforms.find(name) != m_transforms.end()) {
98 return m_transforms[name]; 98 return m_transforms[name];
99 } else return ""; 99 } else return "";
100 } 100 }
101 101
102 QString
103 TransformFactory::getTransformFriendlyName(TransformName name)
104 {
105 QString description = getTransformDescription(name);
106
107 int i = description.indexOf(':');
108 if (i >= 0) {
109 return description.remove(0, i + 2);
110 } else {
111 return description;
112 }
113 }
114
102 Transform * 115 Transform *
103 TransformFactory::createTransform(TransformName name, Model *inputModel) 116 TransformFactory::createTransform(TransformName name, Model *inputModel)
104 { 117 {
105 return createTransform(name, inputModel, true); 118 return createTransform(name, inputModel, true);
106 } 119 }