Skip to content

Commit b3bb713

Browse files
committed
curve: start work on optimized pointarray rendering
1 parent 7231c4a commit b3bb713

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>
@@ -118,7 +119,17 @@ void Presenter::setupSignals()
118119
m_view->setDirectDraw(true);
119120
return;
120121
}
121-
addSegment(new SegmentView{segment, m_style, m_view});
122+
123+
if(auto pa = qobject_cast<const PointArraySegment*>(segment))
124+
{
125+
// FIXME
126+
addSegment(new SegmentView{segment, m_style, m_view});
127+
}
128+
else
129+
{
130+
131+
addSegment(new SegmentView{segment, m_style, m_view});
132+
}
122133
});
123134

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

0 commit comments

Comments
 (0)