IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 17, 2007, 11:01:59 AM (19 years ago)
Author:
magnier
Message:

substantial cleanups of APIs:

changed pmModelGroup to pmModelClass

dropped the _GetFunctions, and moved the modelClass-specific functions
to functions pointers in the pmModel structure. These are assigned
when the model is allocated, based on the model type. Now, instead of
calling, for example,

modelFunc = pmModelFunc_GetFunctions(model->type)
modelFunc();

you just do:

model->modelFunc()

moved some of the support functions into pmModelUtils and
pmSourceUtils.

changed pmIsFooBar to pmFooBarTest for better api listing.

added functions to evaluate and add/subtract models applying an offset
between the image coordinate frame and the chip frame (required frame
for model parameters)

added function(s) to instatiate a pmModel from a pmPSF based on a
given coordinate and peak flux.

added a function to set the model normalization based on a source flux
value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20070817/psModules/src/astrom/pmAstrometryObjects.c

    r13943 r14544  
    88*  @author EAM, IfA
    99*
    10 *  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2007-06-22 00:40:01 $
     10*  @version $Revision: 1.31.4.1 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2007-08-17 21:01:59 $
    1212*
    1313*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    135135    PS_ASSERT_PTR_NON_NULL(st2, NULL); \
    136136    \
    137     assert(st1->n == 0 || pmIsAstromObj(st1->data[0])); \
    138     assert(st2->n == 0 || pmIsAstromObj(st2->data[0])); \
     137    assert(st1->n == 0 || pmAstromObjTest(st1->data[0])); \
     138    assert(st2->n == 0 || pmAstromObjTest(st2->data[0])); \
    139139    \
    140140    /* sort both lists by X coord; st1 first */ \
     
    400400}
    401401
    402 bool pmIsAstromObj(const psPtr ptr)
     402bool pmAstromObjTest(const psPtr ptr)
    403403{
    404404    return (psMemGetDeallocator(ptr) == (psFreeFunc)astromObjFree);
Note: See TracChangeset for help on using the changeset viewer.