IUF-SDK-3
Interventional Ultrasound Library
iufPattern.c File Reference
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <iuf.h>
#include <iufPatternPrivate.h>

Data Structures

struct  IufPattern
 

Functions

iupa_t iufPatternCreate (float timeInFrame, const char *pPulseLabel, const char *pSourceLabel, const char *pChannelMapLabel, const char *pApodizationLabel, const char *pReceiveSettingsLabel)
 create a pattern at time timeInFrame using labels to reference a pulse, source, channelMap, apodization and receiveSettings respectively More...
 
int iufPatternDelete (iupa_t pattern)
 Delete a pattern. More...
 
int iufPatternCompare (iupa_t reference, iupa_t actual)
 Compare two patterns with each other. More...
 
int iufPatternSave (iupa_t pattern, hid_t handle)
 
iupa_t iufPatternLoad (hid_t handle)
 
const char * iufPatternGetPulseLabel (iupa_t pattern)
 Get the pulse label of the IufPattern. More...
 
const char * iufPatternGetSourceLabel (iupa_t pattern)
 Get the source label of the IufPattern. More...
 
const char * iufPatternGetChannelMapLabel (iupa_t pattern)
 Get the receiveChannelMap label of the IufPattern. More...
 
const char * iufPatternGetApodizationLabel (iupa_t pattern)
 Get the apodization label of the IufPattern. More...
 
const char * iufPatternGetReceivesettingsLabel (iupa_t pattern)
 Get the receiveSettings label of the IufPattern. More...
 
float iufPatternGetTimeInFrame (iupa_t pattern)
 Get the time of the IufPattern in the frame. More...
 

Data Structure Documentation

◆ IufPattern

struct IufPattern
Data Fields
const char * pApodizationLabel
const char * pChannelMapLabel
const char * pPulseLabel
const char * pReceiveSettingsLabel
const char * pSourceLabel
float timeInFrame

Function Documentation

◆ iufPatternCompare()

int iufPatternCompare ( iupa_t  reference,
iupa_t  actual 
)

Compare two patterns with each other.

Returns
Returns IUF_TRUE when the patterns are equal and IUF_FALSE otherwise.
Parameters
referenceThe IufPattern to compare to
actualThe IufPattern to compare with

◆ iufPatternCreate()

iupa_t iufPatternCreate ( float  timeInFrame,
const char *  pPulseLabel,
const char *  pSourceLabel,
const char *  pChannelMapLabel,
const char *  pApodizationLabel,
const char *  pReceiveSettingsLabel 
)

create a pattern at time timeInFrame using labels to reference a pulse, source, channelMap, apodization and receiveSettings respectively

Returns
Returns the created IufPattern or IUPA_INVALID in case of an error.
Parameters
timeInFramerelative time (s) in a frame
pPulseLabelthe name of the pulse
pSourceLabelthe name of the source
pChannelMapLabelthe name of the channelMap
pApodizationLabelthe name of the apodization
pReceiveSettingsLabelthe name of the receiveSettings

◆ iufPatternDelete()

int iufPatternDelete ( iupa_t  pattern)

Delete a pattern.

Returns
Returns IUF_E_OK in case of success and IUF_ERR_VALUE in case of an error.
Parameters
patternThe IufPattern of interest

◆ iufPatternGetApodizationLabel()

const char* iufPatternGetApodizationLabel ( iupa_t  pattern)

Get the apodization label of the IufPattern.

Returns
Returns the label or NULL if the argument is invalid.
Parameters
patternThe IufPattern of interest

◆ iufPatternGetChannelMapLabel()

const char* iufPatternGetChannelMapLabel ( iupa_t  pattern)

Get the receiveChannelMap label of the IufPattern.

Returns
Returns the label or NULL if the argument is invalid.
Parameters
patternThe IufPattern of interest

◆ iufPatternGetPulseLabel()

const char* iufPatternGetPulseLabel ( iupa_t  pattern)

Get the pulse label of the IufPattern.

Returns
Returns the label or NULL if the argument is invalid.
Parameters
patternThe IufPattern of interest

◆ iufPatternGetReceivesettingsLabel()

const char* iufPatternGetReceivesettingsLabel ( iupa_t  pattern)

Get the receiveSettings label of the IufPattern.

Returns
Returns the label or NULL if the argument is invalid.
Parameters
patternThe IufPattern of interest

◆ iufPatternGetSourceLabel()

const char* iufPatternGetSourceLabel ( iupa_t  pattern)

Get the source label of the IufPattern.

Returns
Returns the label or NULL if the argument is invalid.
Parameters
patternThe IufPattern of interest

◆ iufPatternGetTimeInFrame()

float iufPatternGetTimeInFrame ( iupa_t  pattern)

Get the time of the IufPattern in the frame.

Returns
Returns the timestamp of the pattern in seconds or NAN in case of an error.
Parameters
patternThe IufPattern of interest

◆ iufPatternLoad()

iupa_t iufPatternLoad ( hid_t  handle)

◆ iufPatternSave()

int iufPatternSave ( iupa_t  pattern,
hid_t  handle 
)