Skip to content

Commit

Permalink
curve: start work on optimized pointarray rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Dec 26, 2024
1 parent dc29b2f commit 72e7d1f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/plugins/score-plugin-curve/Curve/CurvePresenter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <Curve/Segment/CurveSegmentList.hpp>
#include <Curve/Segment/CurveSegmentModel.hpp>
#include <Curve/Segment/CurveSegmentView.hpp>
#include <Curve/Segment/PointArray/PointArraySegment.hpp>
#include <Curve/Segment/Power/PowerSegment.hpp>

#include <score/application/ApplicationContext.hpp>
Expand Down Expand Up @@ -119,7 +120,17 @@ void Presenter::setupSignals()
m_view->setDirectDraw(true);
return;
}
addSegment(new SegmentView{segment, m_style, m_view});

if(auto pa = qobject_cast<const PointArraySegment*>(segment))
{
// FIXME
addSegment(new SegmentView{segment, m_style, m_view});
}
else
{

addSegment(new SegmentView{segment, m_style, m_view});
}
});

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

0 comments on commit 72e7d1f

Please sign in to comment.