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

idsig-ido.h

Go to the documentation of this file.
00001 /************************************************************************* 00002 * $Id: idsig-ido.h,v 1.1 2005/09/09 08:22:40 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 * 00038 * Description : Declarations diverses permettant d'utiliser le type SIGNAL 00039 * de la bibliotheque LIBIDO 00040 * 00041 **************************************************************************/ 00042 00043 00044 00045 #ifndef __IDSIG_IDO_H__ 00046 #define __IDSIG_IDO_H__ 00047 00048 00049 #include "idgen.h" 00050 #include "idswig.h" 00051 00052 /* types des signaux 1d */ 00053 00054 #define SIG_CHAR (SIG | TY_CHAR) 00055 #define SIG_UCHAR (SIG | TY_UCHAR) 00056 #define SIG_SHORT (SIG | TY_SHORT) 00057 #define SIG_USHORT (SIG | TY_USHORT) 00058 #define SIG_LONG (SIG | TY_LONG) 00059 #define SIG_ULONG (SIG | TY_ULONG) 00060 #define SIG_FLOAT (SIG | TY_FLOAT) 00061 #define SIG_DOUBLE (SIG | TY_DOUBLE) 00062 #define SIG_COMPLEX (SIG | TY_COMPLEX) 00063 #define SIG_RGB (SIG | TY_RGB) 00064 #define SIG_COMPLEX_DOUBLE (SIG | TY_COMPLEX_DOUBLE) 00065 #define SIG_COMPLEX_FLOAT (SIG | TY_COMPLEX_FLOAT ) 00066 #define SIG_COMPLEX_CHAR (SIG | TY_COMPLEX_CHAR ) 00067 #define SIG_COMPLEX_UCHAR (SIG | TY_COMPLEX_UCHAR ) 00068 #define SIG_COMPLEX_SHORT (SIG | TY_COMPLEX_SHORT ) 00069 #define SIG_COMPLEX_USHORT (SIG | TY_COMPLEX_USHORT) 00070 #define SIG_COMPLEX_LONG (SIG | TY_COMPLEX_LONG ) 00071 #define SIG_COMPLEX_ULONG (SIG | TY_COMPLEX_ULONG ) 00072 #define SIG_POINTER (SIG | TY_POINTER) 00073 00074 /* structure SIGNAL */ 00075 00076 typedef void * PSIGNAL ; 00077 typedef char * PSIGNAL_CHAR ; 00078 typedef unsigned char * PSIGNAL_UCHAR ; 00079 typedef float * PSIGNAL_FLOAT ; 00080 typedef double * PSIGNAL_DOUBLE ; 00081 typedef COMPLEX * PSIGNAL_COMPLEX ; 00082 typedef RGB * PSIGNAL_RGB ; 00083 typedef short * PSIGNAL_SHORT ; 00084 typedef unsigned short * PSIGNAL_USHORT ; 00085 typedef long * PSIGNAL_LONG ; 00086 typedef unsigned long * PSIGNAL_ULONG ; 00087 typedef COMPLEX_DOUBLE * PSIGNAL_COMPLEX_DOUBLE ; 00088 typedef COMPLEX_FLOAT * PSIGNAL_COMPLEX_FLOAT ; 00089 typedef COMPLEX_CHAR * PSIGNAL_COMPLEX_CHAR ; 00090 typedef COMPLEX_UCHAR * PSIGNAL_COMPLEX_UCHAR ; 00091 typedef COMPLEX_SHORT * PSIGNAL_COMPLEX_SHORT ; 00092 typedef COMPLEX_USHORT * PSIGNAL_COMPLEX_USHORT ; 00093 typedef COMPLEX_LONG * PSIGNAL_COMPLEX_LONG ; 00094 typedef COMPLEX_ULONG * PSIGNAL_COMPLEX_ULONG ; 00095 typedef void ** PSIGNAL_POINTER; 00096 00097 typedef struct { 00098 int UsedNbX; /* JPR */ 00099 int __dum; /* pour alignement frontiere Double Mot */ 00100 int DimX; 00101 int Numero; 00102 char *_message,*_fichier; 00103 int BitsPerPixel; /* nombre de bits reellement utilises */ 00104 int Type; /* IMPERATIVEMENT DERNIER DE LA STRUCTURE */ 00105 00106 } PRIVATE_SIGNAL; 00107 00108 00109 #ifndef SWIG 00110 #define _IdSigPrivate(sig) (((PRIVATE_SIGNAL*)(sig) )-1) 00111 00112 #define IdSigDimX(sig_) ( _IdSigPrivate(sig_)->DimX) 00113 #define IdSigUsedNbX(sig_) ( _IdSigPrivate(sig_)->UsedNbX) 00114 00115 #define IdSigSetUsedNbX(sig_,nb) ( _IdSigPrivate(sig_)->UsedNbX=(nb) ) 00116 #define IdSigGetUsedNbX(sig_) ( _IdSigPrivate(sig_)->UsedNbX) 00117 00118 #define IdSigType(sig_) ( _IdSigPrivate(sig_)->Type) 00119 00120 #elif 00121 int IdSigDimX(PSIGNAL); 00122 int IdSigUsedNbX(PSIGNAL); 00123 int IdSigGetUsedNbX(PSIGNAL); 00124 int IdSigSetUsedNbX(PSIGNAL,int); 00125 #endif 00126 00127 00128 00129 #endif

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