Scenario::ScenarioPresenter Class Referencefinal
Inheritance diagram for Scenario::ScenarioPresenter:
Process::LayerPresenter

Public Member Functions

 ScenarioPresenter (Scenario::EditionSettings &, const Scenario::ProcessModel &model, Process::LayerView *view, const Process::Context &context, QObject *parent)
 
const Scenario::ProcessModelmodel () const noexcept
 
Scenario::Point toScenarioPoint (QPointF pt) const noexcept
 toScenarioPoint More...
 
QPointF fromScenarioPoint (const Scenario::Point &pt) const noexcept
 
void setWidth (qreal width, qreal defaultWidth) override
 
void setHeight (qreal height) override
 
void putToFront () override
 
void putBehind () override
 
void parentGeometryChanged () override
 
void on_zoomRatioChanged (ZoomRatio val) override
 
EventPresenterevent (const Id< EventModel > &id) const
 
TimeSyncPresentertimeSync (const Id< TimeSyncModel > &id) const
 
IntervalPresenterinterval (const Id< IntervalModel > &id) const
 
StatePresenterstate (const Id< StateModel > &id) const
 
const auto & comment (const Id< CommentBlockModel > &id) const
 
const auto & getEvents () const
 
const auto & getTimeSyncs () const
 
const auto & getIntervals () const
 
const auto & getGraphIntervals () const
 
const auto & getStates () const
 
const auto & getComments () const
 
ScenarioViewview () const
 
const ZoomRatio & zoomRatio () const
 
Scenario::ToolPalettestateMachine ()
 
Scenario::EditionSettingseditionSettings () const
 
void setSnapLine (TimeVal t, bool enabled)
 
void fillContextMenu (QMenu &, QPoint pos, QPointF scenepos, const Process::LayerContextMenuManager &) override
 
bool event (QEvent *e) override
 
void drawDragLine (const Scenario::StateModel &, Scenario::Point) const
 
void stopDrawDragLine () const
 
void linesExtremityScaled (int arg_1, int arg_2)
 
void keyPressed (int arg_1)
 
void keyReleased (int arg_1)
 
void on_stateCreated (const StateModel &)
 
void on_stateRemoved (const StateModel &)
 
void on_eventCreated (const EventModel &)
 
void on_eventRemoved (const EventModel &)
 
void on_timeSyncCreated (const TimeSyncModel &)
 
void on_timeSyncRemoved (const TimeSyncModel &)
 
void on_intervalCreated (const IntervalModel &)
 
void on_intervalRemoved (const IntervalModel &)
 
void on_commentCreated (const CommentBlockModel &)
 
void on_commentRemoved (const CommentBlockModel &)
 
void on_askUpdate ()
 
void on_intervalExecutionTimer ()
 
- Public Member Functions inherited from Process::LayerPresenter
 LayerPresenter (const ProcessModel &model, const LayerView *view, const Context &ctx, QObject *parent)
 
const Process::LayerContextcontext () const
 
bool focused () const
 
void setFocus (bool focus)
 
virtual void setFullView ()
 
const ProcessModelmodel () const noexcept
 
virtual GraphicsShapeItemmakeSlotHeaderDelegate ()
 
void contextMenuRequested (const QPoint &arg_1, const QPointF &arg_2)
 

Friends

class Scenario::ToolPalette
 
class ScenarioViewInterface
 

Additional Inherited Members

- Static Public Attributes inherited from Process::LayerPresenter
static constexpr bool recommendedHeight = false
 
- Protected Member Functions inherited from Process::LayerPresenter
void handlePresetDrop (const QPointF &pt, const QMimeData &mime)
 
void requestFocus ()
 
- Protected Attributes inherited from Process::LayerPresenter
Process::LayerContext m_context
 
const Process::ProcessModelm_process
 

Member Function Documentation

◆ toScenarioPoint()

Point Scenario::ScenarioPresenter::toScenarioPoint ( QPointF  pt) const
noexcept

toScenarioPoint

Maps a point in item coordinates to a point in scenario model coordinates (time; y percentage)


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