Changeset 12813 for trunk/psLib
- Timestamp:
- Apr 12, 2007, 8:52:57 AM (19 years ago)
- Location:
- trunk/psLib/src/mathtypes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/mathtypes/psImage.c
r12741 r12813 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.12 8$ $Name: not supported by cvs2svn $12 * @date $Date: 2007-04- 04 22:42:02$11 * @version $Revision: 1.129 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2007-04-12 18:52:57 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 93 93 } 94 94 95 image->col0 = 0;96 image->row0 = 0;95 P_PSIMAGE_SET_COL0 (image, 0); 96 P_PSIMAGE_SET_ROW0 (image, 0); 97 97 P_PSIMAGE_SET_NUMCOLS (image, numCols); 98 98 P_PSIMAGE_SET_NUMROWS (image, numRows); -
trunk/psLib/src/mathtypes/psImage.h
r12741 r12813 9 9 * @author Joshua Hoblitt, University of Hawaii 10 10 * 11 * @version $Revision: 1.9 2$ $Name: not supported by cvs2svn $12 * @date $Date: 2007-04- 04 22:42:02$11 * @version $Revision: 1.93 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2007-04-12 18:52:57 $ 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 14 14 */ … … 37 37 const int numCols; ///< Number of columns in image 38 38 const int numRows; ///< Number of rows in image. 39 int col0;///< Column position relative to parent.40 int row0;///< Row position relative to parent.39 const int col0; ///< Column position relative to parent. 40 const int row0; ///< Row position relative to parent. 41 41 42 42 union { … … 63 63 #define P_PSIMAGE_SET_NUMCOLS(img,nc) {*(int*)&img->numCols = nc;} 64 64 #define P_PSIMAGE_SET_NUMROWS(img,nr) {*(int*)&img->numRows = nr;} 65 #define P_PSIMAGE_SET_COL0(img,c0) {*(int*)&img->col0 = c0;} 66 #define P_PSIMAGE_SET_ROW0(img,r0) {*(int*)&img->row0 = r0;} 65 67 #define P_PSIMAGE_SET_TYPE(img,t) {*(psMathType*)&img->type = t;} 66 68
Note:
See TracChangeset
for help on using the changeset viewer.
