comparison data/model/EditableDenseThreeDimensionalModel.cpp @ 1065:0fd3661bcfff tonioni

clone() is never used (therefore presumably never works either)
author Chris Cannam
date Tue, 31 Mar 2015 12:12:31 +0100
parents 31f01931b781
children 1517d4c60e88
comparison
equal deleted inserted replaced
1064:c9fdd9921146 1065:0fd3661bcfff
77 77
78 sv_frame_t 78 sv_frame_t
79 EditableDenseThreeDimensionalModel::getEndFrame() const 79 EditableDenseThreeDimensionalModel::getEndFrame() const
80 { 80 {
81 return m_resolution * m_data.size() + (m_resolution - 1); 81 return m_resolution * m_data.size() + (m_resolution - 1);
82 }
83
84 Model *
85 EditableDenseThreeDimensionalModel::clone() const
86 {
87 QReadLocker locker(&m_lock);
88
89 EditableDenseThreeDimensionalModel *model =
90 new EditableDenseThreeDimensionalModel
91 (m_sampleRate, m_resolution, m_yBinCount, m_compression);
92
93 model->m_minimum = m_minimum;
94 model->m_maximum = m_maximum;
95 model->m_haveExtents = m_haveExtents;
96
97 for (int i = 0; i < m_data.size(); ++i) {
98 model->setColumn(i, m_data.at(i));
99 }
100
101 return model;
102 } 82 }
103 83
104 int 84 int
105 EditableDenseThreeDimensionalModel::getResolution() const 85 EditableDenseThreeDimensionalModel::getResolution() const
106 { 86 {