qCC_db version 2.13.alpha (Qt) - 31 May 2022
CloudCompare 3D entities
Public Member Functions | Protected Attributes | List of all members
ccWaveformProxy Class Reference

Waveform proxy. More...

#include <ccWaveform.h>

Collaboration diagram for ccWaveformProxy:
Collaboration graph
[legend]

Public Member Functions

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

Protected Attributes

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

Detailed Description

Waveform proxy.

For easier access to the waveform data

Member Function Documentation

◆ 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.

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