|
| ccWaveform (uint8_t descriptorID=0) |
| Default constructor.
|
|
| ~ccWaveform () override=default |
| Destructor.
|
|
uint8_t | descriptorID () const |
| Returns the associated descriptor (ID) More...
|
|
void | setDescriptorID (uint8_t id) |
| Sets the associated descriptor (ID)
|
|
void | setDataDescription (uint64_t dataOffset, uint32_t byteCount) |
| Describes the waveform data.
|
|
uint32_t | getRawSample (uint32_t i, const WaveformDescriptor &descriptor, const uint8_t *dataStorage) const |
| Returns the (raw) value of a given sample.
|
|
double | getSample (uint32_t i, const WaveformDescriptor &descriptor, const uint8_t *dataStorage) const |
| Returns the (real) value of a given sample (in volts)
|
|
double | getRange (double &minVal, double &maxVal, const WaveformDescriptor &descriptor, const uint8_t *dataStorage) const |
| Returns the range of (real) samples.
|
|
bool | decodeSamples (std::vector< double > &values, const WaveformDescriptor &descriptor, const uint8_t *dataStorage) const |
| Decodes the samples and store them in a vector.
|
|
bool | toASCII (const QString &filename, const WaveformDescriptor &descriptor, const uint8_t *dataStorage) const |
| Exports (real) samples to an ASCII file.
|
|
CCVector3 | getSamplePos (float i, const CCVector3 &P0, const WaveformDescriptor &descriptor) const |
| Returns the sample position in 3D.
|
|
uint32_t | byteCount () const |
| Returns the number of allocated bytes.
|
|
uint64_t | dataOffset () const |
| Returns the byte offset to waveform data.
|
|
void | setDataOffset (uint64_t offset) |
| Sets the byte offset to waveform data.
|
|
const uint8_t * | data (const uint8_t *dataStorage) const |
| Gives access to the internal data.
|
|
void | setBeamDir (const CCVector3f &dir) |
| Sets the beam direction.
|
|
const CCVector3f & | beamDir () const |
| Returns the beam direction.
|
|
void | setEchoTime_ps (float time_ps) |
| Set the echo time (in picoseconds)
|
|
float | echoTime_ps () const |
| Returns the echo time (in picoseconds)
|
|
void | applyRigidTransformation (const ccGLMatrix &trans) |
| Applies a rigid transformation (on the beam direction)
|
|
uint8_t | returnIndex () const |
| Returns the return index.
|
|
void | setReturnIndex (uint8_t index) |
| Sets the return index.
|
|
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...
|
|
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...
|
|