ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ccWaveformProxy Class Reference

Waveform proxy. More...

#include <ecvWaveform.h>

Collaboration diagram for ccWaveformProxy:

Public Member Functions

 ccWaveformProxy (const ccWaveform &w, const WaveformDescriptor &d, const uint8_t *storage)
 Default constructor. More...
 
bool isValid () const
 Returns whether the waveform (proxy) is valid or not. More...
 
uint8_t descriptorID () const
 Returns the associated descriptor (ID) More...
 
uint32_t getRawSample (uint32_t i) const
 Returns the (raw) value of a given sample. More...
 
double getSample (uint32_t i) const
 Returns the (real) value of a given sample (in volts) More...
 
double getRange (double &minVal, double &maxVal) const
 Returns the range of (real) samples. More...
 
bool decodeSamples (std::vector< double > &values) const
 Decodes the samples and store them in a vector. More...
 
bool toASCII (const QString &filename) const
 Exports (real) samples to an ASCII file. More...
 
CCVector3 getSamplePos (float i, const CCVector3 &P0) const
 Returns the sample position in 3D. More...
 
uint32_t byteCount () const
 Returns the number of allocated bytes. More...
 
const uint8_t * data () const
 Gives access to the internal data. More...
 
const CCVector3fbeamDir () const
 Returns the beam direction. More...
 
float echoTime_ps () const
 Returns the echo time (in picoseconds) More...
 
uint32_t numberOfSamples () const
 Returns the number of samples. More...
 
const WaveformDescriptordescriptor () const
 Returns the descriptor. More...
 
const ccWaveformwaveform () const
 Returns the waveform. More...
 

Protected Attributes

const ccWaveformm_w
 Associated ccWaveform instance. More...
 
const WaveformDescriptorm_d
 Associated descriptor. More...
 
const uint8_t * m_storage
 Associated storage data. More...
 

Detailed Description

Waveform proxy.

For easier access to the waveform data

Definition at line 189 of file ecvWaveform.h.

Constructor & Destructor Documentation

◆ ccWaveformProxy()

ccWaveformProxy::ccWaveformProxy ( const ccWaveform w,
const WaveformDescriptor d,
const uint8_t *  storage 
)
inline

Default constructor.

Definition at line 192 of file ecvWaveform.h.

Member Function Documentation

◆ beamDir()

const CCVector3f& ccWaveformProxy::beamDir ( ) const
inline

Returns the beam direction.

Definition at line 245 of file ecvWaveform.h.

Referenced by define_ccWaveform().

◆ byteCount()

uint32_t ccWaveformProxy::byteCount ( ) const
inline

Returns the number of allocated bytes.

Definition at line 239 of file ecvWaveform.h.

Referenced by define_ccWaveform().

◆ data()

const uint8_t* ccWaveformProxy::data ( ) const
inline

Gives access to the internal data.

Definition at line 242 of file ecvWaveform.h.

Referenced by define_ccWaveform().

◆ decodeSamples()

bool ccWaveformProxy::decodeSamples ( std::vector< double > &  values) const
inline

Decodes the samples and store them in a vector.

Definition at line 224 of file ecvWaveform.h.

◆ descriptor()

const WaveformDescriptor& ccWaveformProxy::descriptor ( ) const
inline

Returns the descriptor.

Definition at line 254 of file ecvWaveform.h.

Referenced by define_ccWaveform(), and ccWaveWidget::init().

◆ descriptorID()

uint8_t ccWaveformProxy::descriptorID ( ) const
inline

Returns the associated descriptor (ID)

Warning
A value of zero indicates that there is no associated waveform data.

Definition at line 206 of file ecvWaveform.h.

Referenced by define_ccWaveform(), and LASFWFFilter::saveToFile().

◆ echoTime_ps()

float ccWaveformProxy::echoTime_ps ( ) const
inline

Returns the echo time (in picoseconds)

Definition at line 248 of file ecvWaveform.h.

Referenced by define_ccWaveform(), and ccWaveWidget::init().

◆ getRange()

double ccWaveformProxy::getRange ( double &  minVal,
double &  maxVal 
) const
inline

Returns the range of (real) samples.

Definition at line 219 of file ecvWaveform.h.

◆ getRawSample()

uint32_t ccWaveformProxy::getRawSample ( uint32_t  i) const
inline

Returns the (raw) value of a given sample.

Definition at line 209 of file ecvWaveform.h.

Referenced by define_ccWaveform().

◆ getSample()

double ccWaveformProxy::getSample ( uint32_t  i) const
inline

Returns the (real) value of a given sample (in volts)

Definition at line 214 of file ecvWaveform.h.

Referenced by ccWaveWidget::init().

◆ getSamplePos()

CCVector3 ccWaveformProxy::getSamplePos ( float  i,
const CCVector3 P0 
) const
inline

Returns the sample position in 3D.

Definition at line 234 of file ecvWaveform.h.

Referenced by define_ccWaveform().

◆ isValid()

bool ccWaveformProxy::isValid ( ) const
inline

Returns whether the waveform (proxy) is valid or not.

Definition at line 198 of file ecvWaveform.h.

Referenced by define_ccWaveform(), ccWaveWidget::init(), ccWaveDialog::onExportWaveAsCSV(), and LASFWFFilter::saveToFile().

◆ numberOfSamples()

uint32_t ccWaveformProxy::numberOfSamples ( ) const
inline

Returns the number of samples.

Definition at line 251 of file ecvWaveform.h.

Referenced by ccWaveWidget::init(), and ccWaveDialog::onExportWaveAsCSV().

◆ toASCII()

bool ccWaveformProxy::toASCII ( const QString &  filename) const
inline

Exports (real) samples to an ASCII file.

Definition at line 229 of file ecvWaveform.h.

References filename.

Referenced by define_ccWaveform(), and ccWaveDialog::onExportWaveAsCSV().

◆ waveform()

const ccWaveform& ccWaveformProxy::waveform ( ) const
inline

Returns the waveform.

Definition at line 256 of file ecvWaveform.h.

Referenced by define_ccWaveform(), and LASFWFFilter::saveToFile().

Member Data Documentation

◆ m_d

const WaveformDescriptor& ccWaveformProxy::m_d
protected

Associated descriptor.

Definition at line 262 of file ecvWaveform.h.

◆ m_storage

const uint8_t* ccWaveformProxy::m_storage
protected

Associated storage data.

Definition at line 264 of file ecvWaveform.h.

◆ m_w

const ccWaveform& ccWaveformProxy::m_w
protected

Associated ccWaveform instance.

Definition at line 260 of file ecvWaveform.h.


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