UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | List of all members
ZqbAbstrTrace Class Reference

#include <zqb_abstr_trace.hpp>

Inheritance diagram for ZqbAbstrTrace:
ZqbRealTrace ZqbRealTrace

Public Member Functions

 ZqbAbstrTrace (int samples, float dt=1.0, float t0=0.0, const int actual[2]=NULL)
 
 ZqbAbstrTrace (const ZqbAbstrTrace &atr)
 
virtual ~ZqbAbstrTrace ()
 
ZqbAbstrTraceoperator= (const ZqbAbstrTrace &atr)
 
virtual void assign (int samples, float dt=1.0, float t0=0.0, const int actual[2]=NULL)
 
virtual void setAllActual ()
 
virtual int time2sample (float t) const
 
virtual float sample2time (int i) const
 
virtual float toTime (float fSampleIndex) const
 
virtual float fromTime (float fTime) const
 
virtual bool operator== (const ZqbAbstrTrace &atr) const
 
bool operator!= (const ZqbAbstrTrace &atr) const
 
virtual float sample (const float *trace, float t, int order=1) const
 
void getTimes (double t[2]) const
 
 ZqbAbstrTrace (int samples, float dt=1.0, float t0=0.0, const int actual[2]=NULL)
 
 ZqbAbstrTrace (const ZqbAbstrTrace &atr)
 
virtual ~ZqbAbstrTrace ()
 
ZqbAbstrTraceoperator= (const ZqbAbstrTrace &atr)
 
virtual void assign (int samples, float dt=1.0, float t0=0.0, const int actual[2]=NULL)
 
virtual void setAllActual ()
 
virtual int time2sample (float t) const
 
virtual float sample2time (int i) const
 
virtual float toTime (float fSampleIndex) const
 
virtual float fromTime (float fTime) const
 
virtual bool operator== (const ZqbAbstrTrace &atr) const
 
bool operator!= (const ZqbAbstrTrace &atr) const
 
virtual float sample (const float *trace, float t, int order=1) const
 
void getTimes (double t[2]) const
 

Public Attributes

int m_nSamples
 
int m_iActual [2]
 
float m_fDt
 
float m_fT0
 

Detailed Description

Minimal abstract trace description structure.

Constructor & Destructor Documentation

ZqbAbstrTrace::ZqbAbstrTrace ( int  samples,
float  dt = 1.0,
float  t0 = 0.0,
const int  actual[2] = NULL 
)

Create trace parameters from exact numbers.

ZqbAbstrTrace::ZqbAbstrTrace ( const ZqbAbstrTrace atr)

Create trace parameters as a copy of some object.

virtual ZqbAbstrTrace::~ZqbAbstrTrace ( )
virtual

Destructor.

ZqbAbstrTrace::ZqbAbstrTrace ( int  samples,
float  dt = 1.0,
float  t0 = 0.0,
const int  actual[2] = NULL 
)

Create trace parameters from exact numbers.

ZqbAbstrTrace::ZqbAbstrTrace ( const ZqbAbstrTrace atr)

Create trace parameters as a copy of some object.

virtual ZqbAbstrTrace::~ZqbAbstrTrace ( )
virtual

Destructor.

Member Function Documentation

virtual void ZqbAbstrTrace::assign ( int  samples,
float  dt = 1.0,
float  t0 = 0.0,
const int  actual[2] = NULL 
)
virtual

Assign new values.

virtual void ZqbAbstrTrace::assign ( int  samples,
float  dt = 1.0,
float  t0 = 0.0,
const int  actual[2] = NULL 
)
virtual

Assign new values.

virtual float ZqbAbstrTrace::fromTime ( float  fTime) const
virtual

Convert time to floating point sample index.

virtual float ZqbAbstrTrace::fromTime ( float  fTime) const
virtual

Convert time to floating point sample index.

void ZqbAbstrTrace::getTimes ( double  t[2]) const
inline

Get times of the trace.

void ZqbAbstrTrace::getTimes ( double  t[2]) const
inline

Get times of the trace.

bool ZqbAbstrTrace::operator!= ( const ZqbAbstrTrace atr) const
inline

Check for not equal number of samples, dt and t0.

bool ZqbAbstrTrace::operator!= ( const ZqbAbstrTrace atr) const
inline

Check for not equal number of samples, dt and t0.

ZqbAbstrTrace& ZqbAbstrTrace::operator= ( const ZqbAbstrTrace atr)

Assign trace parameters.

ZqbAbstrTrace& ZqbAbstrTrace::operator= ( const ZqbAbstrTrace atr)

Assign trace parameters.

virtual bool ZqbAbstrTrace::operator== ( const ZqbAbstrTrace atr) const
virtual

Check for equal number of samples, dt and t0.

virtual bool ZqbAbstrTrace::operator== ( const ZqbAbstrTrace atr) const
virtual

Check for equal number of samples, dt and t0.

virtual float ZqbAbstrTrace::sample ( const float *  trace,
float  t,
int  order = 1 
) const
virtual

Return sample value for given time considering interpolation of given order (0, 1, 2 or 3) and sample bounds.

virtual float ZqbAbstrTrace::sample ( const float *  trace,
float  t,
int  order = 1 
) const
virtual

Return sample value for given time considering interpolation of given order (0, 1, 2 or 3) and sample bounds.

virtual float ZqbAbstrTrace::sample2time ( int  i) const
virtual

Convert sample index to time.

virtual float ZqbAbstrTrace::sample2time ( int  i) const
virtual

Convert sample index to time.

virtual void ZqbAbstrTrace::setAllActual ( )
virtual

Make the whole range to be actual.

virtual void ZqbAbstrTrace::setAllActual ( )
virtual

Make the whole range to be actual.

virtual int ZqbAbstrTrace::time2sample ( float  t) const
virtual

Convert time to sample index.

virtual int ZqbAbstrTrace::time2sample ( float  t) const
virtual

Convert time to sample index.

virtual float ZqbAbstrTrace::toTime ( float  fSampleIndex) const
virtual

Convert floating point sample index to time.

virtual float ZqbAbstrTrace::toTime ( float  fSampleIndex) const
virtual

Convert floating point sample index to time.

Member Data Documentation

float ZqbAbstrTrace::m_fDt

sampling rate, ms

float ZqbAbstrTrace::m_fT0

time of the first sample, ms

int ZqbAbstrTrace::m_iActual

actual range of samples

int ZqbAbstrTrace::m_nSamples

number of samples


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