qCC version 2.13.alpha (Qt) - 31 May 2022
Main CloudCompare application (GUI & command line)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ccWaveWidget Class Reference

Waveform widget. More...

#include <ccWaveformDialog.h>

Inheritance diagram for ccWaveWidget:
Inheritance graph
[legend]
Collaboration diagram for ccWaveWidget:
Collaboration graph
[legend]

Public Member Functions

 ccWaveWidget (QWidget *parent=nullptr)
 Default constructor.
 
 ~ccWaveWidget () override
 Destructor.
 
void setTitle (const QString &str)
 Sets title.
 
void setAxisLabels (const QString &xLabel, const QString &yLabel)
 Sets axis labels.
 
void init (ccPointCloud *cloud, unsigned pointIndex, bool logScale, double maxValue=0.0)
 Computes the wave (curve) from a given point waveform.
 
void clear ()
 Clears the display.
 
void refresh ()
 Updates the display.
 

Protected Member Functions

void mousePressEvent (QMouseEvent *event) override
 
void mouseMoveEvent (QMouseEvent *event) override
 
void resizeEvent (QResizeEvent *event) override
 
void clearInternal ()
 Clears internal structures.
 
void updateCurveWidth (int w, int h)
 Updates overlay curve width depending on the widget display size.
 

Protected Attributes

QString m_titleStr
 
QCPTextElement * m_titlePlot
 
QCPGraph * m_curve
 Wave curve.
 
std::vector< double > m_curveValues
 
double m_dt
 
double m_minA
 
double m_maxA
 
double m_echoPos
 
QCPBarsWithTextm_vertBar
 
bool m_drawVerticalIndicator
 
double m_verticalIndicatorPositionPercent
 
QCPBarsWithTextm_peakBar
 
QFont m_renderingFont
 Rendering font.
 
QPoint m_lastMouseClick
 Last mouse click.
 

Detailed Description

Waveform widget.


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