Top | ![]() |
![]() |
![]() |
![]() |
MiaLandmarklist * | mia_landmarklist_new () |
gboolean | mia_landmarklist_insert () |
MiaLandmark * | mia_landmarklist_get_landmark () |
void | mia_landmarklist_delete_landmark () |
void | mia_landmarklist_set_name () |
const gchar * | mia_landmarklist_get_name () |
const gchar * | mia_landmarklist_get_selected () |
void | mia_landmarklist_set_selected () |
void | mia_landmarklist_foreach () |
void | mia_landmarklist_clear_locations () |
gboolean | mia_landmarklist_xmlio_write () |
gboolean | mia_landmarklist_test () |
A MiaLandmarklist comprises a series of anatomical landmarks stored as MiaLandmark. Functions are provided to manupilate and iterate the landmark list.
MiaLandmarklist *
mia_landmarklist_new (const gchar *name
);
Create a new landmark list with the given name.
gboolean mia_landmarklist_insert (MiaLandmarklist *self
,MiaLandmark *lm
);
Insert the landmark lm into the landmark list if it doesn't already exists.
MiaLandmark * mia_landmarklist_get_landmark (MiaLandmarklist *self
,const gchar *key
);
Retrive a landmark based on the given landmark name key
void mia_landmarklist_delete_landmark (MiaLandmarklist *self
,const gchar *key
);
Delete the landmark with name key
from the list if it exists.
void mia_landmarklist_set_name (MiaLandmarklist *self
,const gchar *name
);
(Re-)set the name of the lansmark list to name
.
const gchar *
mia_landmarklist_get_name (MiaLandmarklist *self
);
Retrive the name of the landmark list.
const gchar *
mia_landmarklist_get_selected (MiaLandmarklist *self
);
Get the currently selected landmark in self. No information is given whether the name actually exists within the landmark list.
void mia_landmarklist_set_selected (MiaLandmarklist *self
,const gchar *selected
);
Set the currently selected landmark based on the name of the passed landmark It is not tested whether the name actually exists.
void mia_landmarklist_foreach (MiaLandmarklist *self
,GHFunc callback
,gpointer user_data
);
Iterate over the landmark ist and execute callback
for each landmark.
void
mia_landmarklist_clear_locations (MiaLandmarklist *self
);
Clear the 3D location information for all landmarks.
gboolean mia_landmarklist_xmlio_write (xmlNodePtr parent
,xmlNsPtr ns
,MiaLandmarklist *list
);
This function adds the landmark list
as child node to the given parent
node.