Loading...
Searching...
No Matches
Curve::Presenter Class Referencefinal
Inheritance diagram for Curve::Presenter:

Public Member Functions

 Presenter (const score::DocumentContext &lst, const Curve::Style &, const Model &, View *, QObject *parent)
 
const score::DocumentContext & context () const noexcept
 
const auto & points () const noexcept
 
const auto & segments () const noexcept
 
void clear ()
 
const Model & model () const noexcept
 
View & view () const noexcept
 
void setRect (const QRectF &rect)
 
void enableActions (bool)
 
void enable ()
 
void disable ()
 
Curve::EditionSettings & editionSettings () noexcept
 
void fillContextMenu (QMenu &, const QPoint &, const QPointF &)
 
void removeSelection ()
 
void convertSamplesToPoints ()
 
bool boundedMove () const noexcept
 
void setBoundedMove (bool b) noexcept
 
QRectF rect () const noexcept
 
void setMagnetism (std::function< double(double)> f) noexcept
 
double magnetic (double x) const
 
void contextMenuRequested (const QPoint &arg_1, const QPointF &arg_2)
 

Friends

class View
 

Member Function Documentation

◆ convertSamplesToPoints()

void Curve::Presenter::convertSamplesToPoints ( )

Replaces the selected point arrays, or all of them if none is selected, by linear segments that follow them within the simplification tolerance.

◆ setMagnetism()

void Curve::Presenter::setMagnetism ( std::function< double(double)>  f)
inlinenoexcept

Where a point dragged to x lands, e.g. following the timeline's magnetism for processes whose x is time. Identity when unset.


The documentation for this class was generated from the following files: