Mercurial > hg > svcore
comparison data/model/Model.cpp @ 951:4b9fc70a37d5
Debug output stuff
author | Chris Cannam |
---|---|
date | Fri, 25 Jul 2014 17:02:44 +0100 |
parents | 59e7fe1b1003 |
children | 4a2c150ecd67 |
comparison
equal
deleted
inserted
replaced
950:387fa69f4eaa | 951:4b9fc70a37d5 |
---|---|
107 } | 107 } |
108 | 108 |
109 int | 109 int |
110 Model::alignToReference(int frame) const | 110 Model::alignToReference(int frame) const |
111 { | 111 { |
112 // cerr << "Model(" << this << ")::alignToReference(" << frame << ")" << endl; | |
112 if (!m_alignment) { | 113 if (!m_alignment) { |
113 if (m_sourceModel) return m_sourceModel->alignToReference(frame); | 114 if (m_sourceModel) return m_sourceModel->alignToReference(frame); |
114 else return frame; | 115 else return frame; |
115 } | 116 } |
116 int refFrame = m_alignment->toReference(frame); | 117 int refFrame = m_alignment->toReference(frame); |
117 const Model *m = m_alignment->getReferenceModel(); | 118 const Model *m = m_alignment->getReferenceModel(); |
118 if (m && refFrame > m->getEndFrame()) refFrame = m->getEndFrame(); | 119 if (m && refFrame > m->getEndFrame()) refFrame = m->getEndFrame(); |
120 // cerr << "have alignment, aligned is " << refFrame << endl; | |
119 return refFrame; | 121 return refFrame; |
120 } | 122 } |
121 | 123 |
122 int | 124 int |
123 Model::alignFromReference(int refFrame) const | 125 Model::alignFromReference(int refFrame) const |
124 { | 126 { |
127 // cerr << "Model(" << this << ")::alignFromReference(" << refFrame << ")" << endl; | |
125 if (!m_alignment) { | 128 if (!m_alignment) { |
126 if (m_sourceModel) return m_sourceModel->alignFromReference(refFrame); | 129 if (m_sourceModel) return m_sourceModel->alignFromReference(refFrame); |
127 else return refFrame; | 130 else return refFrame; |
128 } | 131 } |
129 int frame = m_alignment->fromReference(refFrame); | 132 int frame = m_alignment->fromReference(refFrame); |
130 if (frame > getEndFrame()) frame = getEndFrame(); | 133 if (frame > getEndFrame()) frame = getEndFrame(); |
134 // cerr << "have alignment, aligned is " << frame << endl; | |
131 return frame; | 135 return frame; |
132 } | 136 } |
133 | 137 |
134 int | 138 int |
135 Model::getAlignmentCompletion() const | 139 Model::getAlignmentCompletion() const |