UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ZqDlgSpectrum Class Reference

#include <zqdlg_spectrum.hpp>

Inheritance diagram for ZqDlgSpectrum:
ZqDlgPlot2D

Public Member Functions

 ZqDlgSpectrum (QWidget *parent, ZqbNatGroup &NatF, int n, float dt, const float vt[])
 
 ZqDlgSpectrum (QWidget *parent, ZqbNatGroup &NatF, const ZqbRealTrace &rtr)
 
virtual ~ZqDlgSpectrum ()
 
ZqCurvecurve ()
 
void newData (int n, float dt, const float vt[])
 
void newData (const ZqbRealTrace &rtr)
 
- Public Member Functions inherited from ZqDlgPlot2D
 ZqDlgPlot2D (QWidget *parent, ZqbNatGroup &NatX, ZqbNatGroup &NatY, ZqRubberBox::RangeMode eZoomMode=ZqRubberBox::Rectangle)
 
virtual ~ZqDlgPlot2D ()
 
QDialog * dialog ()
 
ZqbPlaceholderplace (const char *szGrpX, const char *szGrpY)
 
ZqbPlaceholderplotPlace ()
 
ZqTitletitle ()
 
ZqZoomzoom ()
 
void setAreaSize (const QSize qsize)
 

Protected Member Functions

float * fft (int n, float dt, const float vt[], int &m, float &df, float &maxf)
 
void zqInit (ZqbNatGroup &NatF)
 
void zqLoad (int m, float *vf, float df, float maxf)
 

Protected Attributes

float * m_pfSpectrum
 
ZdFVectorFloat * m_zdSpectrum
 
ZqCurvem_zqSpectrum
 
- Protected Attributes inherited from ZqDlgPlot2D
QDialog * m_qDlg
 
QVBoxLayout * m_qVLayout
 
QzqAream_qzArea
 
ZqLayoutm_zqLayout
 
ZqTitlem_zqTitle
 
ZqScalem_zqScaleX
 
ZqScalem_zqScaleY
 
ZqGridm_zqGridX
 
ZqGridm_zqGridY
 
ZqZoomm_zqZoom
 

Additional Inherited Members

- Public Attributes inherited from ZqDlgPlot2D
ZqbNatGroupm_NatX
 
ZqbNatGroupm_NatY
 

Detailed Description

The class implements window with spectrum drawing. Natural group can be passed to control range of visualized spectrum.

Constructor & Destructor Documentation

ZqDlgSpectrum::ZqDlgSpectrum ( QWidget *  parent,
ZqbNatGroup NatF,
int  n,
float  dt,
const float  vt[] 
)

Create dialog window to display the spectrum of given vector. Given natural group is used for frequency.

ZqDlgSpectrum::ZqDlgSpectrum ( QWidget *  parent,
ZqbNatGroup NatF,
const ZqbRealTrace rtr 
)

Create dialog window to display the spectrum of given trace. Given natural group is used for frequency.

virtual ZqDlgSpectrum::~ZqDlgSpectrum ( )
virtual

Destroy the object.

Member Function Documentation

ZqCurve* ZqDlgSpectrum::curve ( )

The visual object used for spectrum drawing.

float* ZqDlgSpectrum::fft ( int  n,
float  dt,
const float  vt[],
int &  m,
float &  df,
float &  maxf 
)
protected

Calculate spectrum from given source and normalize it to [0..1] range.

void ZqDlgSpectrum::newData ( int  n,
float  dt,
const float  vt[] 
)

Load another vector to the same window instead of previous.

void ZqDlgSpectrum::newData ( const ZqbRealTrace rtr)

Load another trace the same window instead of previous.

void ZqDlgSpectrum::zqInit ( ZqbNatGroup NatF)
protected

Create spectrum-specific Zqools controls.

Parameters
NatFfrequency natural group
void ZqDlgSpectrum::zqLoad ( int  m,
float *  vf,
float  df,
float  maxf 
)
protected

Attach data to spectrum-specific Zqools controls.

Parameters
mnumber of samples in spectrum
vfvector of spectrum samples
dfdelta frequency value
maxfmaximum frequency to display

Member Data Documentation

float* ZqDlgSpectrum::m_pfSpectrum
protected

Stored vector of spectrum values.

ZdFVectorFloat* ZqDlgSpectrum::m_zdSpectrum
protected

Object used as a container for drawing spectrum.

ZqCurve* ZqDlgSpectrum::m_zqSpectrum
protected

Object used for drawing spectrum.


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