HAL  v4.5.0-83-g30c8f0afc
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
hal::WaveZoomShift Class Reference

#include </home/runner/work/hal/hal/plugins/simulator/waveform_viewer/include/waveform_viewer/wave_transform.h>

Collaboration diagram for hal::WaveZoomShift:
Collaboration graph

Public Member Functions

 WaveZoomShift (double sc, quint64 tl, int w)
 
 WaveZoomShift (const WaveTransform *trans=nullptr, const WaveScrollbar *sbar=nullptr)
 
bool operator== (const WaveZoomShift &other) const
 
bool operator!= (const WaveZoomShift &other) const
 
bool isNull () const
 
bool sameHistory (const WaveZoomShift &other) const
 
int width () const
 
double scale () const
 
quint64 leftTime () const
 
QString dumpString () const
 

Detailed Description

A snapshot of the zoom level and the horizontal offset, used to tell whether a rendered waveform is still valid.

Definition at line 59 of file wave_transform.h.

Constructor & Destructor Documentation

◆ WaveZoomShift() [1/2]

hal::WaveZoomShift::WaveZoomShift ( double  sc,
quint64  tl,
int  w 
)
inline

Definition at line 65 of file wave_transform.h.

◆ WaveZoomShift() [2/2]

hal::WaveZoomShift::WaveZoomShift ( const WaveTransform trans = nullptr,
const WaveScrollbar sbar = nullptr 
)

Member Function Documentation

◆ dumpString()

QString hal::WaveZoomShift::dumpString ( ) const

Definition at line 49 of file wave_transform.cpp.

References QString::arg().

◆ isNull()

bool hal::WaveZoomShift::isNull ( ) const

Definition at line 44 of file wave_transform.cpp.

Referenced by operator==(), and sameHistory().

◆ leftTime()

quint64 hal::WaveZoomShift::leftTime ( ) const
inline

Definition at line 73 of file wave_transform.h.

Referenced by hal::WaveGraphicsCanvas::undoZoom().

◆ operator!=()

bool hal::WaveZoomShift::operator!= ( const WaveZoomShift other) const
inline

Definition at line 68 of file wave_transform.h.

References operator==().

◆ operator==()

bool hal::WaveZoomShift::operator== ( const WaveZoomShift other) const

Definition at line 36 of file wave_transform.cpp.

References isNull().

Referenced by operator!=().

◆ sameHistory()

bool hal::WaveZoomShift::sameHistory ( const WaveZoomShift other) const

Definition at line 28 of file wave_transform.cpp.

References isNull().

Referenced by hal::WaveRenderEngine::paintEvent().

◆ scale()

double hal::WaveZoomShift::scale ( ) const
inline

Definition at line 72 of file wave_transform.h.

Referenced by hal::WaveGraphicsCanvas::undoZoom().

◆ width()

int hal::WaveZoomShift::width ( ) const
inline

Definition at line 71 of file wave_transform.h.

Referenced by hal::WaveItem::incrementLoadProgress().


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