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

Waveform descriptor. More...

#include <ccWaveform.h>

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

Public Member Functions

 WaveformDescriptor ()
 Default constructor.
 
bool operator!= (const WaveformDescriptor &d) const
 Difference operator.
 
bool operator== (const WaveformDescriptor &d) const
 Equivalence operator.
 
bool isSerializable () const override
 Returns whether object is serializable of not. More...
 
bool toFile (QFile &out) const override
 Saves data to binary stream. More...
 
bool fromFile (QFile &in, short dataVersion, int flags, LoadedIDMap &oldToNewIDMap) override
 Loads data from binary stream. More...
 
- Public Member Functions inherited from ccSerializableObject
virtual ~ccSerializableObject ()=default
 Destructor.
 
virtual bool isSerializable () const
 Returns whether object is serializable of not. More...
 
virtual bool toFile (QFile &out) const
 Saves data to binary stream. More...
 
virtual bool fromFile (QFile &in, short dataVersion, int flags, LoadedIDMap &oldToNewIDMap)
 Loads data from binary stream. More...
 

Public Attributes

uint32_t numberOfSamples
 Number of samples.
 
uint32_t samplingRate_ps
 Sampling rate in pico seconds.
 
double digitizerGain
 Digitizer gain (VOLTS = OFFSET + GAIN * Raw_Waveform_Amplitude)
 
double digitizerOffset
 Digitizer offset (VOLTS = OFFSET + GAIN * Raw_Waveform_Amplitude)
 
uint8_t bitsPerSample
 Number of bits per sample.
 

Additional Inherited Members

- Public Types inherited from ccSerializableObject
enum  DeserializationFlags { DF_POINT_COORDS_64_BITS = 1 , DF_SCALAR_VAL_32_BITS = 2 }
 Deserialization flags (bit-field) More...
 
typedef QMultiMap< unsigned, unsigned > LoadedIDMap
 Map of loaded unique IDs (old ID --> new ID)
 
- Static Public Member Functions inherited from ccSerializableObject
static bool WriteError ()
 Sends a custom error message (write error) and returns 'false'. More...
 
static bool ReadError ()
 Sends a custom error message (read error) and returns 'false'. More...
 
static bool MemoryError ()
 Sends a custom error message (not enough memory) and returns 'false'. More...
 
static bool CorruptError ()
 Sends a custom error message (corrupted file) and returns 'false'. More...
 

Detailed Description

Waveform descriptor.

Member Function Documentation

◆ fromFile()

bool WaveformDescriptor::fromFile ( QFile &  in,
short  dataVersion,
int  flags,
LoadedIDMap oldToNewIDMap 
)
overridevirtual

Loads data from binary stream.

Parameters
ininput file (already opened)
dataVersionfile version
flagsdeserialization flags (see ccSerializableObject::DeserializationFlags)
oldToNewIDMapmap to link old IDs with new IDs
Returns
success

Reimplemented from ccSerializableObject.

◆ isSerializable()

bool WaveformDescriptor::isSerializable ( ) const
inlineoverridevirtual

Returns whether object is serializable of not.

Reimplemented from ccSerializableObject.

◆ toFile()

bool WaveformDescriptor::toFile ( QFile &  out) const
overridevirtual

Saves data to binary stream.

Parameters
outoutput file (already opened)
Returns
success

Reimplemented from ccSerializableObject.


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