IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 23, 2009, 5:12:22 PM (17 years ago)
Author:
Paul Price
Message:

Added multiple sets of limits for models. Involved reorganisation of how the models are sucked into the pmModelClasses: now using header files instead of including the source for each model. This allows static variables to be properly respected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/psModules/src/objects/pmModel.h

    r21516 r25521  
    4444} pmModelOpMode;
    4545
     46/// Parameter limit types
     47typedef enum {
     48    PM_MODEL_LIMITS_NONE,               ///< No limits: fit can go to town
     49    PM_MODEL_LIMITS_LAX,                ///< Lax limits: attempting to reproduce mildly bad data
     50    PM_MODEL_LIMITS_STRICT,             ///< Strict limits: good quality data
     51} pmModelLimitsType;
     52
    4653typedef struct pmModel pmModel;
    4754typedef struct pmSource pmSource;
     
    7481//  This function returns the success / failure status of the given model fit
    7582typedef bool (*pmModelFitStatusFunc)(pmModel *model);
     83
     84//  This function sets the parameter limits for the given model
     85typedef bool (*pmModelSetLimitsFunc)(pmModelLimits type);
    7686
    7787/** pmModel data structure
     
    108118    pmModelParamsFromPSF modelParamsFromPSF;
    109119    pmModelFitStatusFunc modelFitStatus;
     120    pmModelSetLimitsFunc modelSetLimits;
    110121};
    111122
     
    151162    pmModel *model,                     ///< The input pmModel
    152163    pmModelOpMode mode,                 ///< mode to control how the model is added into the image
    153     psImageMaskType maskVal             ///< Value to mask
     164    psImageMaskType maskVal             ///< Value to mask
    154165);
    155166
     
    169180    pmModel *model,                     ///< The input pmModel
    170181    pmModelOpMode mode,                 ///< mode to control how the model is added into the image
    171     psImageMaskType maskVal             ///< Value to mask
     182    psImageMaskType maskVal             ///< Value to mask
    172183);
    173184
     
    202213);
    203214
     215
     216/// Set the model parameter limits for the given model
     217///
     218/// Wraps the model-specific pmModelSetLimitsFunc function.
     219bool pmModelSetLimits(
     220    const pmModel *model,               ///< Model of interest
     221    pmModelLimits type                  ///< Type of limits
     222    );
     223
     224
    204225/// @}
    205226# endif /* PM_MODEL_H */
Note: See TracChangeset for help on using the changeset viewer.