Doxygen Source Code Documentation
SUMA_Macros.h File Reference
Go to the source code of this file.
Defines | |
#define | SUMA_NEW_ID(newcode, strn) |
#define | SUMA_WHAT_ENDIAN(End) |
#define | SUMA_OTHER_ENDIAN(End) |
#define | SUMA_SWAP_THIS(nip, chnk) |
#define | SUMA_READ_NUM(nip, fp, ex, chnk) |
a macro for reading one number at a time from a file | |
#define | SUMA_READ_NUM_BS(nip, fp, ex, chnk) |
#define | SUMA_READ_INT(nip, bs, fp, ex) |
a macro for reading one integer from a file pointer. | |
#define | SUMA_READ_FLOAT(nip, bs, fp, ex) |
#define | SUMA_SWAP_VEC(vec, N_alloc, chnk) |
#define | SUMA_IS_STRICT_POS(a) ( ((a) > 0) ? 1 : 0 ) |
#define | SUMA_IS_POS(a) ( ((a) >= 0) ? 1 : 0 ) |
#define | SUMA_IS_STRICT_NEG(a) ( ((a) < 0) ? 1 : 0 ) |
#define | SUMA_IS_NEG(a) ( ((a) <= 0) ? 1 : 0 ) |
#define | SUMA_SIGN(a) ( ((a) < 0) ? -1 : 1 ) |
#define | SUMA_MIN_PAIR(a, b) ( ((a) <= (b)) ? a : b ) |
#define | SUMA_MAX_PAIR(a, b) ( ((a) <= (b)) ? b : a ) |
#define | SUMA_ABS(a) ( ((a) < 0 ) ? -(a) : a ) |
#define | SUMA_ROUND(a) ( ( ((a) - (int)(a)) < 0.5 ) ? (int)(a) : ((int)(a)+1) ) |
#define | SUMA_CEIL(a) ( ( ((a) - (int)(a)) == 0.0 ) ? (int)(a) : ((int)(a)+1) ) |
#define | SUMA_3D_2_1D_index(i, j, k, ni, nij) ( (int)(i) + (int)(j) * (ni) + (int)(k) * (nij) ) |
#define | SUMA_1D_2_3D_index(ijk, i, j, k, ni, nij) |
#define | SUMA_POINT_AT_DISTANCE(U, P1, d, P2) |
Returns the two points that are at a distance d from P1 along the direction of U SUMA_POINT_AT_DISTANCE(U, P1, d, P2) Input paramters :. | |
#define | SUMA_POINT_AT_DISTANCE_NORM(U, P1, d, P2) |
Returns the two points that are at a distance d from P1 along the direction of U SUMA_POINT_AT_DISTANCE_NORM(U, P1, d, P2) Input paramters :. | |
#define | SUMA_FROM_BARYCENTRIC(u, v, p1, p2, p3, p) |
SUMA_FROM_BARYCENTRIC(u, v, p1, p2, p3, p) change from barycentric coordinates. | |
#define | SUMA_CART_2_SPH(c, s) |
calculate spherical coordinates from cartesian. Assuming coords are centered on 0 0 0. c XYZ coordinates in cartesian s rtp Rho, theta (azimuth), phi (elevation) in spherical | |
#define | SUMA_SPH_2_CART(s, c) |
calculate cartesian coordinates from spherical. Assuming coords are centered on 0 0 0. s rtp Rho, theta (azimuth), phi (elevation) in spherical c XYZ coordinates in cartesian | |
#define | SUMA_LARG_ABS(a, b) ( ( fabs((double)(a)) > fabs((double)(b)) ) ? fabs((double)(a)) : fabs((double)(b)) ) |
#define | SRM(r, c, nc) ((nc)*(r)+(c)) |
#define | SCM(r, c, nr) ((r)+(nr)*(c)) |
#define | SUMA_WRAP_VALUE(v, min, max) |
#define | SUMA_CLIP_VALUE(v, min, max) |
#define | SUMA_CLIP_UB(v, max) |
#define | SUMA_CLIP_LB(v, min) |
#define | SUMA_DIST_FROM_PLANE(P1, P2, P3, P, Dist) |
#define | SUMA_TRIANGLE_BOUNDING_BOX(n1, n2, n3, min_v, max_v) |
#define | SUMA_SET_GL_RENDER_MODE(m_PolyMode) |
#define | SUMA_SO_RADIUS(SO, r) |
calculates the average 'radius' of a surface. avg(dist(node_i,center)); | |
#define | SUMA_RECOMPUTE_NORMALS(SO) |
#define | SUMA_PAUSE_PROMPT(s) { int m_jnk; fprintf(SUMA_STDOUT,"Pausing: %s ...", s); fflush(SUMA_STDOUT); m_jnk = getchar(); fprintf(SUMA_STDOUT,"\n"); fflush(SUMA_STDOUT);} |
#define | SUMA_DIM_CENTER(SO) |
#define | SUMA_FACE_CENTROID(SO, ifc, c) |
#define | SUMA_FIND_EDGE(m_EL, m_n1, m_n2, m_iseg) |
#define | SUMA_DRAWN_ROI_TAIL_NODE(D_ROI, Ntail) |
#define | SUMA_DRAWN_ROI_HEAD_NODE(D_ROI, Nhead) |
#define | SUMA_MT_CROSS(m_MTCR_dest, m_MTCR_v1, m_MTCR_v2) |
#define | SUMA_MT_DOT(m_MTDOT_v1, m_MTDOT_v2) (m_MTDOT_v1[0]*m_MTDOT_v2[0]+m_MTDOT_v1[1]*m_MTDOT_v2[1]+m_MTDOT_v1[2]*m_MTDOT_v2[2]) |
#define | SUMA_MT_SUB(m_MTSUB_dest, m_MTSUB_v1, m_MTSUB_v2) |
#define | SUMA_NORM(m_NORM_dest, m_NORM_v1) m_NORM_dest= sqrt(m_NORM_v1[0]*m_NORM_v1[0]+m_NORM_v1[1]*m_NORM_v1[1]+m_NORM_v1[2]*m_NORM_v1[2]); |
#define | SUMA_TRI_AREA(m_TRIAREA_n0, m_TRIAREA_n1, m_TRIAREA_n2, m_TRIAREA_A) |
#define | SUMA_EULER_SO(SO, eu) |
SUMA_EULER_SO (SO, eu) computes the euler number = N - E + F eu = SO->N_Node - SO->EL->N_Distinct_Edges + SO->N_FaceSet eu = 2 for closed surfaces -1000 --> NULL SO -1001 --> NULL SO->EL. | |
#define | SUMA_IS_IN_VEC(m_vec, m_nel, m_val, m_loc) |
SUMA_IS_IN_VEC(vec, nel, val, loc);. | |
#define | SUMA_DBG_IN_NOTIFY(m_fname) |
#define | SUMA_DBG_OUT_NOTIFY(m_fname) |
#define | SUMA_REPORT_WICH_WIDGET_SV(m_w) |
SUMA_REPORT_WICH_WIDGET_SV macro for determining what type of widget m_w is and which sv it belongs to. | |
#define | SUMA_ANY_WIDGET2SV(m_w, m_sv, m_svi) |
SUMA_ANY_WIDGET2SV macro for determining the SurfaceViewer structure containing any of the following widgets: GLXAREA, TOPLEVEL, FORM, FRAME. The macro searches all the SurfaceViewer structures in SUMAg_SVv. | |
#define | SUMA_GLXAREA_WIDGET2SV(m_w, m_sv, m_svi) |
SUMA_GLXAREA_WIDGET2SV macro for determining the SurfaceViewer structure containing the widget: GLXAREA. The macro searches all the SurfaceViewer structures in SUMAg_SVv. | |
#define | SUMA_SEG_LENGTH(m_a, m_b, m_dist) |
SUMA_SEG_LENGTH macro for a segment's length a pointer to xyz coordinates b pointer to xyz coordinates dist (float) sqrt( (m_b[0] - m_a[0]) * (m_b[0] - m_a[0]) +(m_b[1] - m_a[1]) * (m_b[1] - m_a[1]) +(m_b[2] - m_a[2]) * (m_b[2] - m_a[2]) );. | |
#define | SUMA_SEG_LENGTH_SQ(m_a, m_b, m_dist) |
SUMA_SEG_LENGTH_SQ macro for a segment's squared length a pointer to xyz coordinates b pointer to xyz coordinates dist (float) ( (m_b[0] - m_a[0]) * (m_b[0] - m_a[0]) +(m_b[1] - m_a[1]) * (m_b[1] - m_a[1]) +(m_b[2] - m_a[2]) * (m_b[2] - m_a[2]) );. | |
#define | SUMA_NORM_VEC(a, nel, norm) |
SUMA_NORM_VEC macro for vectors's norm (sqrt of sum of squares) a pointer to vector nel number of elements in vector norm (float) norm of a. | |
#define | SUMA_MIN_VEC(a, nel, amin) |
SUMA_MIN_VEC macro for minimum a pointer to vector nel number of elements in vector amin minimum of a (make sure types of a and amin match). | |
#define | SUMA_MIN_LOC_VEC(a, nel, amin, minloc) |
SUMA_MIN_VEC macro for minimum identification and location a pointer to vector nel (int) number of elements in vector amin minimum of a (make sure types of a and amin match) minloc (int) index into a where the minimum was found. | |
#define | SUMA_MAX_VEC(a, nel, amax) |
SUMA_MAX_VEC macro for minimum a pointer to vector nel number of elements in vector amax maximum of a (make sure types of a and amax match). | |
#define | SUMA_MIN_MAX_VEC(a, nel, amin, amax, aminloc, amaxloc) |
SUMA_MIN_MAX_VEC macro for minimum and maximum a pointer to vector nel number of elements in vector amin minimum of a (make sure types of a and amin match) amax maximum of a (make sure types of a and amax match) aminloc index where minimum is found amaxloc index where maximum is found. | |
#define | SUMA_MIN_MAX_VEC_STRIDE(a, nel, amin, amax, aminloc, amaxloc, stride) |
#define | SUMA_ADD_VEC(a, b, c, len, typea, typeb, typec) |
#define | SUMA_SUB_VEC(a, b, c, len, typea, typeb, typec) |
#define | SUMA_MULT_VEC(a, b, c, len, typea, typeb, typec) |
#define | SUMA_SUM_VEC(a, s, len, typea) |
#define | SUMA_SCALE_VEC(a, b, s, len, typea, typeb) |
#define | SUMA_EXTRACT_VEC(a, b, ind, len, typea, typeb) |
#define | SUMA_CAT_VEC(a, b, catata, lenb, typea, typeb) |
#define | SUMA_GET_MAT_ROW(a, b, row, cols, typea, typeb) |
#define | SUMA_GET_MAT_COL(a, b, col, rows, typea, typeb) |
#define | SUMA_MIN_MAT_COL(a, rows, cols, amin) |
SUMA_MIN_MAT_COL macro for minimum of each column in a matrix a pointer to matrix (**) rows number of rows cols number of cols amin minimum of each column in a (make sure types of a and amin match). | |
#define | SUMA_MAX_MAT_COL(a, rows, cols, amax) |
SUMA_MAX_MAT_COL macro for maximum of each column in a matrix a pointer to matrix (**) rows number of rows cols number of cols amax maximum of each column in a (make sure types of a and amin match). | |
#define | SUMA_MIN_MAX_SUM_MAT_COL(a, rows, cols, amin, amax, asum) |
SUMA_MIN_MAX_SUM_MAT_COL macro for minimum, maximum and sum of each column in a matrix a pointer to matrix (**) rows number of rows cols number of cols amin minimum of each column in a (make sure types of a and amin match) amax maximum of each column in a (make sure types of a and amin match) asum sum of each column in a (the mean is not computed because the / operation would then depend on the type of a). | |
#define | SUMA_MIN_MAX_SUM_VECMAT_COL(a, rows, cols, amin, amax, asum) |
SUMA_MIN_MAX_SUM_VECMAT_COL macro for minimum, maximum and sum of each column in a matrix stored in vector format matrix 1 2 3 4 5 6 is stored as 1 2 3 4 5 6 ... | |
#define | SUMA_MIN_MAX_SUM_VECMAT_MASK_COL(a, rows, cols, rowmask, amin, amax, asum) |
SUMA_MIN_MAX_SUM_VECMAT_MASK_COL macro for minimum, maximum and sum of each column in a matrix stored in vector format ONLY rows n where rowmask[n] is not 0 are used matrix 1 2 3 4 5 6 7 8 9 is stored as 1 2 3 4 5 6 7 8 9... | |
#define | SUMA_MAT_TO_VEC(a, b, rows, cols, typea, typeb) |
#define | SUMA_COPY_VEC(a, b, len, typea, typeb) |
#define | SUMA_INIT_VEC(a, len, val, typea) |
#define | SUMA_COPY_VALUE_IN_VEC(a, b, ia, ib, typea, typeb) |
#define | SUMA_ASSIGN_VALUE_IN_VEC(a, ia, typea, val) |
#define | SUMA_DOTP_VEC(a, b, s, len, typea, typeb) |
#define | SUMA_UNIT_VEC(P1, P2, U, Un) |
Macro to calculate the unit direction vector U from P1-->P2 and the distance Un between P1 and P2. If Un is 0, U is all zeros. | |
#define | SUMA_SEG_NORM(P1, P2, Un) |
Macro to calculate the distance Un from P1-->P2 a. | |
#define | SUMA_MULT_MAT(a, b, c, rowsa, colsa, colsb, typea, typeb, typec) |
#define | SUMA_ADD_MAT(a, b, c, rowsa, colsa, typea, typeb, typec) |
#define | SUMA_SUB_MAT(a, b, c, rowsa, colsa, typea, typeb, typec) |
#define | SUMA_TRANSP_MAT(a, b, rowsa, colsa, typea, typeb) |
#define | SUMA_RGBmat_2_GLCOLAR4(RGBmat, glcolar, nrgb) |
#define | SUMA_RGBvec_2_GLCOLAR4(RGBvec, glcolar, nrgb) |
#define | SUMA_GLCOLAR4_2_RGBmat(glcolar, RGBmat, nrgb) |
#define | SUMA_GLCOLAR4_2_RGBvec(glcolar, RGBvec, nrgb) |
#define | SUMA_FillBlanks_GLCOLAR4(isColored, N_Nodes, R, G, B, glcolar) |
#define | SUMA_RGB_FnGnL_AR4op(RGBmat, glcolar, nrgb, isColored) |
#define | SUMA_RGBv_FnGnL_AR4op(RGBvec, glcolar, nrgb, isColored) |
#define | SUMA_RGB_FGnL_AR4op(RGBmat, glcolar, nrgb, opacity, isColored) |
#define | SUMA_RGBv_FGnL_AR4op(RGBvec, glcolar, nrgb, opacity, isColored) |
#define | SUMA_RGB_FGnL_AR4op2(RGBmat, glcolar, nrgb, opacity, isColored) |
#define | SUMA_RGBv_FGnL_AR4op2(RGBvec, glcolar, nrgb, opacity, isColored) |
#define | SUMA_RGB_FGL_AR4op(RGBmat, glcolar, nrgb, opacity, locgain, isColored) |
#define | SUMA_RGBv_FGL_AR4op(RGBvec, glcolar, nrgb, opacity, locgain, isColored) |
#define | SUMA_RGB_FGL_AR4op2(RGBmat, glcolar, nrgb, opacity, locgain, isColored) |
#define | SUMA_RGBv_FGL_AR4op2(RGBvec, glcolar, nrgb, opacity, locgain, isColored) |
#define | SUMA_RGB_FnGL_AR4op(RGBmat, glcolar, nrgb, locgain, isColored) |
#define | SUMA_RGBv_FnGL_AR4op(RGBvec, glcolar, nrgb, locgain, isColored) |
#define | SUMA_RGB_PnGnL_AR4op(RGBmat, NodeId, glcolar, nrgb, isColored, N_Node) |
#define | SUMA_RGBv_PnGnL_AR4op(RGBvec, NodeId, glcolar, nrgb, isColored, N_Node) |
#define | SUMA_RGB_PGnL_AR4op(RGBmat, NodeId, glcolar, nrgb, isColored, opacity, N_Node) |
#define | SUMA_RGBv_PGnL_AR4op(RGBvec, NodeId, glcolar, nrgb, isColored, opacity, N_Node) |
#define | SUMA_RGB_PGnL_AR4op2(RGBmat, NodeId, glcolar, nrgb, isColored, opacity, N_Node) |
#define | SUMA_RGBv_PGnL_AR4op2(RGBvec, NodeId, glcolar, nrgb, isColored, opacity, N_Node) |
#define | SUMA_RGB_PGL_AR4op(RGBmat, NodeId, glcolar, nrgb, isColored, opacity, locgain, N_Node) |
#define | SUMA_RGBv_PGL_AR4op(RGBvec, NodeId, glcolar, nrgb, isColored, opacity, locgain, N_Node) |
#define | SUMA_RGB_PGL_AR4op2(RGBmat, NodeId, glcolar, nrgb, isColored, opacity, locgain, N_Node) |
#define | SUMA_RGBv_PGL_AR4op2(RGBvec, NodeId, glcolar, nrgb, isColored, opacity, locgain, N_Node) |
#define | SUMA_RGB_PnGL_AR4op(RGBmat, NodeId, glcolar, nrgb, isColored,locgain, N_Node) |
#define | SUMA_RGBv_PnGL_AR4op(RGBvec, NodeId, glcolar, nrgb, isColored,locgain, N_Node) |
Define Documentation
|
the 1D index of element [r][c] in a column major matrix of nr rows Definition at line 237 of file SUMA_Macros.h. |
|
the 1D index of element [r][c] in a row major matrix of nc columns Definition at line 233 of file SUMA_Macros.h. |
|
Value: { \ k = ((ijk) / (nij)); \ j = ((ijk) % (nij)); \ i = ((j) % (ni)); \ j = ((j) / (ni)); \ } Definition at line 114 of file SUMA_Macros.h. Referenced by SUMA_FillToVoxelMask(), SUMA_Suggest_Touchup_Grad(), and SUMA_VoxelNeighbors(). |
|
Definition at line 112 of file SUMA_Macros.h. Referenced by SUMA_GetVoxelsIntersectingTriangle(), SUMA_isSkin(), SUMA_SurfGridIntersect(), and SUMA_VoxelNeighbors(). |
|
Definition at line 106 of file SUMA_Macros.h. Referenced by SUMA_BrainVoyager_Read_vmr(), SUMA_FindVoxelsInSurface_SLOW(), SUMA_GetVoxelsIntersectingTriangle(), SUMA_OpenDX_Read_CruiseVolHead(), and SUMA_StretchToFitLeCerveau(). |
|
Value: { \ typea **_AMX = (typea **)a; \ typeb **_BMX = (typeb **)b; \ typec **_CMX = (typec **)c; \ int m_IX,_JX; \ for(m_IX = 0 ; m_IX < rowsa ; m_IX++) { \ for(_JX = 0 ; _JX < colsa ; _JX++) { \ _CMX[m_IX][_JX] = _AMX[m_IX][_JX] + _BMX[m_IX][_JX]; \ } \ } \ } SUMA_ADD_MAT(a,b,c,rowsa,colsa,typea,typeb,typec) a pointer to first matirx. b pointer to second matrix. c pointer to result matrix. rowsa number of rows in matrix a colsa number of columns in matrix a typea legal C type describing the type of a typeb legal C type describing the type of b typec legal C type describing the type of c Definition at line 1260 of file SUMA_Macros.h. |
|
Value: { \ typea *_PTA = a; \ typeb *_PTB = b; \ typec *_PTC = c; \ int m_IX; \ for(m_IX = 0 ; m_IX < (len) ; m_IX++) \ *_PTC++ = (typec)((*_PTA++) + (*_PTB++)); \ } Definition at line 715 of file SUMA_Macros.h. |
|
Value: {\ int m_i = 0; \ m_sv = NULL; \ m_svi = -1; \ while (m_i < SUMA_MAX_SURF_VIEWERS) { \ if (SUMAg_SVv[m_i].X->GLXAREA == m_w || SUMAg_SVv[m_i].X->TOPLEVEL == m_w || SUMAg_SVv[m_i].X->FORM == m_w || SUMAg_SVv[m_i].X->FRAME == m_w) { \ m_svi = m_i; \ m_sv = &(SUMAg_SVv[m_i]); \ m_i = SUMA_MAX_SURF_VIEWERS; \ } else { \ ++m_i; \ } \ } \ } m_w the widget in question m_sv a pointer to SUMA_SurfaceViewer structure. This pointer is NULL if no matching SurfaceViewer structure is found in SUMAg_SVv m_svi the index of m_sv in SUMAg_SVv vector of Surface Viewer structures. m_sv = &(SUMAg_SVv[m_svi]). -1 if no match was found Definition at line 527 of file SUMA_Macros.h. Referenced by SUMA_expose(), SUMA_graphicsInit(), SUMA_handleRedisplay(), SUMA_mapStateChanged(), SUMA_momentum(), SUMA_postRedisplay(), SUMA_resize(), and SUMA_SetcSV(). |
|
Value: { \ typea *_PTA = (typea *)a; \ _PTA[ia] = (typea)val; \ } Definition at line 1134 of file SUMA_Macros.h. Referenced by SUMA_Copy_Part_Column(). |
|
Value: {\ SUMA_NORM_VEC(c, 3, s[0]); \ s[1] = atan2(c[1], c[0]); \ s[2] = atan2(c[2],sqrt(c[0]*c[0]+c[1]*c[1])); \ }
Definition at line 209 of file SUMA_Macros.h. Referenced by SUMA_Cart2Sph(). |
|
Value: { \ typea *_PTA = (typea *)a; \ typeb *_PTB = (typeb *)b; \ int m_IX; \ _PTA = _PTA + catata; \ for(m_IX = 0 ; m_IX < (lenb) ; m_IX++) \ *(_PTA)++ = (typea)(*(_PTB)++); \ } Definition at line 882 of file SUMA_Macros.h. |
|
Definition at line 110 of file SUMA_Macros.h. Referenced by SUMA_VoxelsInBox(). |
|
Value: Definition at line 257 of file SUMA_Macros.h. |
|
Value: Definition at line 252 of file SUMA_Macros.h. |
|
Value: Definition at line 246 of file SUMA_Macros.h. Referenced by SUMA_ATF_SetValue(). |
|
Value: { \ typea *_PTA = (typea *)a; \ typeb *_PTB = (typeb *)b; \ _PTB[ib] = (typeb)_PTA[ia]; \ } Definition at line 1128 of file SUMA_Macros.h. Referenced by SUMA_Copy_Part_Column(). |
|
Value: { \ typea *_PTA = (typea *)a; \ typeb *_PTB = (typeb *)b; \ int m_IX; \ for(m_IX = 0 ; m_IX < (len) ; m_IX++) \ *(_PTB)++ = (typeb)(*(_PTA)++); \ } Definition at line 1110 of file SUMA_Macros.h. Referenced by SUMA_1DROI_to_DrawnROI(), SUMA_CreateChildSO(), SUMA_dPercRange(), SUMA_Draw_SO_ROI(), SUMA_DrawLineAxis(), SUMA_input(), SUMA_isinbox(), SUMA_isinsphere(), SUMA_LoadVisualState(), SUMA_NewAreaAtRadius(), SUMA_NewVolumeAtRadius(), SUMA_Paint_SO_ROIplanes(), SUMA_PercRange(), SUMA_PrepSO_GeomProp_GL(), SUMA_RegisterEngineListCommand(), SUMA_SortedAxisSegmentList(), SUMA_UniqueInt(), SUMA_UpdateRotaCenter(), SUMA_UpdateViewPoint(), SUMA_VolPar_nel2SOVolPar(), SUMA_XYZ_XYZmap(), and SUMA_XYZmap_XYZ(). |
|
Value: { \ int m_i;\ ++SUMAg_CF->InOut_Level; \ for (m_i=0; m_i < SUMAg_CF->InOut_Level; ++m_i) fprintf (SUMA_STDERR," ");\ fprintf (SUMA_STDERR,"--dbg: Entered %s (lvl %d).\n", m_fname, SUMAg_CF->InOut_Level); \ } Definition at line 474 of file SUMA_Macros.h. |
|
Value: { \ int m_i;\ for (m_i=0; m_i < SUMAg_CF->InOut_Level; ++m_i) fprintf (SUMA_STDERR," ");\ fprintf (SUMA_STDERR,"--dbg: Left %s (lvl %d).\n", m_fname, SUMAg_CF->InOut_Level); \ --SUMAg_CF->InOut_Level; \ } Definition at line 481 of file SUMA_Macros.h. |
|
Value: { \ SUMA_MIN_MAX_SUM_VECMAT_COL (SO->NodeList, SO->N_Node, SO->NodeDim, SO->MinDims, SO->MaxDims, SO->Center); \ SO->Center[0] /= SO->N_Node; \ SO->Center[1] /= SO->N_Node; \ SO->Center[2] /= SO->N_Node; \ SUMA_MIN_VEC (SO->MinDims, 3, SO->aMinDims ); \ SUMA_MAX_VEC (SO->MaxDims, 3, SO->aMaxDims); \ } Definition at line 344 of file SUMA_Macros.h. Referenced by SUMA_CreateChildSO(), and SUMA_NewSO(). |
|
Value: { \ static float m_Eq[4]; \ SUMA_Plane_Equation ( P1, P2, P3, m_Eq); \ Dist = m_Eq[0] * P[0] + m_Eq[1] * P[1] + m_Eq[2] * P[2] + m_Eq[3] ; \ } Definition at line 266 of file SUMA_Macros.h. Referenced by SUMA_GetVoxelsIntersectingTriangle(), and SUMA_SurfGridIntersect(). |
|
Value: { \ typea *_PTA = a; \ typeb *_PTB = b; \ int m_IX; \ s = (*_PTA++) * (*_PTB++); \ for(m_IX = 1 ; m_IX < (len) ; m_IX++) \ s += (*_PTA++) * (*_PTB++); \ } FORMS THE SUM OF PRODUCTS OF TWO VECTORS (a,b) AND PUTS THE RESULT IN THE PREVIOUSLY DEFINED VARIABLE s. SUMA_DOTP_VEC(a,b,s,len,typea,typeb) a pointer to first vector. b pointer to second vector. s variable used to store result (not a pointer). len length of vectors (integer). typea legal C type describing the type of a data. typeb legal C type describing the type of b data. WARNING: The input data vectors are not cast to the type of s. This means that at least one of the input types must be able to represent the individual products without overflow. Definition at line 1161 of file SUMA_Macros.h. Referenced by SUMA_dPoint_At_Distance(), SUMA_OrientTriangles(), SUMA_Point_At_Distance(), and SUMA_StretchToFitLeCerveau(). |
|
Value: {\ DListElmt *m_Head=NULL; \ SUMA_ROI_DATUM *m_ROId=NULL; \ Nhead = -1; \ m_Head = dlist_head(D_ROI->ROIstrokelist); \ if (m_Head) { \ m_ROId = (SUMA_ROI_DATUM *)m_Head->data; \ if (m_ROId->N_n) Nhead = m_ROId->nPath[0]; \ } \ } Definition at line 401 of file SUMA_Macros.h. Referenced by SUMA_cb_DrawROI_Join(), and SUMA_ProcessBrushStroke(). |
|
Value: {\ DListElmt *m_Tail=NULL; \ SUMA_ROI_DATUM *m_ROId=NULL; \ Ntail = -1; \ m_Tail = dlist_tail(D_ROI->ROIstrokelist); \ if (m_Tail) { \ m_ROId = (SUMA_ROI_DATUM *)m_Tail->data; \ if (m_ROId->N_n) Ntail = m_ROId->nPath[m_ROId->N_n-1]; \ } \ } Definition at line 385 of file SUMA_Macros.h. Referenced by SUMA_cb_DrawROI_Join(), SUMA_LinkTailNodeToNodeStroke(), and SUMA_ProcessBrushStroke(). |
|
Value: { \ if (!SO) { eu = -1000; } \ else if (!SO->EL) { eu = -1001; } \ else eu = SO->N_Node - SO->EL->N_Distinct_Edges + SO->N_FaceSet; \ }
Definition at line 447 of file SUMA_Macros.h. Referenced by SUMA_SurfaceObject_Info(). |
|
Value: { \ typea *_PTA = (typea *)a; \ typeb *_PTB = (typeb *)b; \ int m_IX; \ for(m_IX = 0 ; m_IX < (len) ; m_IX++) \ _PTB[m_IX] = _PTA[ind[m_IX]]; \ } Definition at line 856 of file SUMA_Macros.h. |
|
Value: { \ static int m_n1, m_n2, m_n3; \ m_n1 = SO->FaceSetList[3*ifc]; m_n2 = SO->FaceSetList[3*ifc+1]; m_n3 = SO->FaceSetList[3*ifc+2]; \ c[0] = (SO->NodeList[3*m_n1] + SO->NodeList[3*m_n2] + SO->NodeList[3*m_n3] )/3; \ c[1] = (SO->NodeList[3*m_n1+1] + SO->NodeList[3*m_n2+1] + SO->NodeList[3*m_n3+1])/3; \ c[2] = (SO->NodeList[3*m_n1+2] + SO->NodeList[3*m_n2+2] + SO->NodeList[3*m_n3+2])/3; \ } Definition at line 354 of file SUMA_Macros.h. Referenced by SUMA_Mesh_Volume(), and SUMA_Subdivide_Mesh(). |
|
Value: {\ int m_I, m_I4; \ for (m_I=0; m_I < N_Nodes; ++m_I) {\ if (!isColored[m_I]) {\ m_I4 = 4*m_I; \ glcolar[m_I4] = R; ++m_I4;\ glcolar[m_I4] = G; ++m_I4;\ glcolar[m_I4] = B; ++m_I4;\ }\ }\ } Definition at line 1394 of file SUMA_Macros.h. Referenced by SUMA_MixOverlays(). |
|
Value: { int m_eloc ; \ m_eloc = m_EL->ELloc[m_n1]; \ do { \ if (m_EL->EL[m_eloc][1] == m_n2) m_iseg = m_eloc; \ ++m_eloc; \ } while (m_EL->EL[m_eloc][0] == m_n1 && m_eloc < m_EL->N_EL); \ } you should make sure n1 < n2 you should initialize iseg to -1 before calling the macro Definition at line 372 of file SUMA_Macros.h. |
|
Value: { \ (p)[0] = (p1)[0] + u * ((p2)[0] - (p1)[0] ) + v * ((p3)[0] - (p1)[0]); \ (p)[1] = (p1)[1] + u * ((p2)[1] - (p1)[1] ) + v * ((p3)[1] - (p1)[1]); \ (p)[2] = (p1)[2] + u * ((p2)[2] - (p1)[2] ) + v * ((p3)[2] - (p1)[2]); \ }
Definition at line 195 of file SUMA_Macros.h. Referenced by SUMA_isSelfIntersect(). |
|
Value: { \ typea **_AMX = (typea **)a; \ typeb *_PTB = (typeb *)b; \ typea *_PTA; \ int m_IX,_JX; \ for(m_IX = 0 ; m_IX < rows ; m_IX++) { \ _PTA = _AMX[m_IX ] ; \ for(_JX = 0 ; _JX < col ; _JX++) \ _PTA++; \ *_PTB++ = (typeb)(*_PTA++); \ } \ } SUMA_GET_MAT_COL(a,b, col, rows,typea,typeb) a pointer to input 2D matrix. b pointer to resultant 1D vector. col index of column in matrix a to extract to b rows number of rows to in a typea legal C type describing the type of a typeb legal C type describing the type of b Definition at line 929 of file SUMA_Macros.h. |
|
Value: { \ typea **_AMX = (typea **)a; \ typeb *_PTB = (typeb *)b; \ typea *_PTA; \ int _JX; \ _PTA = _AMX[row]; \ for(_JX = 0 ; _JX < cols ; _JX++) \ *_PTB++ = (typeb) (*_PTA++); \ } SUMA_GET_MAT_ROW(a,b,row,cols,typea,typeb) a pointer to input 2D matrix. b pointer to resultant 1D vector. row index of row to extract from a cols number of columns in matrix a typea legal C type describing the type of a typeb legal C type describing the type of b Definition at line 905 of file SUMA_Macros.h. |
|
Value: {\ int m_I, m_I4 = 0; \ for (m_I=0; m_I < nrgb; ++m_I) {\ RGBmat[m_I][0] = glcolar[m_I4]; ++m_I4;\ RGBmat[m_I][1] = glcolar[m_I4]; ++m_I4;\ RGBmat[m_I][2] = glcolar[m_I4]; ++m_I4;\ ++m_I4;\ }\ } SUMA_GLCOLAR4_2_RGBmat (glcolar, RGBmat, N) glcolar (GLfloat *) (4 N) x 1 vector RGBmat (float **) N x 3 matrix of RGB values Mar 17 04: Added the SUMA_RGBvec versions using RGBvec instead of RGBmat. Definition at line 1364 of file SUMA_Macros.h. |
|
Value: {\ int m_I, m_I4 = 0, m_I3=0; \ for (m_I=0; m_I < nrgb; ++m_I) {\ RGBvec[m_I3] = glcolar[m_I4]; ++m_I4; ++m_I3;\ RGBvec[m_I3] = glcolar[m_I4]; ++m_I4; ++m_I3;\ RGBvec[m_I3] = glcolar[m_I4]; ++m_I4; ++m_I3;\ ++m_I4;\ }\ } Definition at line 1373 of file SUMA_Macros.h. |
|
Value: {\ int m_i = 0; \ m_sv = NULL; \ m_svi = -1; \ while (m_i < SUMA_MAX_SURF_VIEWERS) { \ if (SUMAg_SVv[m_i].X->GLXAREA == m_w) { \ m_svi = m_i; \ m_sv = &(SUMAg_SVv[m_i]); \ m_i = SUMA_MAX_SURF_VIEWERS; \ } else { \ ++m_i; \ } \ } \ } m_w the widget in question m_sv a pointer to SUMA_SurfaceViewer structure. This pointer is NULL if no matching SurfaceViewer structure is found in SUMAg_SVv m_svi the index of m_sv in SUMAg_SVv vector of Surface Viewer structures. m_sv = &(SUMAg_SVv[m_svi]). -1 if no match was found Definition at line 550 of file SUMA_Macros.h. Referenced by SUMA_input(). |
|
Value: { \ int m_i; \ for (m_i = 0; m_i < (len) ; m_i ++) \ a[m_i] = (typea)val; \ } Definition at line 1122 of file SUMA_Macros.h. Referenced by SUMA_Pattie_Volume(). |
|
Value: { \ int m_i=0;\ m_loc = -1;\ while (m_i < m_nel) { \ if (m_vec[m_i] == m_val) { \ m_loc = m_i; \ m_i = m_nel; \ } else { \ ++ m_i; \ } \ } \ }
Definition at line 461 of file SUMA_Macros.h. Referenced by SUMA_inNodeNeighb(). |
|
Definition at line 98 of file SUMA_Macros.h. Referenced by SUMA_SurfGridIntersect(). |
|
Definition at line 94 of file SUMA_Macros.h. |
|
Definition at line 96 of file SUMA_Macros.h. Referenced by SUMA_GetVoxelsIntersectingTriangle(). |
|
Definition at line 92 of file SUMA_Macros.h. |
|
Definition at line 228 of file SUMA_Macros.h. Referenced by SUMA_cb_SymIrange_tb_toggled(), SUMA_InitRangeTable(), and SUMA_ScaleToMap_Interactive(). |
|
Value: { \ typea **_AMX = (typea **)a; \ typeb *_PTB = (typeb *)b; \ typea *_PTA; \ int m_IX,_JX; \ for(m_IX = 0 ; m_IX < rows ; m_IX++) { \ _PTA = _AMX[m_IX ]; \ for(_JX = 0 ; _JX < cols ; _JX++) \ *_PTB++ = (typeb) (*_PTA++); \ } \ } SUMA_MAT_TO_VEC(a,b,rows,cols,typea,typeb) a pointer to input 2D matrix. b pointer to resultant D matrix. rows number of rows in matrix a cols number of columns in matrix a typea legal C type describing the type of a typeb legal C type describing the type of b Definition at line 1084 of file SUMA_Macros.h. |
|
Value: { \ int m_IX, _JX; \ for (m_IX = 0; m_IX < cols ; m_IX++) { \ amax[m_IX]=a[0][m_IX]; \ for (_JX = 1 ; _JX < rows ; _JX++) \ if (a[_JX][m_IX] > amax[m_IX]) amax[m_IX] = a[_JX][m_IX];\ }\ }
Definition at line 967 of file SUMA_Macros.h. |
|
Definition at line 104 of file SUMA_Macros.h. Referenced by SUMA_Find_IminImax(), SUMA_Find_IminImax_Avg(), SUMA_isinpoly(), SUMA_ShowMeSome(), SUMA_SkullMask(), SUMA_StretchToFitLeCerveau(), SUMA_Suggest_Touchup(), and SUMA_Suggest_Touchup_Grad(). |
|
Value: { \ int m_I; \ amax = a[0]; \ for (m_I = 1; m_I < nel; m_I++) { \ if (a[m_I] > amax) amax = a[m_I]; \ } \ }
Definition at line 656 of file SUMA_Macros.h. Referenced by SUMA_Cmap_To_SO(), SUMA_FindVoxelsInSurface(), SUMA_FindVoxelsInSurface_SLOW(), SUMA_FreeSurfer_Read_eng(), SUMA_NewSurfaceGeometry(), and SUMA_PrepSO_GeomProp_GL(). |
|
Value: { \ int m_I; \ amin = a[0]; \ minloc = 0; \ for (m_I = 1; m_I < nel; m_I++) { \ if (a[m_I] < amin) { \ amin = a[m_I]; \ minloc = m_I; \ } \ } \ }
Definition at line 638 of file SUMA_Macros.h. Referenced by SUMA_Dijkstra(), SUMA_Engine(), SUMA_XYZ_XYZmap(), and SUMA_XYZmap_XYZ(). |
|
Value: { \ int m_IX, _JX; \ for (m_IX = 0; m_IX < cols ; m_IX++) { \ amin[m_IX]=a[0][m_IX]; \ for (_JX = 1 ; _JX < rows ; _JX++) \ if (a[_JX][m_IX] < amin[m_IX]) amin[m_IX] = a[_JX][m_IX];\ }\ }
Definition at line 950 of file SUMA_Macros.h. |
|
Value: { \ int m_IX, _JX; \ for (m_IX = 0; m_IX < cols ; m_IX++) { \ amax[m_IX]=a[0][m_IX]; \ amin[m_IX]=a[0][m_IX]; \ asum[m_IX]=a[0][m_IX]; \ for (_JX = 1 ; _JX < rows ; _JX++) { \ if (a[_JX][m_IX] > amax[m_IX]) amax[m_IX] = a[_JX][m_IX];\ if (a[_JX][m_IX] < amin[m_IX]) amin[m_IX] = a[_JX][m_IX];\ asum[m_IX] += a[_JX][m_IX]; \ } \ }\ }
Definition at line 986 of file SUMA_Macros.h. |
|
Value: { \ int m_IX, m_JX, m_id; \ for (m_IX = 0; m_IX < cols ; m_IX++) { \ amax[m_IX]=a[m_IX]; \ amin[m_IX]=a[m_IX]; \ asum[m_IX]=a[m_IX]; \ for (m_JX = 1 ; m_JX < rows ; m_JX++) { \ m_id = cols * m_JX + m_IX; \ if (a[m_id] > amax[m_IX]) amax[m_IX] = a[m_id];\ if (a[m_id] < amin[m_IX]) amin[m_IX] = a[m_id];\ asum[m_IX] += a[m_id]; \ } \ } \ } a pointer to vector containing rwos x cols elements rows number of rows cols number of cols amin minimum of each column in a (make sure types of a and amin match) amax maximum of each column in a (make sure types of a and amin match) asum sum of each column in a (the mean is not computed because the / operation would then depend on the type of a)
Definition at line 1015 of file SUMA_Macros.h. Referenced by SUMA_Cmap_To_SO(), SUMA_FindVoxelsInSurface(), SUMA_FindVoxelsInSurface_SLOW(), SUMA_NewSurfaceGeometry(), SUMA_PrepSO_GeomProp_GL(), and SUMA_SurfGridIntersect(). |
|
Value: { \ int m_IX, m_JX, m_id, m_start_row=0; \ m_JX = 0; \ while (!m_start_row && m_JX < rows) { \ if (rowmask[m_JX]) m_start_row = m_JX+1; \ ++m_JX; \ } \ --m_start_row; \ for (m_IX = 0; m_IX < cols ; m_IX++) { \ amax[m_IX]=a[cols * m_start_row + m_IX]; \ amin[m_IX]=a[cols * m_start_row + m_IX]; \ asum[m_IX]=a[cols * m_start_row + m_IX]; \ ++m_start_row; \ for (m_JX = m_start_row ; m_JX < rows ; m_JX++) { \ if (rowmask[m_JX]) { \ m_id = cols * m_JX + m_IX; \ if (a[m_id] > amax[m_IX]) amax[m_IX] = a[m_id];\ if (a[m_id] < amin[m_IX]) amin[m_IX] = a[m_id];\ asum[m_IX] += a[m_id]; \ } \ } \ } \ } a pointer to vector containing rwos x cols elements rows number of rows cols number of cols rowmask pointer to vector containing rows x 1 mask values amin minimum of each column in a (make sure types of a and amin match) amax maximum of each column in a (make sure types of a and amin match) asum sum of each column in a (the mean is not computed because the / operation would then depend on the type of a) Definition at line 1046 of file SUMA_Macros.h. Referenced by SUMA_PrepSO_GeomProp_GL(). |
|
Value: { \ int m_I; \ amaxloc = 0; \ amax = a[0]; \ aminloc = 0; \ amin = a[0];\ for (m_I = 1; m_I < nel; m_I++) { \ if (a[m_I] > amax) { amax = a[m_I]; amaxloc = m_I; } \ else { if (a[m_I] < amin) { amin = a[m_I]; aminloc = m_I; } } \ } \ }
Definition at line 673 of file SUMA_Macros.h. Referenced by SUMA_SphereQuality(). |
|
Value: { \ int m_I; \ amaxloc = 0; \ amax = a[0]; \ aminloc = 0; \ amin = a[0];\ for (m_I = stride; m_I < nel; m_I = m_I+stride) { \ if (a[m_I] > amax) { amax = a[m_I]; amaxloc = m_I; } \ else { if (a[m_I] < amin) { amin = a[m_I]; aminloc = m_I; } } \ } \ } Definition at line 685 of file SUMA_Macros.h. Referenced by SUMA_AddGenColAttr(), and SUMA_AddGenDsetColAttr(). |
|
Definition at line 102 of file SUMA_Macros.h. Referenced by SUMA_BrainVoyager_Read(), SUMA_Find_IminImax(), SUMA_Find_IminImax_Avg(), SUMA_isinpoly(), SUMA_isSelfIntersect(), SUMA_LoadPrepInVol(), and SUMA_Reposition_Touchup(). |
|
Value: { \ int m_I; \ amin = a[0]; \ for (m_I = 1; m_I < nel; m_I++) { \ if (a[m_I] < amin) amin = a[m_I]; \ } \ }
Definition at line 623 of file SUMA_Macros.h. Referenced by SUMA_Cmap_To_SO(), SUMA_FindVoxelsInSurface(), SUMA_FindVoxelsInSurface_SLOW(), SUMA_NewSurfaceGeometry(), and SUMA_PrepSO_GeomProp_GL(). |
|
Value: m_MTCR_dest[0]=m_MTCR_v1[1]*m_MTCR_v2[2]-m_MTCR_v1[2]*m_MTCR_v2[1]; \ m_MTCR_dest[1]=m_MTCR_v1[2]*m_MTCR_v2[0]-m_MTCR_v1[0]*m_MTCR_v2[2]; \ m_MTCR_dest[2]=m_MTCR_v1[0]*m_MTCR_v2[1]-m_MTCR_v1[1]*m_MTCR_v2[0]; Definition at line 417 of file SUMA_Macros.h. Referenced by SUMA_Chung_Smooth_Weights(), SUMA_FromToRotation(), SUMA_MT_intersect_triangle(), SUMA_MT_isIntersect_Triangle(), and SUMA_TriSurf3(). |
|
Definition at line 421 of file SUMA_Macros.h. Referenced by SUMA_Chung_Smooth_Weights(), SUMA_FromToRotation(), SUMA_MT_intersect_triangle(), and SUMA_MT_isIntersect_Triangle(). |
|
Value: m_MTSUB_dest[0]=m_MTSUB_v1[0]-m_MTSUB_v2[0]; \ m_MTSUB_dest[1]=m_MTSUB_v1[1]-m_MTSUB_v2[1]; \ m_MTSUB_dest[2]=m_MTSUB_v1[2]-m_MTSUB_v2[2]; Definition at line 422 of file SUMA_Macros.h. Referenced by SUMA_MT_intersect_triangle(), SUMA_MT_isIntersect_Triangle(), and SUMA_TriSurf3(). |
|
Value: { \ typea **_AMX = (typea **)a; \ typeb **_BMX = (typeb **)b; \ typec **_CMX = (typec **)c; \ typea *_PTA; \ typeb *_PTB; \ typec *_PTC; \ int m_IX,_JX,_KX; \ for(m_IX = 0 ; m_IX < rowsa ; m_IX++) { \ _PTC = _CMX[m_IX]; \ _PTB = _BMX[0]; \ for(_JX = 0 ; _JX < colsb ; _JX++) { \ _PTA = _AMX[m_IX]; \ *_PTC = (*_PTA++) * (*_PTB++); \ for(_KX = 1 ; _KX < colsa ; _KX++) \ *_PTC += (*_PTA++)* _BMX[_KX][_JX]; \ _PTC++; \ } \ } \ } SUMA_MULT_MAT(a,b,c,rowsa,colsa,colsb,typea,typeb,typec) a pointer to first matirx. b pointer to second matrix. c pointer to result matrix. rowsa number of rows in matrix a colsa number of columns in matrix a colsb number of columns in matrix b typea legal C type describing the type of a typeb legal C type describing the type of b typec legal C type describing the type of c Definition at line 1222 of file SUMA_Macros.h. Referenced by SUMA_ApplyAffine(), and SUMA_Surface_Curvature(). |
|
Value: { \ typea *_PTA = a; \ typeb *_PTB = b; \ typec *_PTC = c; \ int m_IX; \ for(m_IX = 0 ; m_IX < (len) ; m_IX++) \ *_PTC++ = (typec)((*_PTA++) * (*_PTB++)); \ } Definition at line 778 of file SUMA_Macros.h. |
|
Value: { \ if ((newcode)) { SUMA_SL_Err("newcode pointer must be null"); } \ else if (!(strn)) { (newcode) = (char*)SUMA_calloc(SUMA_IDCODE_LENGTH, sizeof(char)); UNIQ_idcode_fill((newcode)); } \ else { char *m_tmp; m_tmp = UNIQ_hashcode((strn)); (newcode) = SUMA_copy_string(m_tmp); free(m_tmp); m_tmp = NULL; } \ } Definition at line 9 of file SUMA_Macros.h. Referenced by SUMA_Build_FirstNeighb(), SUMA_CreateDsetPointer(), SUMA_Load1DDset(), SUMA_Load_Surface_Object_eng(), SUMA_LoadDXDset(), SUMA_Make_Edge_List_eng(), SUMA_MemberFaceSets(), SUMA_nimlSO2SO(), SUMA_oDsetNel2nDsetNgr(), SUMA_SO2nimlSO(), and SUMA_SOVolPar2VolPar_nel(). |
|
Definition at line 426 of file SUMA_Macros.h. Referenced by SUMA_Chung_Smooth_Weights(), and SUMA_TriSurf3(). |
|
Value: { \ int m_I; \ norm = 0.0; \ for (m_I = 0; m_I < nel; m_I++) { \ norm += a[m_I]*a[m_I]; \ } \ norm = sqrt(norm); \ }
Definition at line 607 of file SUMA_Macros.h. Referenced by SUMA_ClusterCenterofMass(), SUMA_DrawLineAxis(), SUMA_Find_IminImax(), SUMA_Find_IminImax_Avg(), SUMA_OpenDX_Read_CruiseVolHead(), SUMA_OrientTriangles(), SUMA_StretchToFitLeCerveau(), and SUMA_Suggest_Touchup_Grad(). |
|
Value: { \ End = (End == LSB_FIRST) ? MSB_FIRST : LSB_FIRST; \ } Definition at line 22 of file SUMA_Macros.h. Referenced by SUMA_BrainVoyager_Read_vmr(). |
|
Pause prompt, stdin Definition at line 339 of file SUMA_Macros.h. Referenced by SUMA_StretchToFitLeCerveau(), and SUMA_Surface_Curvature(). |
|
Value: { \ float m_n, m_Un[3]; \ SUMA_NORM_VEC(U, 3, m_n); \ if (m_n) { \ if (m_n != 1) { \ m_Un[0] = (U[0]) / (m_n); m_Un[1] = (U[1]) / (m_n); m_Un[2] = (U[2]) / (m_n); \ SUMA_POINT_AT_DISTANCE_NORM(m_Un, P1, d, P2); \ } else { SUMA_POINT_AT_DISTANCE_NORM(U, P1, d, P2); } \ } \ }
SUMA_POINT_AT_DISTANCE(U, P1, d, P2); fprintf(SUMA_STDERR,"P2 [f f f] Definition at line 148 of file SUMA_Macros.h. Referenced by main(), SUMA_CreateIcosahedron(), SUMA_Engine(), SUMA_GetM2M_NN(), and SUMA_Reposition_Touchup(). |
|
Value: { \ P2[0][0] = (d) * U[0]; P2[1][0] = -(d) * U[0]; P2[0][0] += P1[0]; P2[1][0] += P1[0]; \ P2[0][1] = (d) * U[1]; P2[1][1] = -(d) * U[1]; P2[0][1] += P1[1]; P2[1][1] += P1[1]; \ P2[0][2] = (d) * U[2]; P2[1][2] = -(d) * U[2]; P2[0][2] += P1[2]; P2[1][2] += P1[2]; \ }
SUMA_POINT_AT_DISTANCE(U, P1, d, P2); fprintf(SUMA_STDERR,"P2 [f f f] Definition at line 185 of file SUMA_Macros.h. Referenced by SUMA_EquateSurfaceSize(), SUMA_NewAreaAtRadius(), SUMA_NewVolumeAtRadius(), and SUMA_ProjectSurfaceToSphere(). |
|
Value: { static int m_chnk = sizeof(float);\ ex = fread (nip, m_chnk, 1, fp); \ if (bs) { \ if (m_chnk == 4) SUMA_swap_4( nip ) ; \ else if (m_chnk == 8) SUMA_swap_8( nip ) ; \ else { SUMA_SL_Err ("No swapping performed.") } \ } \ } Definition at line 74 of file SUMA_Macros.h. Referenced by SUMA_BrainVoyager_Read(), and SUMA_FreeSurfer_ReadBin_eng(). |
|
Value: { static int m_chnk = sizeof(int);\ ex = fread (nip, m_chnk, 1, fp); \ if (bs) { \ if (m_chnk == 4) SUMA_swap_4( nip ) ; \ else if (m_chnk == 8) SUMA_swap_8( nip ) ; \ else if (m_chnk == 2) SUMA_swap_2( nip ) ; \ else { SUMA_SL_Err ("No swapping performed.") } \ } \ }
Definition at line 64 of file SUMA_Macros.h. Referenced by SUMA_FreeSurfer_ReadBin_eng(), and SUMA_readFSannot(). |
|
Value: { \ ex = fread (nip, chnk, 1, fp); \ }
Definition at line 41 of file SUMA_Macros.h. Referenced by SUMA_BrainVoyager_Read_vmr(). |
|
Value: { \ SUMA_READ_NUM(nip, fp, ex, chnk); \ if (chnk == 4) SUMA_swap_4( nip ) ; \ else if (chnk == 8) SUMA_swap_8( nip ) ; \ else if (chnk == 2) SUMA_swap_2( nip ) ; \ else { SUMA_SL_Err ("No swapping performed.") } \ } Definition at line 48 of file SUMA_Macros.h. |
|
Value: { \ SUMA_SURF_NORM m_SN; \ if (SO->NodeNormList) SUMA_free(SO->NodeNormList); SO->NodeNormList = NULL; \ if (SO->FaceNormList) SUMA_free(SO->FaceNormList); SO->FaceNormList = NULL; \ m_SN = SUMA_SurfNorm(SO->NodeList, SO->N_Node, SO->FaceSetList, SO->N_FaceSet ); \ SO->NodeNormList = m_SN.NodeNormList; \ SO->FaceNormList = m_SN.FaceNormList; \ SO->glar_NodeNormList = (GLfloat *) SO->NodeNormList; \ SO->glar_FaceNormList = (GLfloat *) SO->FaceNormList; \ } Definition at line 325 of file SUMA_Macros.h. Referenced by main(), SUMA_CreateChildSO(), SUMA_LoadPrepInVol(), SUMA_NewSO(), SUMA_process_NIML_data(), SUMA_Reposition_Touchup(), SUMA_SkullMask(), and SUMA_StretchToFitLeCerveau(). |
|
Value: {\ int m_i = 0; \ SUMA_SurfaceViewer *m_sv = NULL; \ int m_svi = -1; \ while (m_i < SUMA_MAX_SURF_VIEWERS) { \ \ if (SUMAg_SVv[m_i].X->GLXAREA == m_w) { \ fprintf (SUMA_STDERR,"SUMA_REPORT_WICH_WIDGET_SV: %p is GLXAREA widget in Surface Viewer %d.\n", m_w, m_i); \ m_svi = m_i; \ } \ if (SUMAg_SVv[m_i].X->TOPLEVEL == m_w) { \ fprintf (SUMA_STDERR,"SUMA_REPORT_WICH_WIDGET_SV: %p is TOPLEVEL widget in Surface Viewer %d.\n", m_w, m_i); \ m_svi = m_i; \ } \ if (SUMAg_SVv[m_i].X->FORM == m_w) { \ fprintf (SUMA_STDERR,"SUMA_REPORT_WICH_WIDGET_SV: %p is FORM widget in Surface Viewer %d.\n", m_w, m_i); \ m_svi = m_i; \ } \ if (SUMAg_SVv[m_i].X->FRAME == m_w) { \ fprintf (SUMA_STDERR,"SUMA_REPORT_WICH_WIDGET_SV: %p is FRAME widget in Surface Viewer %d.\n", m_w, m_i); \ m_svi = m_i; \ } \ ++m_i; \ } \ }
Definition at line 492 of file SUMA_Macros.h. Referenced by SUMA_handleRedisplay(). |
|
Value: {\ int m_I, m_I4 = 0; \ float m_of, m_of2;\ for (m_I=0; m_I < nrgb; ++m_I) {\ if (isColored[m_I]) { \ m_of = locgain[m_I] * opacity; \ m_of2 = (1-opacity);\ glcolar[m_I4] = m_of2 * glcolar[m_I4] + m_of * RGBmat[m_I][0]; ++m_I4;\ glcolar[m_I4] = m_of2 * glcolar[m_I4] + m_of * RGBmat[m_I][1]; ++m_I4;\ glcolar[m_I4] = m_of2 * glcolar[m_I4] + m_of * RGBmat[m_I][2]; ++m_I4;\ } else { \ glcolar[m_I4] = locgain[m_I] * RGBmat[m_I][0]; ++m_I4;\ glcolar[m_I4] = locgain[m_I] * RGBmat[m_I][1]; ++m_I4;\ glcolar[m_I4] = locgain[m_I] * RGBmat[m_I][2]; ++m_I4;\ isColored[m_I] = YUP;\ } \ ++m_I4;\ }\ } SUMA_RGB_FGL_AR4op copies an N x 3 RGB matrix into a 4N x 1 GL color array format F (Full) means that N is equal to all the nodes in the surface G (Glob) means an opacity is applied to the color values L (Local) means a local gain (per node) is applied to the color values SUMA_RGB_FGL_AR4op(RGBmat, glcolar, N, opacity, locgain, add) RGBmat (float **) N x 3 matrix of RGB values glcolar (GLfloat *) (4 N) x 1 vector opacity (float) an opacity factor applied to each color R, G, B values in the entire list before adding it to a pre-exising color opacity is not applied to the color of nodes that had not been colored thus far. locgain (float *) a N x 1 vector of gains applied to their respective nodes isColored (SUMA_Boolean) N_Nodes x 1 vector indicating that a node was colored. ONLY YUP/1 are placed Dec 04 03: Variant SUMA_RGB_FGL_AR4op2 removed opacity from m_of and added clipping to 1.0 Mar 17 04: Added the SUMA_RGBv versions using RGBvec instead of RGBmat. Definition at line 1563 of file SUMA_Macros.h. |
|
Value: {\ int m_I, m_I4 = 0; \ float m_of, m_of2;\ for (m_I=0; m_I < nrgb; ++m_I) {\ if (isColored[m_I]) { \ m_of = locgain[m_I]; \ m_of2 = (1-opacity);\ glcolar[m_I4] = m_of2 * glcolar[m_I4] + m_of * RGBmat[m_I][0]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4;\ glcolar[m_I4] = m_of2 * glcolar[m_I4] + m_of * RGBmat[m_I][1]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4;\ glcolar[m_I4] = m_of2 * glcolar[m_I4] + m_of * RGBmat[m_I][2]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4;\ } else { \ glcolar[m_I4] = locgain[m_I] * RGBmat[m_I][0]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4;\ glcolar[m_I4] = locgain[m_I] * RGBmat[m_I][1]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4;\ glcolar[m_I4] = locgain[m_I] * RGBmat[m_I][2]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4;\ isColored[m_I] = YUP;\ } \ ++m_I4;\ }\ } Definition at line 1601 of file SUMA_Macros.h. |
|
Value: {\ int m_I, m_I4 = 0; \ float m_of;\ m_of = 1-opacity;\ for (m_I=0; m_I < nrgb; ++m_I) {\ if (isColored[m_I]) { \ glcolar[m_I4] = m_of * glcolar[m_I4] + opacity * RGBmat[m_I][0]; ++m_I4;\ glcolar[m_I4] = m_of * glcolar[m_I4] + opacity * RGBmat[m_I][1]; ++m_I4;\ glcolar[m_I4] = m_of * glcolar[m_I4] + opacity * RGBmat[m_I][2]; ++m_I4;\ } else { \ glcolar[m_I4] = RGBmat[m_I][0]; ++m_I4;\ glcolar[m_I4] = RGBmat[m_I][1]; ++m_I4;\ glcolar[m_I4] = RGBmat[m_I][2]; ++m_I4;\ isColored[m_I] = YUP;\ } \ ++m_I4;\ }\ } SUMA_RGB_FGnL_AR4op(RGBmat, glcolar, N, opacity, add) RGBmat (float **) N x 3 matrix of RGB values glcolar (GLfloat *) (4 N) x 1 vector opacity (float) an opacity factor applied to each color R, G, B values in the entire list before adding it to a pre-exising color opacity is not applied to the color of nodes that had not been colored thus far. isColored (SUMA_Boolean) N_Nodes x 1 vector indicating that a node was colored. ONLY YUP/1 are placed Dec 04 03: Variant SUMA_RGB_FGnL_AR4op2 removed opacity scaling of RGBmat[m_I] and added clipping to 1.0 Mar 17 04: Added the SUMA_RGBv versions using RGBvec instead of RGBmat. Definition at line 1466 of file SUMA_Macros.h. |
|
Value: {\ int m_I, m_I4 = 0; \ float m_of;\ m_of = 1-opacity;\ for (m_I=0; m_I < nrgb; ++m_I) {\ if (isColored[m_I]) { \ glcolar[m_I4] = m_of * glcolar[m_I4] + RGBmat[m_I][0]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4;\ glcolar[m_I4] = m_of * glcolar[m_I4] + RGBmat[m_I][1]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4;\ glcolar[m_I4] = m_of * glcolar[m_I4] + RGBmat[m_I][2]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4;\ } else { \ glcolar[m_I4] = RGBmat[m_I][0]; ++m_I4;\ glcolar[m_I4] = RGBmat[m_I][1]; ++m_I4;\ glcolar[m_I4] = RGBmat[m_I][2]; ++m_I4;\ isColored[m_I] = YUP;\ } \ ++m_I4;\ }\ } Definition at line 1502 of file SUMA_Macros.h. |
|
Value: {\ int m_I, m_I4 = 0; \ float m_of;\ for (m_I=0; m_I < nrgb; ++m_I) {\ glcolar[m_I4] = locgain[m_I] * RGBmat[m_I][0]; ++m_I4;\ glcolar[m_I4] = locgain[m_I] * RGBmat[m_I][1]; ++m_I4;\ glcolar[m_I4] = locgain[m_I] * RGBmat[m_I][2]; ++m_I4;\ isColored[m_I] = YUP;\ ++m_I4;\ }\ } SUMA_RGB_FnGL_AR4op copies an N x 3 RGB matrix into a 4N x 1 GL color array format F (Full) means that N is equal to all the nodes in the surface nG (NoGlob) means no opacity is applied to the color values (fully opaque) L (Local) means a local gain (per node) is applied to the color values SUMA_RGB_FnGL_AR4op(RGBmat, glcolar, N, locgain, add) RGBmat (float **) N x 3 matrix of RGB values glcolar (GLfloat *) (4 N) x 1 vector locgain (float *) a N x 1 vector of gains applied to their respective nodes isColored (SUMA_Boolean) N_Nodes x 1 vector indicating that a node was colored. ONLY YUP/1 are placed Mar 17 04: Added the SUMA_RGBv versions using RGBvec instead of RGBmat. Definition at line 1657 of file SUMA_Macros.h. |
|
Value: {\ int m_I, m_I4 = 0; \ for (m_I=0; m_I < nrgb; ++m_I) {\ isColored[m_I] = YUP;\ glcolar[m_I4] = RGBmat[m_I][0]; ++m_I4;\ glcolar[m_I4] = RGBmat[m_I][1]; ++m_I4;\ glcolar[m_I4] = RGBmat[m_I][2]; ++m_I4;\ ++m_I4;\ }\ } SUMA_RGB_FnGnL_AR4op(RGBmat, glcolar, N, add) RGBmat (float **) N x 3 matrix of RGB values glcolar (GLfloat *) (4 N) x 1 vector isColored (SUMA_Boolean) N_Nodes x 1 vector indicating that a node was colored. ONLY YUP/1 are placed Mar 17 04: Added the SUMA_RGBv versions using RGBvec instead of RGBmat. Definition at line 1423 of file SUMA_Macros.h. |
|
Value: {\ int m_I, m_I4 = 0; \ float m_of, m_of2;\ for (m_I=0; m_I < nrgb; ++m_I) {\ if (!isColored[NodeId[m_I]]) { \ if (NodeId[m_I] < N_Node) {\ m_I4 = 4*NodeId[m_I]; \ glcolar[m_I4] = locgain[m_I] * RGBmat[m_I][0]; ++m_I4;\ glcolar[m_I4] = locgain[m_I] * RGBmat[m_I][1]; ++m_I4;\ glcolar[m_I4] = locgain[m_I] * RGBmat[m_I][2]; ++m_I4;\ isColored[NodeId[m_I]] = YUP;\ }\ }else { \ if (NodeId[m_I] < N_Node) {\ m_I4 = 4*NodeId[m_I]; \ m_of = (locgain[m_I] * opacity); \ m_of2 = (1 - opacity);\ glcolar[m_I4] = m_of2 * glcolar[m_I4] + m_of * RGBmat[m_I][0]; ++m_I4;\ glcolar[m_I4] = m_of2 * glcolar[m_I4] + m_of * RGBmat[m_I][1]; ++m_I4;\ glcolar[m_I4] = m_of2 * glcolar[m_I4] + m_of * RGBmat[m_I][2]; ++m_I4;\ }\ }\ }\ } SUMA_RGB_PGL_AR4op copies an N x 3 RGB matrix into a 4N x 1 GL color array format P (Part) means that colors are specified for some of the nodes only N < N_Nodes G (Glob) means an opacity is applied to the color values L (Local) means a local gain (per node) is applied to the color values SUMA_RGB_PGL_AR4op(RGBmat, NodeId, glcolar, N, isColored, opacity, locgain, add, N_Nodes) RGBmat (float **) N x 3 matrix of RGB values NodeId (int *) N x 1 vector containing indices of nodes for wich color is specified in RGBmat glcolar (GLfloat *) (4 N_Nodes) x 1 vector isColored (SUMA_Boolean) N_Nodes x 1 vector indicating that a node was colored. ONLY YUP/1 are placed when a node is assigned a color. Values of isColored for nodes that have not been visited remain unchanged opacity (float) an opacity factor applied to each color R, G, B values in the entire list before adding it to a pre-exising color opacity is not applied to the color of nodes that had not been colored thus far. locgain (float *) N x 1 vector of gains applied to their respective nodes Dec. 04 03: Variant SUMA_RGB_PGL_AR4op2 Instead of mixing like this: Col_new = (1 - opacity) *Col_1 + opacity * locgain *Col_2; I am using Col_new = (1 - opacity)*Col_1 + locgain * Col_2; if (Col_new > 1) Col_new = 1 Mar 17 04: Added the SUMA_RGBv versions using RGBvec instead of RGBmat. Definition at line 1874 of file SUMA_Macros.h. |
|
Value: {\ int m_I, m_I4 = 0; \ float m_of, m_of2;\ for (m_I=0; m_I < nrgb; ++m_I) {\ if (!isColored[NodeId[m_I]]) { \ if (NodeId[m_I] < N_Node) {\ m_I4 = 4*NodeId[m_I]; \ glcolar[m_I4] = locgain[m_I] * RGBmat[m_I][0]; ++m_I4;\ glcolar[m_I4] = locgain[m_I] * RGBmat[m_I][1]; ++m_I4;\ glcolar[m_I4] = locgain[m_I] * RGBmat[m_I][2]; ++m_I4;\ isColored[NodeId[m_I]] = YUP;\ }\ }else { \ if (NodeId[m_I] < N_Node) {\ m_I4 = 4*NodeId[m_I]; \ m_of = (locgain[m_I]); \ m_of2 = (1 - opacity);\ glcolar[m_I4] = m_of2 * glcolar[m_I4] + m_of * RGBmat[m_I][0]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4;\ glcolar[m_I4] = m_of2 * glcolar[m_I4] + m_of * RGBmat[m_I][1]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4;\ glcolar[m_I4] = m_of2 * glcolar[m_I4] + m_of * RGBmat[m_I][2]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4;\ }\ }\ }\ } Definition at line 1925 of file SUMA_Macros.h. |
|
Value: {\ int m_I, m_I4 = 0, m_II; \ float m_of;\ m_of = (1 - opacity); \ for (m_I=0; m_I < nrgb; ++m_I) {\ if (!isColored[NodeId[m_I]]) { \ if (NodeId[m_I] < N_Node) {\ m_I4 = 4*NodeId[m_I]; \ glcolar[m_I4] = RGBmat[m_I][0]; ++m_I4;\ glcolar[m_I4] = RGBmat[m_I][1]; ++m_I4;\ glcolar[m_I4] = RGBmat[m_I][2]; ++m_I4;\ isColored[NodeId[m_I]] = YUP;\ }\ }else { \ if (NodeId[m_I] < N_Node) {\ m_I4 = 4*NodeId[m_I]; \ glcolar[m_I4] = m_of * glcolar[m_I4] + opacity * RGBmat[m_I][0]; ++m_I4;\ glcolar[m_I4] = m_of * glcolar[m_I4] + opacity * RGBmat[m_I][1]; ++m_I4;\ glcolar[m_I4] = m_of * glcolar[m_I4] + opacity * RGBmat[m_I][2]; ++m_I4;\ }\ }\ }\ } SUMA_RGB_PGnL_AR4op(RGBmat, NodeId, glcolar, N, isColored, opacity, N_Nodes) RGBmat (float **) N x 3 matrix of RGB values NodeId (int *) N x 1 vector containing indices of nodes for wich color is specified in RGBmat glcolar (GLfloat *) (4 N_Nodes) x 1 vector isColored (SUMA_Boolean) N_Nodes x 1 vector indicating that a node was colored. ONLY YUP/1 are placed when a node is assigned a color. Values of isColored for nodes that have not been visited remain unchanged opacity (float) an opacity factor applied to each color R, G, B values in the entire list before adding it to a pre-exising color opacity is not applied to the color of nodes that had not been colored thus far. Dec. 04 03: Variant SUMA_RGB_PGnL_AR4op2 Instead of mixing like this: Col_new = (1 - opacity)*Col_1 + opacity *Col_2; I am using Col_new = (1 - opacity)*Col_1 + Col_2; if (Col_new > 1) Col_new = 1 Mar 17 04: Added the SUMA_RGBv versions using RGBvec instead of RGBmat. Definition at line 1749 of file SUMA_Macros.h. |
|
Value: {\ int m_I, m_I4 = 0, m_II; \ float m_of;\ m_of = (1 - opacity); \ for (m_I=0; m_I < nrgb; ++m_I) {\ if (!isColored[NodeId[m_I]]) { \ if (NodeId[m_I] < N_Node) {\ m_I4 = 4*NodeId[m_I]; \ glcolar[m_I4] = RGBmat[m_I][0]; ++m_I4;\ glcolar[m_I4] = RGBmat[m_I][1]; ++m_I4;\ glcolar[m_I4] = RGBmat[m_I][2]; ++m_I4;\ isColored[NodeId[m_I]] = YUP;\ }\ }else { \ if (NodeId[m_I] < N_Node) {\ m_I4 = 4*NodeId[m_I]; \ glcolar[m_I4] = m_of * glcolar[m_I4] + RGBmat[m_I][0]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4;\ glcolar[m_I4] = m_of * glcolar[m_I4] + RGBmat[m_I][1]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4;\ glcolar[m_I4] = m_of * glcolar[m_I4] + RGBmat[m_I][2]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4;\ }\ }\ }\ } Definition at line 1798 of file SUMA_Macros.h. |
|
Value: {\ int m_I, m_I4 = 0; \ float m_of;\ for (m_I=0; m_I < nrgb; ++m_I) {\ if (NodeId[m_I] < N_Node) {\ m_I4 = 4*NodeId[m_I]; \ glcolar[m_I4] = locgain[m_I] * RGBmat[m_I][0]; ++m_I4;\ glcolar[m_I4] = locgain[m_I] * RGBmat[m_I][1]; ++m_I4;\ glcolar[m_I4] = locgain[m_I] * RGBmat[m_I][2]; ++m_I4;\ isColored[NodeId[m_I]] = YUP;\ }\ }\ } SUMA_RGB_PnGL_AR4op(RGBmat, NodeId, glcolar, N, isColored, locgain, add, N_Nodes) RGBmat (float **) N x 3 matrix of RGB values NodeId (int *) N x 1 vector containing indices of nodes for wich color is specified in RGBmat glcolar (GLfloat *) (4 N_Nodes) x 1 vector isColored (SUMA_Boolean) N_Nodes x 1 vector indicating that a node was colored. ONLY YUP/1 are placed when a node is assigned a color. Values of isColored for nodes that have not been visited remain unchanged locgain (float *) N x 1 vector of gains applied to their respective nodes Mar 17 04: Added the SUMA_RGBv versions using RGBvec instead of RGBmat. Definition at line 1995 of file SUMA_Macros.h. |
|
Value: {\ int m_I, m_I4 = 0; \ for (m_I=0; m_I < nrgb; ++m_I) {\ if (NodeId[m_I] < N_Node) {\ m_I4 = 4*NodeId[m_I]; \ glcolar[m_I4] = RGBmat[m_I][0]; ++m_I4;\ glcolar[m_I4] = RGBmat[m_I][1]; ++m_I4;\ glcolar[m_I4] = RGBmat[m_I][2]; ++m_I4;\ isColored[NodeId[m_I]] = YUP;\ }\ }\ } SUMA_RGB_PnGnL_AR4op(RGBmat, NodeId, glcolar, N, isColored, N_Nodes) RGBmat (float **) N x 3 matrix of RGB values NodeId (int *) N x 1 vector containing indices of nodes for wich color is specified in RGBmat glcolar (GLfloat *) (4 N_Nodes) x 1 vector isColored (SUMA_Boolean) N_Nodes x 1 vector indicating that a node was colored. ONLY YUP/1 are placed when a node is assigned a color. Values of isColored for nodes that have not been visited remain unchanged Mar 17 04: Added the SUMA_RGBv versions using RGBvec instead of RGBmat. Definition at line 1697 of file SUMA_Macros.h. |
|
Value: {\ int m_I, m_I4 = 0; \ for (m_I=0; m_I < nrgb; ++m_I) {\ glcolar[m_I4] = RGBmat[m_I][0]; ++m_I4;\ glcolar[m_I4] = RGBmat[m_I][1]; ++m_I4;\ glcolar[m_I4] = RGBmat[m_I][2]; ++m_I4;\ ++m_I4;\ }\ } Definition at line 1335 of file SUMA_Macros.h. |
|
Value: {\ int m_I, m_I4 = 0, m_I3 = 0; \ float m_of, m_of2;\ for (m_I=0; m_I < nrgb; ++m_I) {\ if (isColored[m_I]) { \ m_of = locgain[m_I] * opacity; \ m_of2 = (1-opacity);\ glcolar[m_I4] = m_of2 * glcolar[m_I4] + m_of * RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = m_of2 * glcolar[m_I4] + m_of * RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = m_of2 * glcolar[m_I4] + m_of * RGBvec[m_I3]; ++m_I4; ++m_I3;\ } else { \ glcolar[m_I4] = locgain[m_I] * RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = locgain[m_I] * RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = locgain[m_I] * RGBvec[m_I3]; ++m_I4; ++m_I3;\ isColored[m_I] = YUP;\ } \ ++m_I4;\ }\ } Definition at line 1582 of file SUMA_Macros.h. Referenced by SUMA_MixOverlays(). |
|
Value: {\ int m_I, m_I4 = 0, m_I3=0; \ float m_of, m_of2;\ for (m_I=0; m_I < nrgb; ++m_I) {\ if (isColored[m_I]) { \ m_of = locgain[m_I]; \ m_of2 = (1-opacity);\ glcolar[m_I4] = m_of2 * glcolar[m_I4] + m_of * RGBvec[m_I3]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4; ++m_I3;\ glcolar[m_I4] = m_of2 * glcolar[m_I4] + m_of * RGBvec[m_I3]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4; ++m_I3;\ glcolar[m_I4] = m_of2 * glcolar[m_I4] + m_of * RGBvec[m_I3]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4; ++m_I3;\ } else { \ glcolar[m_I4] = locgain[m_I] * RGBvec[m_I3]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4; ++m_I3;\ glcolar[m_I4] = locgain[m_I] * RGBvec[m_I3]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4; ++m_I3;\ glcolar[m_I4] = locgain[m_I] * RGBvec[m_I3]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4; ++m_I3;\ isColored[m_I] = YUP;\ } \ ++m_I4;\ }\ } Definition at line 1620 of file SUMA_Macros.h. Referenced by SUMA_MixOverlays(). |
|
Value: {\ int m_I, m_I4 = 0, m_I3 = 0; \ float m_of;\ m_of = 1-opacity;\ for (m_I=0; m_I < nrgb; ++m_I) {\ if (isColored[m_I]) { \ glcolar[m_I4] = m_of * glcolar[m_I4] + opacity * RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = m_of * glcolar[m_I4] + opacity * RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = m_of * glcolar[m_I4] + opacity * RGBvec[m_I3]; ++m_I4; ++m_I3;\ } else { \ glcolar[m_I4] = RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = RGBvec[m_I3]; ++m_I4; ++m_I3;\ isColored[m_I] = YUP;\ } \ ++m_I4;\ }\ } Definition at line 1484 of file SUMA_Macros.h. Referenced by SUMA_MixOverlays(). |
|
Value: {\ int m_I, m_I4 = 0, m_I3 = 0; \ float m_of;\ m_of = 1-opacity;\ for (m_I=0; m_I < nrgb; ++m_I) {\ if (isColored[m_I]) { \ glcolar[m_I4] = m_of * glcolar[m_I4] + RGBvec[m_I3]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4; ++m_I3;\ glcolar[m_I4] = m_of * glcolar[m_I4] + RGBvec[m_I3]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4; ++m_I3;\ glcolar[m_I4] = m_of * glcolar[m_I4] + RGBvec[m_I3]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4; ++m_I3;\ } else { \ glcolar[m_I4] = RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = RGBvec[m_I3]; ++m_I4; ++m_I3;\ isColored[m_I] = YUP;\ } \ ++m_I4;\ }\ } Definition at line 1520 of file SUMA_Macros.h. Referenced by SUMA_MixOverlays(). |
|
Value: {\ int m_I, m_I4 = 0, m_I3=0; \ float m_of;\ for (m_I=0; m_I < nrgb; ++m_I) {\ glcolar[m_I4] = locgain[m_I] * RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = locgain[m_I] * RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = locgain[m_I] * RGBvec[m_I3]; ++m_I4; ++m_I3;\ isColored[m_I] = YUP;\ ++m_I4;\ }\ } Definition at line 1668 of file SUMA_Macros.h. Referenced by SUMA_MixOverlays(). |
|
Value: {\ int m_I, m_I4 = 0, m_I3=0; \ for (m_I=0; m_I < nrgb; ++m_I) {\ isColored[m_I] = YUP;\ glcolar[m_I4] = RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = RGBvec[m_I3]; ++m_I4; ++m_I3;\ ++m_I4;\ }\ } Definition at line 1434 of file SUMA_Macros.h. Referenced by SUMA_MixOverlays(). |
|
Value: {\ int m_I, m_I4 = 0, m_I3=0; \ float m_of, m_of2;\ for (m_I=0; m_I < nrgb; ++m_I) {\ if (!isColored[NodeId[m_I]]) { \ if (NodeId[m_I] < N_Node) {\ m_I4 = 4*NodeId[m_I]; \ m_I3 = 3*m_I; \ glcolar[m_I4] = locgain[m_I] * RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = locgain[m_I] * RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = locgain[m_I] * RGBvec[m_I3]; ++m_I4; ++m_I3;\ isColored[NodeId[m_I]] = YUP;\ }\ }else { \ if (NodeId[m_I] < N_Node) {\ m_I4 = 4*NodeId[m_I]; \ m_I3 = 3*m_I; \ m_of = (locgain[m_I] * opacity); \ m_of2 = (1 - opacity);\ glcolar[m_I4] = m_of2 * glcolar[m_I4] + m_of * RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = m_of2 * glcolar[m_I4] + m_of * RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = m_of2 * glcolar[m_I4] + m_of * RGBvec[m_I3]; ++m_I4; ++m_I3;\ }\ }\ }\ } Definition at line 1898 of file SUMA_Macros.h. Referenced by SUMA_MixOverlays(). |
|
Value: {\ int m_I, m_I4 = 0, m_I3=0; \ float m_of, m_of2;\ for (m_I=0; m_I < nrgb; ++m_I) {\ if (!isColored[NodeId[m_I]]) { \ if (NodeId[m_I] < N_Node) {\ m_I4 = 4*NodeId[m_I]; \ m_I3 = 3*m_I; \ glcolar[m_I4] = locgain[m_I] * RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = locgain[m_I] * RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = locgain[m_I] * RGBvec[m_I3]; ++m_I4; ++m_I3;\ isColored[NodeId[m_I]] = YUP;\ }\ }else { \ if (NodeId[m_I] < N_Node) {\ m_I4 = 4*NodeId[m_I]; \ m_I3 = 3*m_I; \ m_of = (locgain[m_I]); \ m_of2 = (1 - opacity);\ glcolar[m_I4] = m_of2 * glcolar[m_I4] + m_of * RGBvec[m_I3]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4; ++m_I3;\ glcolar[m_I4] = m_of2 * glcolar[m_I4] + m_of * RGBvec[m_I3]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4; ++m_I3;\ glcolar[m_I4] = m_of2 * glcolar[m_I4] + m_of * RGBvec[m_I3]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4; ++m_I3;\ }\ }\ }\ } Definition at line 1949 of file SUMA_Macros.h. Referenced by SUMA_MixOverlays(). |
|
Value: {\ int m_I, m_I4 = 0, m_II, m_I3=0; \ float m_of;\ m_of = (1 - opacity); \ for (m_I=0; m_I < nrgb; ++m_I) {\ if (!isColored[NodeId[m_I]]) { \ if (NodeId[m_I] < N_Node) {\ m_I4 = 4*NodeId[m_I]; \ m_I3 = 3*m_I; \ glcolar[m_I4] = RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = RGBvec[m_I3]; ++m_I4; ++m_I3;\ isColored[NodeId[m_I]] = YUP;\ }\ }else { \ if (NodeId[m_I] < N_Node) {\ m_I4 = 4*NodeId[m_I]; \ m_I3 = 3*m_I; \ glcolar[m_I4] = m_of * glcolar[m_I4] + opacity * RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = m_of * glcolar[m_I4] + opacity * RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = m_of * glcolar[m_I4] + opacity * RGBvec[m_I3]; ++m_I4; ++m_I3;\ }\ }\ }\ } Definition at line 1772 of file SUMA_Macros.h. Referenced by SUMA_MixOverlays(). |
|
Value: {\ int m_I, m_I4 = 0, m_II, m_I3=0; \ float m_of;\ m_of = (1 - opacity); \ for (m_I=0; m_I < nrgb; ++m_I) {\ if (!isColored[NodeId[m_I]]) { \ if (NodeId[m_I] < N_Node) {\ m_I4 = 4*NodeId[m_I]; \ m_I3 = 3*m_I; \ glcolar[m_I4] = RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = RGBvec[m_I3]; ++m_I4; ++m_I3;\ isColored[NodeId[m_I]] = YUP;\ }\ }else { \ if (NodeId[m_I] < N_Node) {\ m_I4 = 4*NodeId[m_I]; \ m_I3 = 3*m_I; \ glcolar[m_I4] = m_of * glcolar[m_I4] + RGBvec[m_I3]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4; ++m_I3;\ glcolar[m_I4] = m_of * glcolar[m_I4] + RGBvec[m_I3]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4; ++m_I3;\ glcolar[m_I4] = m_of * glcolar[m_I4] + RGBvec[m_I3]; SUMA_CLIP_UB(glcolar[m_I4], 1.0); ++m_I4; ++m_I3;\ }\ }\ }\ } Definition at line 1821 of file SUMA_Macros.h. Referenced by SUMA_MixOverlays(). |
|
Value: {\ int m_I, m_I4 = 0, m_I3=0; \ float m_of;\ for (m_I=0; m_I < nrgb; ++m_I) {\ if (NodeId[m_I] < N_Node) {\ m_I4 = 4*NodeId[m_I]; \ m_I3 = 3*m_I; \ glcolar[m_I4] = locgain[m_I] * RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = locgain[m_I] * RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = locgain[m_I] * RGBvec[m_I3]; ++m_I4; ++m_I3;\ isColored[NodeId[m_I]] = YUP;\ }\ }\ } Definition at line 2008 of file SUMA_Macros.h. Referenced by SUMA_MixOverlays(). |
|
Value: {\ int m_I, m_I4 = 0, m_I3=0; \ for (m_I=0; m_I < nrgb; ++m_I) {\ if (NodeId[m_I] < N_Node) {\ m_I4 = 4*NodeId[m_I]; \ m_I3 = 3*m_I; \ glcolar[m_I4] = RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = RGBvec[m_I3]; ++m_I4; ++m_I3;\ isColored[NodeId[m_I]] = YUP;\ }\ }\ } Definition at line 1710 of file SUMA_Macros.h. Referenced by SUMA_MixOverlays(). |
|
Value: {\ int m_I, m_I4 = 0, m_I3=0; \ for (m_I=0; m_I < nrgb; ++m_I) {\ glcolar[m_I4] = RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = RGBvec[m_I3]; ++m_I4; ++m_I3;\ glcolar[m_I4] = RGBvec[m_I3]; ++m_I4; ++m_I3;\ ++m_I4;\ }\ } Definition at line 1344 of file SUMA_Macros.h. Referenced by SUMA_input(). |
|
Definition at line 108 of file SUMA_Macros.h. Referenced by SUMA_VoxelsInBox(). |
|
Value: { \ typea *_PTA = (typea *)a; \ typeb *_PTB = (typeb *)b; \ int m_IX; \ for(m_IX = 0 ; m_IX < (len) ; m_IX++) \ *(_PTB)++ = (typeb)(s * (*(_PTA)++)); \ } Definition at line 832 of file SUMA_Macros.h. Referenced by SUMA_Find_inIntVect(), and SUMA_StretchToFitLeCerveau(). |
|
Value: { \ m_dist = sqrt( (m_b[0] - m_a[0]) * (m_b[0] - m_a[0]) \ +(m_b[1] - m_a[1]) * (m_b[1] - m_a[1]) \ +(m_b[2] - m_a[2]) * (m_b[2] - m_a[2]) ); \ }
Definition at line 581 of file SUMA_Macros.h. Referenced by SUMA_CalcNeighbDist(), SUMA_EquateSurfaceSize(), and SUMA_ProjectSurfaceToSphere(). |
|
Value: { \ m_dist = (m_b[0] - m_a[0]) * (m_b[0] - m_a[0]) \ +(m_b[1] - m_a[1]) * (m_b[1] - m_a[1]) \ +(m_b[2] - m_a[2]) * (m_b[2] - m_a[2]) ; \ }
Definition at line 595 of file SUMA_Macros.h. Referenced by SUMA_getoffsets2(), and SUMA_getoffsets_ll(). |
|
Value: { \ static double m_dx, m_dy,m_dz; \ \ m_dx = P2[0] - P1[0]; \ m_dy = P2[1] - P1[1]; \ m_dz = P2[2] - P1[2]; \ Un = sqrt(m_dx*m_dx + m_dy*m_dy + m_dz*m_dz); \ } \
Definition at line 1196 of file SUMA_Macros.h. Referenced by SUMA_ReportDrawnROIDatumLength(). |
|
Value: { \ switch (m_PolyMode) { \ case SRM_Fill: \ glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); \ break; \ case SRM_Line: \ glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); \ break; \ case SRM_Points: \ glPolygonMode(GL_FRONT_AND_BACK, GL_POINT); \ break; \ case SRM_ViewerDefault: \ break; \ default: \ fprintf (SUMA_STDERR, "Error %s: Wrong Rendering Mode.\n", FuncName); \ break; \ } \ } Definition at line 284 of file SUMA_Macros.h. Referenced by SUMA_cmap_context_Init(), SUMA_context_Init(), SUMA_DrawCmap(), SUMA_DrawMesh(), and SUMA_input(). |
|
Definition at line 100 of file SUMA_Macros.h. Referenced by SUMA_FindVoxelsInSurface_SLOW(), and SUMA_Surf_Plane_Intersect(). |
|
Value: { \ int m_i, m_i3; \ float m_dx, m_dy, m_dz; \ r = 0.0; \ for (m_i=0; m_i<SO->N_Node; ++m_i) { \ m_i3 = 3 * m_i; \ m_dx = SO->NodeList[m_i3 ] - SO->Center[0]; \ m_dy = SO->NodeList[m_i3+1] - SO->Center[1]; \ m_dz = SO->NodeList[m_i3+2] - SO->Center[2]; \ r += sqrt( (m_dx * m_dx) + (m_dy * m_dy) + (m_dz * m_dz)); \ } \ r /= (float)SO->N_Node; \ }
Definition at line 308 of file SUMA_Macros.h. Referenced by SUMA_GetAreaDiffRange(), and SUMA_GetVolDiffRange(). |
|
Value: {\ c[0] = s[0] * cos(s[2]) * cos(s[1]) ; \ c[1] = s[0] * cos(s[2]) * sin(s[1]) ; \ c[2] = s[0] * sin(s[2]); \ }
Definition at line 222 of file SUMA_Macros.h. Referenced by SUMA_Sph2Cart(). |
|
Value: { \ typea **_AMX = (typea **)a; \ typeb **_BMX = (typeb **)b; \ typec **_CMX = (typec **)c; \ int m_IX,_JX; \ for(m_IX = 0 ; m_IX < rowsa ; m_IX++) { \ for(_JX = 0 ; _JX < colsa ; _JX++) { \ _CMX[m_IX][_JX] = _AMX[m_IX][_JX] - _BMX[m_IX][_JX]; \ } \ } \ } SUMA_SUB_MAT(a,b,c,rowsa,colsa,typea,typeb,typec) a pointer to first matirx. b pointer to second matrix. c pointer to result matrix. rowsa number of rows in matrix a colsa number of columns in matrix a typea legal C type describing the type of a typeb legal C type describing the type of b typec legal C type describing the type of c Definition at line 1288 of file SUMA_Macros.h. Referenced by SUMA_Surface_Curvature(). |
|
Value: { \ typea *_PTA = a; \ typeb *_PTB = b; \ typec *_PTC = c; \ int m_IX; \ for(m_IX = 0 ; m_IX < (len) ; m_IX++) \ *_PTC++ = (typec)((*_PTA++) - (*_PTB++)); \ } Definition at line 745 of file SUMA_Macros.h. Referenced by SUMA_StretchToFitLeCerveau(). |
|
Value: { \ typea *_PTA = a; \ int m_IX; \ s = (*_PTA++); \ for(m_IX = 1 ; m_IX < (len) ; m_IX++) \ s += (*_PTA++); \ } Definition at line 804 of file SUMA_Macros.h. |
|
Value: { \ if (chnk == 4) SUMA_swap_4( nip ) ; \ else if (chnk == 8) SUMA_swap_8( nip ) ; \ else if (chnk == 2) SUMA_swap_2( nip ) ; \ else { SUMA_SL_Err ("No swapping performed.") } \ } Definition at line 26 of file SUMA_Macros.h. Referenced by SUMA_BrainVoyager_Read(). |
|
Value: {\ int m_i; \ if (chnk == 4) { for (m_i=0; m_i<N_alloc; ++m_i) SUMA_swap_4(&(vec[m_i])); } \ else if (chnk == 2) { for (m_i=0; m_i<N_alloc; ++m_i) SUMA_swap_2(&(vec[m_i])); } \ else if (chnk == 8) { for (m_i=0; m_i<N_alloc; ++m_i) SUMA_swap_8(&(vec[m_i])); } \ else { SUMA_SL_Err("Bad chnk"); } \ } Definition at line 84 of file SUMA_Macros.h. Referenced by SUMA_BinarySuck(), and SUMA_BrainVoyager_Read(). |
|
Value: { \ typea **_AMX = (typea **)a; \ typeb **_BMX = (typeb **)b; \ int m_IX,_JX; \ for(m_IX = 0 ; m_IX < rowsa ; m_IX++) { \ for(_JX = 0 ; _JX < colsa ; _JX++) { \ _BMX[_JX][m_IX] = _AMX[m_IX][_JX]; \ } \ } \ } SUMA_TRANSP_MAT(a,b,rowsa,colsa,typea,typeb) a pointer to first matirx. b pointer to result matrix. rowsa number of rows in matrix a colsa number of columns in matrix a typea legal C type describing the type of a typeb legal C type describing the type of b Definition at line 1315 of file SUMA_Macros.h. Referenced by SUMA_Surface_Curvature(). |
|
Value: {\ float m_TRIAREA_dv[3], m_TRIAREA_dw[3], m_TRIAREA_cross[3]; \ SUMA_MT_SUB (m_TRIAREA_dv, m_TRIAREA_n1, m_TRIAREA_n0); \ SUMA_MT_SUB (m_TRIAREA_dw, m_TRIAREA_n2, m_TRIAREA_n0); \ SUMA_MT_CROSS(m_TRIAREA_cross,m_TRIAREA_dv,m_TRIAREA_dw); \ SUMA_NORM(m_TRIAREA_A, m_TRIAREA_cross); \ m_TRIAREA_A *= 0.5; \ } Definition at line 428 of file SUMA_Macros.h. Referenced by SUMA_GetM2M_NN(), SUMA_MapSurface(), SUMA_Mesh_Area(), SUMA_Subdivide_Mesh(), SUMA_SurfaceMetrics_eng(), and SUMA_TriSurf3v(). |
|
Value: { \ min_v[0] = SUMA_MIN_PAIR( (n1)[0], (n2)[0]); min_v[0] = SUMA_MIN_PAIR( (n3)[0], min_v[0]); \ min_v[1] = SUMA_MIN_PAIR( (n1)[1], (n2)[1]); min_v[1] = SUMA_MIN_PAIR( (n3)[1], min_v[1]); \ min_v[2] = SUMA_MIN_PAIR( (n1)[2], (n2)[2]); min_v[2] = SUMA_MIN_PAIR( (n3)[2], min_v[2]); \ max_v[0] = SUMA_MAX_PAIR( (n1)[0], (n2)[0]); max_v[0] = SUMA_MAX_PAIR( (n3)[0], max_v[0]); \ max_v[1] = SUMA_MAX_PAIR( (n1)[1], (n2)[1]); max_v[1] = SUMA_MAX_PAIR( (n3)[1], max_v[1]); \ max_v[2] = SUMA_MAX_PAIR( (n1)[2], (n2)[2]); max_v[2] = SUMA_MAX_PAIR( (n3)[2], max_v[2]); \ } Definition at line 275 of file SUMA_Macros.h. Referenced by SUMA_GetVoxelsIntersectingTriangle(), and SUMA_SurfGridIntersect(). |
|
Value: { \ \ U[0] = P2[0] - P1[0]; \ U[1] = P2[1] - P1[1]; \ U[2] = P2[2] - P1[2]; \ Un = sqrt(U[0]*U[0] + U[1]*U[1] + U[2]*U[2]); \ if (Un) { \ U[0] /= Un; U[1] /= Un; U[2] /= Un; \ }else { \ U[0] = U[1] = U[2] = 0; \ } \ } \
Definition at line 1178 of file SUMA_Macros.h. Referenced by SUMA_ClusterCenterofMass(), SUMA_DrawLineAxis(), SUMA_EquateSurfaceSize(), SUMA_NewAreaAtRadius(), SUMA_NewVolumeAtRadius(), SUMA_Point_To_Line_Distance(), SUMA_ProjectSurfaceToSphere(), SUMA_Reposition_Touchup(), and SUMA_SurfGridIntersect(). |
|
Value: { \ int m_one = 1; \ \ End = (*(char *)&m_one == 1) ? LSB_FIRST : MSB_FIRST; \ } Definition at line 16 of file SUMA_Macros.h. Referenced by SUMA_BinarySuck(), SUMA_BrainVoyager_Read_vmr(), SUMA_FreeSurfer_ReadBin_eng(), and SUMA_OpenDX_Read_CruiseVolHead(). |
|
Value: Definition at line 240 of file SUMA_Macros.h. Referenced by SUMA_ATF_change_value(), and SUMA_ATF_SetValue(). |