Loading...
Searching...
No Matches
Curve::CommandObjectBase Class Referenceabstract
Inheritance diagram for Curve::CommandObjectBase:
Curve::CreatePointCommandObject Curve::MovePointCommandObject Curve::MoveSegmentCommandObject Curve::PenCommandObject

Public Member Functions

 CommandObjectBase (const Model &model, Presenter *pres, const score::CommandStackFacade &)
 
void setCurveState (Curve::StateBase *stateBase)
 
void press ()
 
void handleLocking ()
 

Protected Member Functions

void submit (const std::vector< SegmentData > &)
 
auto find (std::vector< SegmentData > &segments, const OptionalId< SegmentModel > &id)
 
auto find (const std::vector< SegmentData > &segments, const OptionalId< SegmentModel > &id)
 
virtual void on_press ()=0
 

Protected Attributes

QPointF m_originalPress
 
const Model & m_model
 
Presenter * m_presenter {}
 
Curve::StateBase * m_state {}
 
SingleOngoingCommandDispatcher< UpdateCurve > m_dispatcher
 
std::vector< SegmentData > m_startSegments
 
std::vector< SegmentData > m_segments
 The curve being submitted: kept across moves for its storage.
 
double m_xmin {-1}
 
double m_xmax {2}
 
double m_xLastPoint {2}
 

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