|
Motiv
Marvelous OTF2 Traces Interactive Visualizer
|
The ViewSettings class encapsulates settings for the main view. More...
#include <ViewSettings.hpp>
Public Member Functions | |
| Filter | getFilter () const |
| Returns the current filter. More... | |
| int | getZoomQuotient () const |
| Returns the reciprocal of the current zoom factor. More... | |
| void | setFilter (Filter filter) |
| Sets the current filter. More... | |
| void | setZoomFactor (int zoomFactor) |
| Sets the current zoom factor. More... | |
The ViewSettings class encapsulates settings for the main view.
It includes a filter to control which events are displayed and a zoom factor to control the level of detail in the visualization.
Definition at line 32 of file ViewSettings.hpp.
| Filter ViewSettings::getFilter | ( | ) | const |
Returns the current filter.
Definition at line 28 of file ViewSettings.cpp.
| int ViewSettings::getZoomQuotient | ( | ) | const |
Returns the reciprocal of the current zoom factor.
For example, if the zoom view is zoomed to show 1/50=2%, this function will return 50.
Definition at line 20 of file ViewSettings.cpp.
| void ViewSettings::setFilter | ( | Filter | filter | ) |
Sets the current filter.
| filter | A Filter object representing the new filter. |
Definition at line 32 of file ViewSettings.cpp.
| void ViewSettings::setZoomFactor | ( | int | zoomFactor | ) |
Sets the current zoom factor.
The zoom factor defines how much of the actual trace is shown. It is set as the reciprocal. For example, if the view is zoom to show only 2%=1/50 of the whole view, the zoom factor is 50
| zoomFactor | An integer representing the new zoom factor. |
Definition at line 24 of file ViewSettings.cpp.