40#ifndef AC_TOOLBOX_RES_READER_DEFINITIONS_H
41#define AC_TOOLBOX_RES_READER_DEFINITIONS_H
167 int getIndex(
float value,
float* array, int32_t array_size )
const;
282 int getPressureIndex(
double tx_freq,
double tx_depth,
double rx_depth,
double rx_range,
double theta = 0.0 )
const;
291 int getIndex(
float value,
float* array, int32_t array_size )
const;
300 int getIndex(
double value,
double* array, int32_t array_size )
const;
344 virtual Pressure*
readAvgPressure(
double frequency,
double tx_depth,
double start_rx_depth,
double start_rx_range,
double end_rx_depth,
double end_rx_range );
354 virtual Pressure*
readPressure(
double frequency,
double tx_depth,
double rx_depth,
double rx_range )
const;
366 virtual TimeArr*
readTimeArr(
double frequency,
double tx_depth,
double rx_depth,
double rx_range )
const;
399 double last_tx_depth;
401 double last_start_rx_depth;
403 double last_start_rx_range;
405 double last_end_rx_depth;
407 double last_end_rx_range;
409 ::std::complex<double> last_ret_value;
423 ::std::complex<double>
readMapAvgPressure(
double frequency,
double tx_depth,
double start_rx_depth,
double start_rx_range,
double end_rx_depth,
double end_rx_range,
double theta = 0.0 );
435 ::std::complex<double>
accessMap(
double frequency,
double tx_depth,
double rx_depth,
double rx_range,
double theta = 0.0 )
const;
Complex attenuated pressure class.
Definition pressure-definitions.h:59
Abstract class for channel simulator result files processing.
Definition res-reader.h:59
class for storing data of any acoustic toolbox SHD file
Definition ac-toolbox-shd-reader.h:176
char * plot_type
Definition ac-toolbox-shd-reader.h:197
double frequency
Definition ac-toolbox-shd-reader.h:203
~ShdData_v1()
Definition ac-toolbox-shd-reader.h:185
::std::complex< double > * press_values
Definition ac-toolbox-shd-reader.h:262
float * rx_depths
Definition ac-toolbox-shd-reader.h:239
int32_t Ntheta
Definition ac-toolbox-shd-reader.h:212
int32_t Nrx_per_range
Definition ac-toolbox-shd-reader.h:255
int32_t Nrr
Definition ac-toolbox-shd-reader.h:245
int32_t Nrd
Definition ac-toolbox-shd-reader.h:234
double * theta
Definition ac-toolbox-shd-reader.h:217
int getPressureIndex(double tx_freq, double tx_depth, double rx_depth, double rx_range, double theta=0.0) const
Definition ac-toolbox-shd-reader.cpp:153
int getIndex(float value, float *array, int32_t array_size) const
Definition ac-toolbox-shd-reader.cpp:123
int32_t record_length
Definition ac-toolbox-shd-reader.h:191
double * rx_ranges
Definition ac-toolbox-shd-reader.h:250
int32_t Nsd
Definition ac-toolbox-shd-reader.h:223
void initialize()
Definition ac-toolbox-shd-reader.h:268
float * tx_depths
Definition ac-toolbox-shd-reader.h:228
class for storing data of any acoustic toolbox SHD file
Definition ac-toolbox-shd-reader.h:57
int32_t Nrd
Definition ac-toolbox-shd-reader.h:113
int getPressureIndex(double tx_depth, double rx_depth, double rx_range, double theta=0.0) const
Definition ac-toolbox-shd-reader.cpp:91
float * tx_depths
Definition ac-toolbox-shd-reader.h:107
float * theta
Definition ac-toolbox-shd-reader.h:96
int32_t Nrx_per_range
Definition ac-toolbox-shd-reader.h:134
~ShdData()
Definition ac-toolbox-shd-reader.h:68
::std::complex< double > * press_values
Definition ac-toolbox-shd-reader.h:140
int32_t Nsd
Definition ac-toolbox-shd-reader.h:102
float frequency
Definition ac-toolbox-shd-reader.h:86
int32_t record_length
Definition ac-toolbox-shd-reader.h:74
float * rx_ranges
Definition ac-toolbox-shd-reader.h:129
int32_t Ntheta
Definition ac-toolbox-shd-reader.h:91
void initialize()
Definition ac-toolbox-shd-reader.h:146
int32_t Nrr
Definition ac-toolbox-shd-reader.h:124
int getIndex(float value, float *array, int32_t array_size) const
Definition ac-toolbox-shd-reader.cpp:76
float * rx_depths
Definition ac-toolbox-shd-reader.h:118
char * plot_type
Definition ac-toolbox-shd-reader.h:80
Class for reading and manipulating results provided by any acoustic toolbox SHD file.
Definition ac-toolbox-shd-reader.h:309
virtual bool initialize()
Definition ac-toolbox-shd-reader.cpp:208
ShdData shd_file
Definition ac-toolbox-shd-reader.h:392
virtual Pressure * readPressure(double frequency, double tx_depth, double rx_depth, double rx_range) const
Definition ac-toolbox-shd-reader.cpp:532
virtual TimeArr * readTimeArr(double frequency, double tx_depth, double rx_depth, double rx_range) const
Definition ac-toolbox-shd-reader.cpp:538
bool shd_header_collected
Definition ac-toolbox-shd-reader.h:375
::std::complex< double > accessMap(double frequency, double tx_depth, double rx_depth, double rx_range, double theta=0.0) const
Definition ac-toolbox-shd-reader.cpp:544
bool getShdHeader()
Definition ac-toolbox-shd-reader.cpp:216
virtual Pressure * readAvgPressure(double frequency, double tx_depth, double start_rx_depth, double start_rx_range, double end_rx_depth, double end_rx_range)
Definition ac-toolbox-shd-reader.cpp:526
::std::ifstream file_reader
Definition ac-toolbox-shd-reader.h:386
bool shd_file_collected
Definition ac-toolbox-shd-reader.h:380
bool getShdFile()
Definition ac-toolbox-shd-reader.cpp:393
ShdResReader()
Definition ac-toolbox-shd-reader.cpp:167
::std::complex< double > readMapAvgPressure(double frequency, double tx_depth, double start_rx_depth, double start_rx_range, double end_rx_depth, double end_rx_range, double theta=0.0)
Definition ac-toolbox-shd-reader.cpp:561
ShdData_v1 shd_file_v1
Definition ac-toolbox-shd-reader.h:397
Channel power delay profile class.
Definition time-arrival-definitions.h:82
Abstract class that provides the interface for initializing and running a channel simulator.
Definition woss.h:89
Provides the interface for woss::ResReader class.
Definitions and library for woss::TimeArr class.