diff 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
line wrap: on
line diff
--- a/transform/TransformFactory.cpp	Tue Jan 31 15:57:25 2006 +0000
+++ b/transform/TransformFactory.cpp	Tue Jan 31 17:19:45 2006 +0000
@@ -99,6 +99,19 @@
     } else return "";
 }
 
+QString
+TransformFactory::getTransformFriendlyName(TransformName name)
+{
+    QString description = getTransformDescription(name);
+
+    int i = description.indexOf(':');
+    if (i >= 0) {
+	return description.remove(0, i + 2);
+    } else {
+	return description;
+    }
+}
+
 Transform *
 TransformFactory::createTransform(TransformName name, Model *inputModel)
 {