University of Rochester / Ultrasound Research Laboratory
2D Array Library

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

TTxAper Class Reference

Class designed to control the transmit aperture of the 2D-array. More...

Inherits Aperture.

List of all members.

Public Members


Detailed Description

Class designed to control the transmit aperture of the 2D-array.

Contains functions and data specific to manipulation of the TxAperture. The primary data structure in this object is a 3D BYTE array which contains the transmit waveforms used for the TxAperture. An auxilliary array called compwaves is used to store the compensated (element equalized) version of the waveforms.

$Revision: 1.1 $

Examples:
pe3.cpp.

Member Function Documentation

TTxAper::TTxAper()

The Constructor

void TTxAper::SetFreq( float f)

Set the center frequency of the array (MHz)

void TTxAper::SetNumCycles( WORD n)

Set the number of cycles to be used if this is a SineTxwave. STWs are not yet implemented.

inline WORD TTxAper::GetNumCycles( void)

Returns the protected variable numcycles

inline float TTxAper::GetCenterFreq( void)

Returns the protected variable freq

Examples:
pe3.cpp.

WORD TTxAper::SetWaveforms( char *name)

This member sets the width and length from a file named name then loads waveforms and compwaves from the file.

WORD TTxAper::SetWaveforms( char *name, int ia, int iz)

This member reads the transmit waveforms from a .txw file and sets up the width and length for ascan ia and focal zone iz. It then loads waveforms and compwaves from the file. Currently, we are assuming that the .txw file only contains delays related to aberration correction. Focusing (Geometric) delays are taken from the delay array which is part of this object.

WORD TTxAper::SetWaveforms( float F_0, float DeltaF, float phase, float amp)

This version sets the Tx waveforms based on StdPulse Properties.

Examples:
pe3.cpp.

inline BYTE TTxAper::GetWavePoint( int i, int j, int k)

Returns the value of the 3D dataset waveforms at row i, column j, and time point k.

inline BYTE* TTxAper::GetWavePtr( int i, int j)

Returns a pointer to the Tx waveform at row i, column j

Examples:
Txaper.cpp.

WORD TTxAper::LoadBuffer( WPAIR pC0, WPAIR pC1, WPAIR aC0, WPAIR aC1)

Loads the necessary portion of the 3D Tx waveform into the UAS. The arguments pC0 and pC1 are the physical coordinates of corner 0 and 1. The arguments aC0 and aC1 are the aperture coordinates of corner 0 and 1.

Examples:
pe3.cpp.

TBool TTxAper::LoadMT( MuxTwoDType *mt, WPAIR pc0, WPAIR pc1)

Function Loads the based on the physical corners of the currently specified subaperture and returns bTRUE if any elements are actually active.

Examples:
pe3.cpp.

WORD TTxAper::Compensate( SystemProps *ap)

This version figures out the aperture placement, then compensates..

WORD TTxAper::Compensate( SystemProps *ap, WPAIR pC0)

This version allows the user to specify the aperture placement

Examples:
pe3.cpp and Txaper.cpp.

inline BYTE* TTxAper::GetCompPtr( int i, int j)

Returns a pointer to the Compensated Tx waveform at row i, column j

Examples:
Txaper.cpp.

WORD TTxAper::WriteCompAperture( FILE *fp)

Function writes Compensated TxAper waveforms to disk. Each write consists of a small header

  struct { 
    WORD nx,       // Number of rows
         ny,       // Number of cols
         nz,       // Number of points
         xcenter,  // Physical X of Aperture Center
         ycenter,  // Physical Y of Aperture Center
         bytes; }  // Number of bytes/data point

followed by the waveform data (BYTES) written in the following order:

  for each column
    for each row
      write the waveform
    next row
  next column

WORD TTxAper::WriteRawAperture( FILE *fp)

Function performs write raw TxAper waveforms to disk. Each write consists of a small header

  struct { 
    WORD nx,       // Number of rows
         ny,       // Number of cols
         nz,       // Number of points
         xcenter,  // Physical X of Aperture Center
         ycenter,  // Physical Y of Aperture Center
         bytes; }  // Number of bytes/data point

followed by the waveform data (BYTES) written in the following order:

  for each column
    for each row
      write the waveform
    next row
  next column

WORD TTxAper::ClearWaveforms( void)

This function clears the Tx waveforms

WORD TTxAper::TestTxWaveRam( size_t npts, size_t channel)


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