#include <wave_field.hpp>
|
WaveField | operator+ (const WaveField &wf) const |
|
WaveField | operator- (const WaveField &wf) const |
|
| WaveField () |
|
| WaveField (const Trace::Header &hdr, size_t size, size_t length, Trace::AmplT value) |
|
template<typename Iterator > |
| WaveField (Iterator first, Iterator last) |
|
| WaveField (const WaveField &that) |
|
virtual | ~WaveField () |
|
const_iterator | begin () const |
|
const_iterator | end () const |
|
const Trace & | at (size_t n) const |
|
const Trace & | operator[] (size_t n) const |
|
size_t | size () const |
|
bool | empty () const |
|
size_t | length () const |
|
Trace::TimeT | timestep () const |
|
Trace::TimeT | duration () const |
|
iterator | begin () |
|
iterator | end () |
|
Trace & | at (size_t n) |
|
Trace & | operator[] (size_t n) |
|
iterator | erase (iterator first, iterator last) |
|
void | clear () |
|
void | insert (iterator pos, size_t n, const Trace &tr=Trace()) |
|
void | push_back (const Trace &t) |
|
void | resize (size_t n, const Trace &tr=Trace()) |
|
WaveField & | fill (const Trace::AmplT &l) |
|
void | shift (Trace::TimeT s) |
|
void | shift (const std::vector< Trace::TimeT > &shifts) |
|
WaveField & | set_window (size_t trace, size_t traces, Trace::TimeT start, Trace::TimeT duration) |
|
const WaveField & | set_window (size_t trace, size_t traces, Trace::TimeT start, Trace::TimeT duration) const |
|
Trace::TimeT | get_window_timestart () const |
|
Trace::TimeT | get_window_duration () const |
|
void | remove_window () const |
|
bool | is_windowed () const |
|
bool | hasNAN () |
|
bool | hasInf () |
|
bool | hasNANInf () |
|
Constant iterator to amplitude of the trace.
Iterator to amplitude of the trace.
Default constructor for empty wavefield.
Constructs wavefield with provided number of traces with defined length.
- Parameters
-
hdr | Header for all traces. |
size | Number of traces. |
length | Length of each traces. |
value | All amplitudes default value. |
template<typename Iterator >
WaveField::WaveField |
( |
Iterator |
first, |
|
|
Iterator |
last |
|
) |
| |
|
inline |
Constructs wavefield from provided range of traces.
WaveField::WaveField |
( |
const WaveField & |
that | ) |
|
virtual WaveField::~WaveField |
( |
| ) |
|
|
virtual |
const Trace& WaveField::at |
( |
size_t |
n | ) |
const |
Trace& WaveField::at |
( |
size_t |
n | ) |
|
Returns the dirst trece iterator for reading.
Access to the first trace.
void WaveField::clear |
( |
| ) |
|
Removes all traces and windows if defined.
Duration of traces in the wavefield. Taken only from the first trace. Zero if empty wavefield.
bool WaveField::empty |
( |
| ) |
const |
Returns true if field is empty.
Returns after the last trace iterator for reading.
Access to the past-the-end trace.
Fill wavefields amplitudes with provided ampl value. Returns reference to this wavefield was filled.
Get current window duration.
Get start time of current window.
bool WaveField::hasInf |
( |
| ) |
|
True if has any Inf sample.
bool WaveField::hasNAN |
( |
| ) |
|
True if has any NAN sample.
bool WaveField::hasNANInf |
( |
| ) |
|
True if has any NAN or Inf sample.
Insert number n of traces at position pos.
bool WaveField::is_windowed |
( |
| ) |
const |
Returns true if wavefield has at least one window.
size_t WaveField::length |
( |
| ) |
const |
Lenght of traces in the wavefield. Taken only from the first trace. Zero if empty wavefield.
void WaveField::push_back |
( |
const Trace & |
t | ) |
|
Add new trace at the end of field.
void WaveField::remove_window |
( |
| ) |
const |
Remove the last added window. (Wavefield will be expanded.)
void WaveField::resize |
( |
size_t |
n, |
|
|
const Trace & |
tr = Trace() |
|
) |
| |
Resizes the field to contain n traces.
Set window for the wavefield and returns reference to the window as wavefield.
- Parameters
-
trace | The first trace. |
traces | Number of traces. |
start | Start time. |
duration | Duration of traces. |
Set window for the wavefield and returns constant reference to the window as wavefield.
- Parameters
-
trace | The first trace. |
traces | Number of traces. |
start | Start time. |
duration | Duration of traces. |
Shifts all traces to specified amount of milliseconds. If s is positive shift will be done to the right and otherwise to the left.
void WaveField::shift |
( |
const std::vector< Trace::TimeT > & |
shifts | ) |
|
Multiple shifts using single shift method declared above.
size_t WaveField::size |
( |
| ) |
const |
Timestep of traces in the wavefield. Taken only from the first trace. Zero if empty wavefield.
std::vector<Window> WaveField::m_win_stack |
|
mutableprotected |
The documentation for this class was generated from the following file:
- /net/opt/univers/ubp-i-15.3-centos7-x64.urij/include/s2proc/wave_field.hpp