University of Rochester / Ultrasound Research Laboratory
2D Array Library

 
Class hierarchy   Compound list   File list   Header files   Compound Members   File Members   Examples  

SystemGain Class Reference

Class used to control the time varying gain of the 16 receiver channels. More...

List of all members.

Public Members


Detailed Description

Class used to control the time varying gain of the 16 receiver channels.

$Revision: 1.1 $

Examples:
pe3.cpp.

Member Function Documentation

SystemGain::SystemGain( float t0, float t1, BYTE v)

This constructor will set the time intervals and initialize the TGC ram

inline unsigned SystemGain::GetTgcWaveLength( void)

Returns the number of points in the TGC waveform

inline BYTE* SystemGain::GetTgcWaveform( unsigned i)

If the TGC type is a CommonGainWave (CGW) it will always return a pointer to the 0th TGC waveform. If the TGC type is an UncommonGainWave (UGW) it will return a pointer to the ith TGC waveform. The argument i is limited to a the range 0:15

void SystemGain::SetTgcLut( char *name)

Function used to read the static TGC lookup table. Data are read from an ascii file whose name is in the string name. The first line of the file should contain the number of entries N in the table. N is usually 256 corresponding to the 256 different TGC values. The next N lines should each contain 16 floating point values describing the gain (linear scale) of the 16 receiver channels.

void SystemGain::SetTgc4DLUT( char *name)

Function used to fill the dynamic TGC lookup table from the file name. The file contents are binary with the following format:

inline float SystemGain::GetGainVal( BYTE ichan, BYTE i) const

Function returns the value of the ith point on ichan from the static TGC lookup table

inline float* SystemGain::GetGainPtr( unsigned i)

If the TGC type is a CommonGainWave (CGW) it will always return a pointer to the 0th gain waveform. If the TGC type is an UncommonGainWave (UGW) it will return a pointer to the ith gain waveform. The argument i is limited to a the range 0:15

inline WORD* SystemGain::GetImpResPtr( WORD first, WORD last, WORD ichan)

inline float* SystemGain::GetTgcLutPtr( unsigned ichan)

Function returns a pointer to the Static TGC lookup table for channel ichan.

inline short SystemGain::GetImpResLength( void)

Function returns the number of points in the Impulse response waeform

inline float SystemGain::GetTimeWindow( void) const

Function returns the time interval overwhich the TGC waveform is valid

inline float SystemGain::GetTime0( void) const

Function reurns the private variable t_start

inline float SystemGain::GetTime1( void) const

Function reurns the private variable t_stop

inline float SystemGain::GetAcqDelay( void) const

Function reurns the private variable t_delay

inline float SystemGain::GetAcqTime( void) const

Function reurns the private variable acq_time

void SystemGain::InitTgcRam( BYTE val)

Sets the front part of each TgcRam to user specified value

void SystemGain::SetTgcValue( BYTE channel, BYTE val)

Sets the particular channel of TgcRam to user specified value


The documentation for this class was generated from the following files: Software written by
Larry Busse of LJB Development
and Bill Glenn, Al Murphy and John Losche of TETRAD Corporation
Documentation generated 3/11/1999