IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12813 for trunk/psLib


Ignore:
Timestamp:
Apr 12, 2007, 8:52:57 AM (19 years ago)
Author:
magnier
Message:

make psImage.col0,row0 const, added macro to set these values

Location:
trunk/psLib/src/mathtypes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/mathtypes/psImage.c

    r12741 r12813  
    99 *  @author Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.128 $ $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 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    9393    }
    9494
    95     image->col0 = 0;
    96     image->row0 = 0;
     95    P_PSIMAGE_SET_COL0 (image, 0);
     96    P_PSIMAGE_SET_ROW0 (image, 0);
    9797    P_PSIMAGE_SET_NUMCOLS (image, numCols);
    9898    P_PSIMAGE_SET_NUMROWS (image, numRows);
  • trunk/psLib/src/mathtypes/psImage.h

    r12741 r12813  
    99 * @author Joshua Hoblitt, University of Hawaii
    1010 *
    11  * @version $Revision: 1.92 $ $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 $
    1313 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    1414 */
     
    3737    const int numCols;                 ///< Number of columns in image
    3838    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.
    4141
    4242    union {
     
    6363#define P_PSIMAGE_SET_NUMCOLS(img,nc) {*(int*)&img->numCols = nc;}
    6464#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;}
    6567#define P_PSIMAGE_SET_TYPE(img,t) {*(psMathType*)&img->type = t;}
    6668
Note: See TracChangeset for help on using the changeset viewer.