ngscopeclient 0.1-dev+51fbda87c
Public Attributes | List of all members
PeakLabel Struct Reference

State for a single peak label. More...

#include <WaveformArea.h>

Public Attributes

int64_t m_labelXpos
 X axis position of the label's centroid.
 
float m_labelYpos
 Y axis position of the label's centroid.
 
int64_t m_peakXpos
 X axis position of the peak last refresh.
 
float m_peakYpos
 Y axis position of the peak last refresh.
 
int64_t m_labelXsize
 X axis size of the label (for collision detection)
 
int64_t m_labelYsize
 Y axis size of the label (for collision detection)
 
int m_peakAlpha
 Alpha decay. Decays by a small amount per frame after the peak disappears. More...
 
float m_fwhm
 Calculated FWHM of the peak.
 

Detailed Description

State for a single peak label.

All positions/sizes are in waveform units, not screen units, so that they scale/move correctly with the waveform

Member Data Documentation

◆ m_peakAlpha

int PeakLabel::m_peakAlpha

Alpha decay. Decays by a small amount per frame after the peak disappears.

255 = fully visible 0 = invisible Negative = invisible for several frames (eventually will be garbage collected)


The documentation for this struct was generated from the following file: