IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25548


Ignore:
Timestamp:
Sep 24, 2009, 2:17:42 PM (17 years ago)
Author:
Paul Price
Message:

Add pmModelClassSetLimits to set limits for all model types.

Location:
branches/pap/psModules/src/objects
Files:
3 edited

Legend:

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

    r25521 r25548  
    8383
    8484//  This function sets the parameter limits for the given model
    85 typedef bool (*pmModelSetLimitsFunc)(pmModelLimits type);
     85typedef bool (*pmModelSetLimitsFunc)(pmModelLimitsType type);
    8686
    8787/** pmModel data structure
  • branches/pap/psModules/src/objects/pmModelClass.c

    r25521 r25548  
    168168    return (models[type].name);
    169169}
     170
     171
     172void pmModelClassSetLimits(pmModelLimitsType type)
     173{
     174    if (!models) {
     175        pmModelClassInit();
     176    }
     177
     178    for (int i = 0; i < Nmodels; i++) {
     179        models[i].modelSetLimits(type);
     180    }
     181
     182}
     183
  • branches/pap/psModules/src/objects/pmModelClass.h

    r25521 r25548  
    2828# ifndef PM_MODEL_CLASS_H
    2929# define PM_MODEL_CLASS_H
     30
     31#include <pmModel.h>
    3032
    3133/// @addtogroup Objects Object Detection / Analysis Functions
     
    7375pmModelType pmModelClassGetType (const char *name);
    7476
     77/// Set parameter limits for all models
     78void pmModelClassSetLimits(pmModelLimitsType type);
     79
     80
    7581/// @}
    7682# endif /* PM_MODEL_CLASS_H */
Note: See TracChangeset for help on using the changeset viewer.