IUF-SDK-3
Interventional Ultrasound Library
iuf2DTransducerElement.c File Reference
#include <math.h>
#include <stdlib.h>
#include <iuf.h>
#include <iuf2DSizePrivate.h>
#include <iuf2DTransducerElementPrivate.h>
#include <iuf3DTransducerElementPrivate.h>
#include <iufPositionPrivate.h>
#include <iufTransducerElementPrivate.h>

Functions

iu2dte_t iuf2DTransducerElementCreate (iu2dp_t pos, float theta, iu2ds_t size)
 Creates a 2D transducer element that is decribed by a 2D position, an angle theta and a 2D size. More...
 
int iuf2DTransducerElementDeepDelete (iu2dte_t element)
 Removes the 2D element object an its sub-objects. More...
 
int iuf2DTransducerElementDelete (iu2dte_t element)
 Removes the 2D element object without deleting the position and size sub-objects. More...
 
int iuf2DTransducerElementCompare (iu2dte_t reference, iu2dte_t actual)
 Compares the values of 2 transducer elements. the order of the arguments don't matter. More...
 
int iuf2DTransducerElementSave (iu2dte_t element, hid_t handle)
 
iu2dte_t iuf2DTransducerElementLoad (hid_t handle)
 
iu2dp_t iuf2DTransducerElementGetPosition (iu2dte_t element)
 returns the 2D position of the iuf2DTransducerElement. More...
 
float iuf2DTransducerElementGetAngle (iu2dte_t element)
 returns the angle of the iuf2DTransducerElement. More...
 
iu2ds_t iuf2DTransducerElementGetSize (iu2dte_t element)
 returns the 2D size of the iuf2DTransducerElement. More...
 

Function Documentation

◆ iuf2DTransducerElementCompare()

int iuf2DTransducerElementCompare ( iu2dte_t  reference,
iu2dte_t  actual 
)

Compares the values of 2 transducer elements. the order of the arguments don't matter.

Returns
IUF_FALSE in case the elements are different and IUF_TRUE when the element are identical.
Parameters
referencethe transducer element to be compared
actualthe transducer element that is compared

◆ iuf2DTransducerElementCreate()

iu2dte_t iuf2DTransducerElementCreate ( iu2dp_t  pos,
float  theta,
iu2ds_t  size 
)

Creates a 2D transducer element that is decribed by a 2D position, an angle theta and a 2D size.

Returns
returns the created element or IU2DTE_INVALID in case of invalid parameters.
Parameters
posthe 2D position (x,z) in meters
thetathe angle over the y-axis in radians of the element
sizethe size (sx,sz) in meters of the element

◆ iuf2DTransducerElementDeepDelete()

int iuf2DTransducerElementDeepDelete ( iu2dte_t  element)

Removes the 2D element object an its sub-objects.

Returns
IUF_ERR_VALUE in case something went wrong or IUF_TRUE when the element has been successfully deleted.

◆ iuf2DTransducerElementDelete()

int iuf2DTransducerElementDelete ( iu2dte_t  element)

Removes the 2D element object without deleting the position and size sub-objects.

Returns
IUF_ERR_VALUE in case something went wrong or IUF_TRUE when the element has been successfully deleted.

◆ iuf2DTransducerElementGetAngle()

float iuf2DTransducerElementGetAngle ( iu2dte_t  element)

returns the angle of the iuf2DTransducerElement.

Returns
the angle of the iuf2DTransducerElement (theta) in radians.
Parameters
elementthe element of interest

◆ iuf2DTransducerElementGetPosition()

iu2dp_t iuf2DTransducerElementGetPosition ( iu2dte_t  element)

returns the 2D position of the iuf2DTransducerElement.

Returns
the 2D position of the iuf2DTransducerElement (x,z) in meters.
Parameters
elementthe element of interest

◆ iuf2DTransducerElementGetSize()

iu2ds_t iuf2DTransducerElementGetSize ( iu2dte_t  element)

returns the 2D size of the iuf2DTransducerElement.

Returns
the 2D size of the iuf2DTransducerElement (sx,sz) in meters.
Parameters
elementthe element of interest

◆ iuf2DTransducerElementLoad()

iu2dte_t iuf2DTransducerElementLoad ( hid_t  handle)

◆ iuf2DTransducerElementSave()

int iuf2DTransducerElementSave ( iu2dte_t  element,
hid_t  handle 
)