Scenario::ScenarioPresenter Class Referencefinal
Inheritance diagram for Scenario::ScenarioPresenter:
Public Member Functions | |
ScenarioPresenter (Scenario::EditionSettings &, const Scenario::ProcessModel &model, Process::LayerView *view, const Process::Context &context, QObject *parent) | |
const Scenario::ProcessModel & | model () 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 |
EventPresenter & | event (const Id< EventModel > &id) const |
TimeSyncPresenter & | timeSync (const Id< TimeSyncModel > &id) const |
IntervalPresenter & | interval (const Id< IntervalModel > &id) const |
StatePresenter & | state (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 |
ScenarioView & | view () const |
const ZoomRatio & | zoomRatio () const |
Scenario::ToolPalette & | stateMachine () |
Scenario::EditionSettings & | editionSettings () 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::LayerContext & | context () const |
bool | focused () const |
void | setFocus (bool focus) |
virtual void | setFullView () |
const ProcessModel & | model () const noexcept |
virtual GraphicsShapeItem * | makeSlotHeaderDelegate () |
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::ProcessModel & | m_process |
Member Function Documentation
◆ toScenarioPoint()
|
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:
- ScenarioPresenter.hpp
- ScenarioPresenter.cpp