Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

markers.c

Go to the documentation of this file.
00001 /* ---------------------------------------------------------------------------- 00002 @COPYRIGHT : 00003 Copyright 1993,1994,1995 David MacDonald, 00004 McConnell Brain Imaging Centre, 00005 Montreal Neurological Institute, McGill University. 00006 Permission to use, copy, modify, and distribute this 00007 software and its documentation for any purpose and without 00008 fee is hereby granted, provided that the above copyright 00009 notice appear in all copies. The author and McGill University 00010 make no representations about the suitability of this 00011 software for any purpose. It is provided "as is" without 00012 express or implied warranty. 00013 ---------------------------------------------------------------------------- */ 00014 00015 #include <volume_io/internal_volume_io.h> 00016 #include <bicpl/objects.h> 00017 00018 #ifndef lint 00019 static char rcsid[] = "$Header: /software/source//libraries/bicpl/Objects/markers.c,v 1.4 2000/02/06 15:30:43 stever Exp $"; 00020 #endif 00021 00022 /* ----------------------------- MNI Header ----------------------------------- 00023 @NAME : initialize_marker 00024 @INPUT : type 00025 colour 00026 @OUTPUT : marker 00027 @RETURNS : 00028 @DESCRIPTION: Initializes the marker structure. 00029 @METHOD : 00030 @GLOBALS : 00031 @CALLS : 00032 @CREATED : Sep 25, 1995 David MacDonald 00033 @MODIFIED : 00034 ---------------------------------------------------------------------------- */ 00035 00036 public void initialize_marker( 00037 marker_struct *marker, 00038 Marker_types type, 00039 Colour colour ) 00040 { 00041 marker->type = type; 00042 marker->colour = colour; 00043 marker->label = NULL; 00044 marker->size = 1.0; 00045 marker->structure_id = 0; 00046 marker->patient_id = 0; 00047 } 00048 00049 /* ----------------------------- MNI Header ----------------------------------- 00050 @NAME : delete_marker 00051 @INPUT : marker 00052 @OUTPUT : 00053 @RETURNS : 00054 @DESCRIPTION: Deletes the marker object. 00055 @METHOD : 00056 @GLOBALS : 00057 @CALLS : 00058 @CREATED : Sep. 25, 1995 David MacDonald 00059 @MODIFIED : 00060 ---------------------------------------------------------------------------- */ 00061 00062 public void delete_marker( 00063 marker_struct *marker ) 00064 { 00065 delete_string( marker->label ); 00066 }

Generated on Wed Jul 28 09:10:57 2004 for BICPL by doxygen 1.3.7