IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 14, 2007, 3:24:38 PM (19 years ago)
Author:
Paul Price
Message:

Adding const in some appropriate places.

Location:
trunk/psModules/src/objects
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmModel.h

    r15562 r15843  
    55 * @author EAM, IfA
    66 *
    7  * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    8  * @date $Date: 2007-11-10 01:09:20 $
     7 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     8 * @date $Date: 2007-12-15 01:21:33 $
    99 *
    1010 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    6363//  This function constructs the PSF model for the given source based on the
    6464//  supplied psf and the EXT model for the object.
    65 typedef bool (*pmModelFromPSFFunc)(pmModel *modelPSF, pmModel *modelEXT, pmPSF *psf);
     65typedef bool (*pmModelFromPSFFunc)(pmModel *modelPSF, pmModel *modelEXT, const pmPSF *psf);
    6666
    6767//  This function sets the model parameters based on the PSF for a given coordinate and central
    6868//  intensity
    69 typedef bool (*pmModelParamsFromPSF)(pmModel *model, pmPSF *psf, float Xo, float Yo, float Io);
     69typedef bool (*pmModelParamsFromPSF)(pmModel *model, const pmPSF *psf, float Xo, float Yo, float Io);
    7070
    7171//  This function returns the success / failure status of the given model fit
     
    166166
    167167bool pmModelAddWithOffset(psImage *image,
    168                           psImage *mask,
    169                           pmModel *model,
    170                           pmModelOpMode mode,
    171                           psMaskType maskVal,
    172                           int dx,
    173                           int dy);
     168                          psImage *mask,
     169                          pmModel *model,
     170                          pmModelOpMode mode,
     171                          psMaskType maskVal,
     172                          int dx,
     173                          int dy);
    174174
    175175bool pmModelSubWithOffset(psImage *image,
    176                           psImage *mask,
    177                           pmModel *model,
    178                           pmModelOpMode mode,
    179                           psMaskType maskVal,
    180                           int dx,
    181                           int dy);
     176                          psImage *mask,
     177                          pmModel *model,
     178                          pmModelOpMode mode,
     179                          psMaskType maskVal,
     180                          int dx,
     181                          int dy);
    182182
    183183/** pmModelFitStatus()
  • trunk/psModules/src/objects/pmModelUtils.c

    r15562 r15843  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2007-11-10 01:09:20 $
     7 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2007-12-15 01:22:11 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3434construct a realization of the PSF model at the object coordinates
    3535 *****************************************************************************/
    36 pmModel *pmModelFromPSF (pmModel *modelEXT, pmPSF *psf)
     36pmModel *pmModelFromPSF (pmModel *modelEXT, const pmPSF *psf)
    3737{
    3838    PS_ASSERT_PTR_NON_NULL(psf, NULL);
     
    5656// instantiate a model for the PSF at this location with peak flux
    5757// NOTE: psf and (Xo,Yo) are defined wrt chip coordinates
    58 pmModel *pmModelFromPSFforXY (pmPSF *psf, float Xo, float Yo, float Io)
     58pmModel *pmModelFromPSFforXY (const pmPSF *psf, float Xo, float Yo, float Io)
    5959{
    6060    PS_ASSERT_PTR_NON_NULL(psf, NULL);
  • trunk/psModules/src/objects/pmModelUtils.h

    r14652 r15843  
    55 * @author EAM, IfA
    66 *
    7  * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    8  * @date $Date: 2007-08-24 00:11:02 $
     7 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     8 * @date $Date: 2007-12-15 01:22:11 $
    99 * Copyright 2007 IfA, University of Hawaii
    1010 */
     
    2727pmModel *pmModelFromPSF(
    2828    pmModel *model,                     ///< Add comment
    29     pmPSF *psf                          ///< Add comment
     29    const pmPSF *psf                    ///< Add comment
    3030);
    3131
    3232pmModel *pmModelFromPSFforXY (
    33     pmPSF *psf,
    34     float Xo, 
    35     float Yo, 
     33    const pmPSF *psf,
     34    float Xo,
     35    float Yo,
    3636    float Io
    3737    );
    3838
    3939bool pmModelSetFlux (
    40     pmModel *model, 
     40    pmModel *model,
    4141    float flux
    4242    );
Note: See TracChangeset for help on using the changeset viewer.