|
Motiv
Marvelous OTF2 Traces Interactive Visualizer
|
Model class providing access to data and pub/sub architecture of change events. More...
#include <TraceDataProxy.hpp>


Public Slots | |
| void | setSelectionBegin (types::TraceTime newBegin) |
| void | setSelectionEnd (types::TraceTime newEnd) |
| void | setSelection (types::TraceTime newBegin, types::TraceTime newEnd) |
| void | setFilter (Filter filter) |
| void | setTimeElementSelection (TimedElement *newSlot) |
Signals | |
| void | selectionChanged (types::TraceTime newBegin, types::TraceTime newEnd) |
| void | beginChanged (types::TraceTime newBegin) |
| void | endChanged (types::TraceTime newEnd) |
| void | infoElementSelected (TimedElement *) |
| void | filterChanged (Filter) |
Public Member Functions | |
| TraceDataProxy (FileTrace *trace, ViewSettings *settings, QObject *parent=nullptr) | |
| Constructs a new TraceDataProxy. More... | |
| Trace * | getSelection () const |
| Returns the current selection. More... | |
| types::TraceTime | getBegin () const |
| Returns the selected start time. More... | |
| types::TraceTime | getEnd () const |
| Returns the selected end time. More... | |
| ViewSettings * | getSettings () const |
| Returns the current view settings. More... | |
| Trace * | getFullTrace () const |
| Returns the entire trace. More... | |
| types::TraceTime | getTotalRuntime () const |
Model class providing access to data and pub/sub architecture of change events.
TraceDataProxy acts as an intermediate class between the views and the data. This class tracks all state changes related to the representation of the trace, e.g. selections and emits a signal on changes.
Definition at line 35 of file TraceDataProxy.hpp.
| TraceDataProxy::TraceDataProxy | ( | FileTrace * | trace, |
| ViewSettings * | settings, | ||
| QObject * | parent = nullptr |
||
| ) |
Constructs a new TraceDataProxy.
The object takes ownership of the supplied FileTrace.
| trace | The entire trace |
| settings | The view settings |
| parent | The parent QObject |
Definition at line 21 of file TraceDataProxy.cpp.
|
overridevirtual |
Definition at line 27 of file TraceDataProxy.cpp.
|
signal |
Signals the begin was changed
|
signal |
Signals the end was changed
|
signal |
Signals the filter was changes
| types::TraceTime TraceDataProxy::getBegin | ( | ) | const |
Returns the selected start time.
Definition at line 36 of file TraceDataProxy.cpp.
| types::TraceTime TraceDataProxy::getEnd | ( | ) | const |
Returns the selected end time.
Definition at line 40 of file TraceDataProxy.cpp.
| Trace * TraceDataProxy::getFullTrace | ( | ) | const |
| Trace * TraceDataProxy::getSelection | ( | ) | const |
Returns the current selection.
The selection refers to the parts of the trace that is in the selected time window
Definition at line 32 of file TraceDataProxy.cpp.
| ViewSettings * TraceDataProxy::getSettings | ( | ) | const |
Returns the current view settings.
Definition at line 52 of file TraceDataProxy.cpp.
| types::TraceTime TraceDataProxy::getTotalRuntime | ( | ) | const |
Returns the runtime of the entire loaded trace
Definition at line 57 of file TraceDataProxy.cpp.
|
signal |
Signals a change to the selected slot, nullptr if none
|
signal |
Signals the selection has been changed
|
slot |
|
slot |
Change the start and end time of the selection
| newBegin | |
| newEnd |
newBegin may not be larger than end or total runtime newEnd may not be smaller than begin and not larger than runtime Definition at line 68 of file TraceDataProxy.cpp.
|
slot |
Change the start time of the selection
| newBegin |
Definition at line 44 of file TraceDataProxy.cpp.
|
slot |
Change the end time of the selection
| newEnd |
Definition at line 48 of file TraceDataProxy.cpp.
|
slot |
Change the selected slot
| newSlot | pass nullptr if none selected |
Definition at line 94 of file TraceDataProxy.cpp.