CustomFeatures

_MeasDefineCustomFeatures, MeasAddCustomFeature, MeasLoadCustomFeatures, MeasResetCustomFeatures, MeasSaveCustomFeatures, MeasSetCustomFeatureExpression

MeasAddCustomFeature

Description 

 MeasAddCustomFeature(
   char *Name,
   char *Expression,
   int  Unit,
   int  Type,
   int  ManMeasType
);

Creates a new custom measurement feature.

Parameters

char *Name

Name.

char *Expression

Custom expression.

int Unit

Units used in the expression.

No Unit

0

Length

1

Area

2

Volume

3

Angle

4

Wavelength

5

Time

6

Ratio

7

Temperature

8

Amount

10

Velocity

11

int Type

Type of the measurement feature.

Object measurement

1

Field and ROI measurement

2

Manual measurement

4

int ManMeasType

For which type of manual measurement the feature is designed.

Counts

1

Length

2

Area

4

Angle

8

Radius

16

SemiAxes

32

Taxonomy

64

Length3D

128

MeasLoadCustomFeatures

Description 

 MeasLoadCustomFeatures(
   char *Filename
);

This function loads the defined custom measurement features. Use the *.CustomFeat extension for compatibility with the GUI functions.

Parameters

char *Filename

The path and the name of the file.

MeasResetCustomFeatures

Description 

 MeasResetCustomFeatures();

This function removes all defined custom measurement features.

MeasSaveCustomFeatures

Description 

 MeasSaveCustomFeatures(
   char *Filename
);

This function saves all defined custom measurement features to a file. Use the *.CustomFeat extension for compatibility with the GUI functions.

Parameters

char *Filename

The path and the name of the file.

MeasSetCustomFeatureExpression

Description 

 MeasSetCustomFeatureExpression(
   char *Name,
   char *Expression
);

This function sets an expression to a custom feature. Custom features can be created by the MeasAddCustomFeature function.

Parameters

char *Name

Name of a custom measurement feature as it is displayed in the _MeasDefineCustomFeatures dialog.

char *Expression

Custom expression.

_MeasDefineCustomFeatures

This function runs the Measure > Custom Features command.

Description 

 _MeasDefineCustomFeatures();

This function opens the Setup Custom Features dialog window. Define custom measurement feature using the tools provided in this window.