diff data/model/Model.h @ 407:88ad01799040

* Save alignments to session file. Needs much testing.
author Chris Cannam
date Tue, 29 Apr 2008 15:34:17 +0000
parents 5858cc462d0a
children 52303ec15cd2
line wrap: on
line diff
--- a/data/model/Model.h	Tue Apr 29 10:59:19 2008 +0000
+++ b/data/model/Model.h	Tue Apr 29 15:34:17 2008 +0000
@@ -160,6 +160,17 @@
     virtual void setAlignment(AlignmentModel *alignment);
 
     /**
+     * Retrieve the alignment model for this model.  This is not a
+     * generally useful function, as the alignment you really want may
+     * be performed by the source model instead.  You should normally
+     * use getAlignmentReference, alignToReference and
+     * alignFromReference instead of this.  The main intended
+     * application for this function is in streaming out alignments to
+     * the session file.
+     */
+    virtual const AlignmentModel *getAlignment() const;
+
+    /**
      * Return the reference model for the current alignment timeline,
      * if any.
      */