Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals

idcnt-ido.h

Go to the documentation of this file.
00001 /************************************************************************* 00002 * $Id: idcnt-ido.h,v 1.1 2005/09/09 08:22:26 bellet Exp $ 00003 ************************************************************************** 00004 This software is governed by the CeCILL license under French law and 00005 abiding by the rules of distribution of free software. You can use, 00006 modify and/ or redistribute the software under the terms of the CeCILL 00007 license as circulated by CEA, CNRS and INRIA at the following URL 00008 "http://www.cecill.info". 00009 00010 As a counterpart to the access to the source code and rights to copy, 00011 modify and redistribute granted by the license, users are provided only 00012 with a limited warranty and the software's author, the holder of the 00013 economic rights, and the successive licensors have only limited 00014 liability. 00015 00016 In this respect, the user's attention is drawn to the risks associated 00017 with loading, using, modifying and/or developing or reproducing the 00018 software by the user in light of its specific status of free software, 00019 that may mean that it is complicated to manipulate, and that also 00020 therefore means that it is reserved for developers and experienced 00021 professionals having in-depth computer knowledge. Users are therefore 00022 encouraged to load and test the software's suitability as regards their 00023 requirements in conditions enabling the security of their systems and/or 00024 data to be ensured and, more generally, to use and operate it in the 00025 same conditions as regards security. 00026 00027 The fact that you are presently reading this means that you have had 00028 knowledge of the CeCILL license and that you accept its terms. 00029 00030 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de 00031 l'Image). All rights reserved. See License.txt for details. 00032 00033 Version 1.0 05/09/2005 00034 *************************************************************************/ 00035 00036 /* 00037 * Description : CoNTour object (bi dimensional) 00038 */ 00039 #ifndef __IDCNT_IDO_H__ 00040 #define __IDCNT_IDO_H__ 00041 #include "idgen.h" 00042 #include "idima-base.h" 00043 00044 #define CNT_CHAR (CNT | TY_CHAR) 00045 #define CNT_UCHAR (CNT | TY_UCHAR) 00046 #define CNT_SHORT (CNT | TY_SHORT) 00047 #define CNT_USHORT (CNT | TY_USHORT) 00048 #define CNT_LONG (CNT | TY_LONG) 00049 #define CNT_ULONG (CNT | TY_ULONG) 00050 #define CNT_FLOAT (CNT | TY_FLOAT) 00051 #define CNT_DOUBLE (CNT | TY_DOUBLE) 00052 00053 typedef void * PCONTOUR ; 00054 typedef IDXPOINT_CHAR * PCONTOUR_CHAR ; 00055 typedef IDXPOINT_UCHAR * PCONTOUR_UCHAR ; 00056 typedef IDXPOINT_FLOAT * PCONTOUR_FLOAT ; 00057 typedef IDXPOINT_DOUBLE * PCONTOUR_DOUBLE ; 00058 typedef IDXPOINT_SHORT * PCONTOUR_SHORT ; 00059 typedef IDXPOINT_USHORT * PCONTOUR_USHORT ; 00060 typedef IDXPOINT_LONG * PCONTOUR_LONG ; 00061 typedef IDXPOINT_ULONG * PCONTOUR_ULONG ; 00062 00063 typedef struct { 00064 int UsedNbX; 00065 int __dum; // pour alignement frontiere Double Mot 00066 int DimX; 00067 int Numero; 00068 char *_message,*_fichier; 00069 int BitsPerPixel; // nombre de bits reellement utilises 00070 int Type; // IMPERATIVEMENT DERNIER DE LA STRUCTURE 00071 } PRIVATE_CONTOUR; 00072 00073 // The following are unmatched by their SWIG counter-parts. 00074 00075 #include "idcnt-restricted.h" 00076 00077 #ifndef SWIG 00078 #define _IdCntPrivate(cnt) (((PRIVATE_CONTOUR*)(cnt))-1) 00079 00080 #define IdCntType(cnt_) ( _IdCntPrivate(cnt_)->Type) 00081 #define IdCntDimX(cnt_) ( _IdCntPrivate(cnt_)->DimX) 00082 #define IdCntSetX(contour_,i,val) (contour_)[(i)].x=(val) 00083 #define IdCntSetY(contour_,i,val) (contour_)[(i)].y=(val) 00084 #define IdCntGetX(contour_,i) (contour_)[(i)].x 00085 #define IdCntGetY(contour_,i) (contour_)[(i)].y 00086 #define IdCntModifyPoint(contour_,i,valx,valy) \ 00087 (contour_)[(i)].x=(valx),(contour_)[(i)].y=(valy) 00088 #define IdCntSameSizeAndType(i1,i2) ( (i1)&&(i2) \ 00089 && (IdCntDimX(i1)==IdCntDimX(i2)) \ 00090 && (IdCntType(i1)==IdCntType(i2)) ) 00091 #define IdCntSameSize(i1,i2) \ 00092 ( (i1)&&(i2) && (IdCntDimX(i1)==IdCntDimX(i2)) ) 00093 00094 00096 00097 #define IdCntNbPts(cnt_) ( _IdCntPrivate(cnt_)->DimX) 00098 #define IdCntUsedNbX(cnt_) ( _IdCntPrivate(cnt_)->UsedNbX) 00099 #define IdCntUsedNbPts(cnt_) ( _IdCntPrivate(cnt_)->UsedNbX) 00100 #define IdCntSetUsedNbX(cnt_,nb) ( _IdCntPrivate(cnt_)->UsedNbX=(nb)) 00101 #define IdCntSetUsedNbPts(cnt_,nb) ( _IdCntPrivate(cnt_)->UsedNbX=(nb)) 00102 #define IdCntGetUsedNbX(cnt_) ( _IdCntPrivate(cnt_)->UsedNbX) 00103 #define IdCntGetUsedNbPts(cnt_) ( _IdCntPrivate(cnt_)->UsedNbX) 00104 #endif 00105 00106 #ifdef SWIG 00107 int IdCntNbPts(PCONTOUR); 00108 int IdCntUsedNbX(PCONTOUR); 00109 int IdCntUsedNbPts(PCONTOUR); 00110 int IdCntSetUsedNbX(PCONTOUR,int); 00111 int IdCntSetUsedNbPts(PCONTOUR,int); 00112 int IdCntGetUsedNbX(PCONTOUR); 00113 int IdCntGetUsedNbPts(PCONTOUR); 00114 #endif 00115 00116 00117 00118 #endif

Generated on Wed Oct 19 09:28:33 2005 for SIMRI3D by doxygen 1.3.7