Motiv
Marvelous OTF2 Traces Interactive Visualizer
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ViewSettings Class Reference

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...
 

Detailed Description

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.

Member Function Documentation

◆ getFilter()

Filter ViewSettings::getFilter ( ) const

Returns the current filter.

Returns
A Filter object representing the current filter.

Definition at line 28 of file ViewSettings.cpp.

◆ getZoomQuotient()

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.

Returns
An integer representing the reciprocal of the current zoom factor.

Definition at line 20 of file ViewSettings.cpp.

◆ setFilter()

void ViewSettings::setFilter ( Filter  filter)

Sets the current filter.

Parameters
filterA Filter object representing the new filter.

Definition at line 32 of file ViewSettings.cpp.

◆ setZoomFactor()

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

Parameters
zoomFactorAn integer representing the new zoom factor.

Definition at line 24 of file ViewSettings.cpp.


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