Skip to content

Commit 72e7d1f

Browse files
committed
curve: start work on optimized pointarray rendering
1 parent dc29b2f commit 72e7d1f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/plugins/score-plugin-curve/Curve/CurvePresenter.cpp

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <Curve/Segment/CurveSegmentList.hpp>
1717
#include <Curve/Segment/CurveSegmentModel.hpp>
1818
#include <Curve/Segment/CurveSegmentView.hpp>
19+
#include <Curve/Segment/PointArray/PointArraySegment.hpp>
1920
#include <Curve/Segment/Power/PowerSegment.hpp>
2021

2122
#include <score/application/ApplicationContext.hpp>
@@ -119,7 +120,17 @@ void Presenter::setupSignals()
119120
m_view->setDirectDraw(true);
120121
return;
121122
}
122-
addSegment(new SegmentView{segment, m_style, m_view});
123+
124+
if(auto pa = qobject_cast<const PointArraySegment*>(segment))
125+
{
126+
// FIXME
127+
addSegment(new SegmentView{segment, m_style, m_view});
128+
}
129+
else
130+
{
131+
132+
addSegment(new SegmentView{segment, m_style, m_view});
133+
}
123134
});
124135

125136
con(m_model, &Model::pointAdded, this, [&](const PointModel* point) {

0 commit comments

Comments
 (0)