idcnt-ido.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
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;
00066 int DimX;
00067 int Numero;
00068 char *_message,*_fichier;
00069 int BitsPerPixel;
00070 int Type;
00071 }
PRIVATE_CONTOUR;
00072
00073
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
1.3.7