Loading...
Searching...
No Matches
Curve::UpdateCurve Class Referencefinal
Inheritance diagram for Curve::UpdateCurve:
score::Command

Detailed Description

Replaces a curve by segments, keeping only what differs: the cost of undo, redo and of the command on the stack is that of the change.

Public Member Functions

 UpdateCurve (const Model &model, const std::vector< SegmentData > &segments)
 
void undo (const score::DocumentContext &ctx) const override
 
void redo (const score::DocumentContext &ctx) const override
 
void update (const Model &model, const std::vector< SegmentData > &segments)
 For an ongoing edit: model is as the last redo() left it.
 
const std::vector< CurveChange > & changes () const noexcept
 
- Public Member Functions inherited from score::Command
virtual const CommandGroupKey & parentKey () const noexcept=0
 
virtual const CommandKey & key () const noexcept=0
 
QByteArray serialize () const
 
void deserialize (const QByteArray &)
 
virtual QString description () const =0
 

Protected Member Functions

void serializeImpl (DataStreamInput &s) const override
 
void deserializeImpl (DataStreamOutput &s) override
 

Member Function Documentation

◆ deserializeImpl()

void Curve::UpdateCurve::deserializeImpl ( DataStreamOutput &  s)
overrideprotectedvirtual

Implements score::Command.

◆ redo()

void Curve::UpdateCurve::redo ( const score::DocumentContext &  ctx) const
overridevirtual

Implements score::Command.

◆ serializeImpl()

void Curve::UpdateCurve::serializeImpl ( DataStreamInput &  s) const
overrideprotectedvirtual

Implements score::Command.

◆ undo()

void Curve::UpdateCurve::undo ( const score::DocumentContext &  ctx) const
overridevirtual

Implements score::Command.


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