IUF-SDK-3
Interventional Ultrasound Library
iuf3DTransducerElementList.h File Reference

Go to the source code of this file.

Macros

#define IU3DTEL_INVALID   (iu3dtel_t) NULL
 

Typedefs

typedef Iuf3DTransducerElementListiu3dtel_t
 A 3D transducer element list is a list object of 3D transducer elements. Elements are created first with iuf3DTransducerElementCreate(), and then added to a list using iuf3DTransducerSetElement(), after an empty list is created with iuf3DTransducerElementListCreate(). More...
 

Functions

iu3dtel_t iuf3DTransducerElementListCreate (int numElements)
 Create an empty list of 3D elements with length num3DTransducerElements. More...
 
int iuf3DTransducerElementListDeepDelete (iu3dtel_t list)
 Delete an existing list of elements including all its elements individually. More...
 
int iuf3DTransducerElementListDelete (iu3dtel_t list)
 Delete an existing list of elements without deleting the individual elements. More...
 
int iuf3DTransducerElementListCompare (iu3dtel_t reference, iu3dtel_t actual)
 Check if two lists are identical. the order of the parameters doesn't matter. More...
 
int iuf3DTransducerElementListGetSize (iu3dtel_t list)
 Returns the length of the element list. More...
 
iu3dte_t iuf3DTransducerElementListGet (iu3dtel_t list, int index)
 Returns the element from a transducer's element list. More...
 
int iuf3DTransducerElementListSet (iu3dtel_t list, iu3dte_t member, int index)
 Sets the 3D element member in the transducer's list at index location index. More...
 

Macro Definition Documentation

◆ IU3DTEL_INVALID

#define IU3DTEL_INVALID   (iu3dtel_t) NULL

Typedef Documentation

◆ iu3dtel_t

A 3D transducer element list is a list object of 3D transducer elements. Elements are created first with iuf3DTransducerElementCreate(), and then added to a list using iuf3DTransducerSetElement(), after an empty list is created with iuf3DTransducerElementListCreate().

Function Documentation

◆ iuf3DTransducerElementListCompare()

int iuf3DTransducerElementListCompare ( iu3dtel_t  reference,
iu3dtel_t  actual 
)

Check if two lists are identical. the order of the parameters doesn't matter.

Returns
IUF_TRUE in case the list content of the list is th same or IUF_FALSE when they differ.
Parameters
referencethe reference list
actualthe list to be compared

◆ iuf3DTransducerElementListCreate()

iu3dtel_t iuf3DTransducerElementListCreate ( int  numElements)

Create an empty list of 3D elements with length num3DTransducerElements.

Returns
Returns the created list or IU3DTEL_INVALID in case this failed.
Parameters
numElementsthe number of elements that will go in the element list

◆ iuf3DTransducerElementListDeepDelete()

int iuf3DTransducerElementListDeepDelete ( iu3dtel_t  list)

Delete an existing list of elements including all its elements individually.

Returns
IUF_TRUE in case the list is deleted successfully or IUF_ERR_VALUE when something went wrong.
Parameters
listthe list that is to be deleted

◆ iuf3DTransducerElementListDelete()

int iuf3DTransducerElementListDelete ( iu3dtel_t  list)

Delete an existing list of elements without deleting the individual elements.

Returns
IUF_TRUE in case the list is deleted successfully or IUF_ERR_VALUE when something went wrong.
Parameters
listthe list that is to be deleted

◆ iuf3DTransducerElementListGet()

iu3dte_t iuf3DTransducerElementListGet ( iu3dtel_t  list,
int  index 
)

Returns the element from a transducer's element list.

Returns
the 3D element index.
Parameters
listThe transducer's element list
indexThe index of the element in the list

◆ iuf3DTransducerElementListGetSize()

int iuf3DTransducerElementListGetSize ( iu3dtel_t  list)

Returns the length of the element list.

Returns
the length of the element list or -1 in case of an error.
Parameters
listThe list with elements

◆ iuf3DTransducerElementListSet()

int iuf3DTransducerElementListSet ( iu3dtel_t  list,
iu3dte_t  member,
int  index 
)

Sets the 3D element member in the transducer's list at index location index.

Returns
IUF_E_OK in case of success or IUF_ERR_VALUE in case of invalid parameters.
Parameters
listThe list that will be updated
memberThe IufTransducerElement to add
indexThe location in he list