/*
 * Go2ProfileGrooveX.h
 * 
 * Gocator system communication library
 * Copyright (C) 2013 by LMI Technologies Inc.
 * 
 * Licensed under The MIT License.
 * Redistributions of files must retain the above copyright notice.
 */

#ifndef LMITECH_Z_GO2PROFILEGROOVEX_H_INCLUDED
#define LMITECH_Z_GO2PROFILEGROOVEX_H_INCLUDED

#include <Go2Measurement.h>
#include <Go2ProfileTypes.h>
#include <Go2ApiBegin.h>

/*
 * Go2ProfileGrooveX Class
 */

typedef Go2Measurement Go2ProfileGrooveX;           // Represents profile line percentile measurement configuration.

GO2_EXPORT(Go2Status) Go2ProfileGrooveX_SetId(Go2ProfileGrooveX measurement, Go2UInt32 id); //
//
//  Description:
//      Sets the unique measurement identifier for the measurement.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//      id - Unique measurement identifier. 
//  Returns:
//      Operation status. 

GO2_EXPORT(Go2UInt32) Go2ProfileGrooveX_Id(Go2ProfileGrooveX measurement); //
//
//  Description:
//      Gets the unique measurement identifier for the measurement.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//  Returns:
//      Unique measurement identifier 

GO2_EXPORT(Go2Status) Go2ProfileGrooveX_SetName(Go2ProfileGrooveX measurement, const Go2Char* name); //
//
//  Description:
//      Sets the descriptive name for the measurement.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//      name - Descriptive name. 
//  Returns:
//      Operation status. 
 
GO2_EXPORT(Go2Status) Go2ProfileGrooveX_Name(Go2ProfileGrooveX measurement, Go2Char* name, Go2UInt32 capacity); //
//
//  Description:
//      Gets the descriptive name for the measurement.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//      name - Receives descriptive name. 
//      capacity - Capacity of name buffer. 
//  Returns:
//      Operation status. 

GO2_EXPORT(Go2UInt32) Go2ProfileGrooveX_SourceOptionCount(Go2ProfileGrooveX measurement); //
//
//  Description:
//      Gets the number of profile source options for the measurement.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//  Returns:
//      Count of source options.

GO2_EXPORT(Go2ProfileSource) Go2ProfileGrooveX_SourceOptionAt(Go2ProfileGrooveX measurement, Go2UInt32 index); //
//
//  Description:
//      Gets the profile source option at the specified index.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//      index - Selected profile source option.
//  Returns:
//      Profile source option. 

GO2_EXPORT(Go2Status) Go2ProfileGrooveX_SetSource(Go2ProfileGrooveX measurement, Go2ProfileSource source); //
//
//  Description:
//      Sets the source for profile data used in this measurement.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//      source - Profile source.
//  Returns:
//      Operation status.

GO2_EXPORT(Go2ProfileSource) Go2ProfileGrooveX_Source(Go2ProfileGrooveX measurement); //
//
//  Description:
//      Gets the source for profile data used in this measurement.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//  Returns: 
//      Profile source. 
 
GO2_EXPORT(Go2Status) Go2ProfileGrooveX_SetDecisionMin(Go2ProfileGrooveX measurement, Go2Double min); //
//
//  Description:
//      Sets the decision threshold minimum value.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//      min - Decision threshold minimum value. 
//  Returns:
//      Operation status.
//  Remarks: 
//      A decision is said to pass if the measurement value is between the minimum and maximum thresholds.
 
GO2_EXPORT(Go2Double) Go2ProfileGrooveX_DecisionMin(Go2ProfileGrooveX measurement); //
//
//  Description:
//      Gets the decision threshold minimum value.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//  Returns:
//      Decision threshold minimum.
//  Remarks: 
//      A decision is said to pass if the measurement value is between the minimum and maximum thresholds.
 
GO2_EXPORT(Go2Status) Go2ProfileGrooveX_SetDecisionMax(Go2ProfileGrooveX measurement, Go2Double max); //
//
//  Description:
//      Sets the decision threshold maximum value.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//      max - Decision threshold maximum value. 
//  Returns:
//      Operation status.
//  Remarks: 
//      A decision is said to pass if the measurement value is between the minimum and maximum thresholds.
 
GO2_EXPORT(Go2Double) Go2ProfileGrooveX_DecisionMax(Go2ProfileGrooveX measurement); //
//
//  Description:
//      Gets the decision threshold maximum value.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//  Returns:
//      Decision threshold maximum.
//  Remarks: 
//      A decision is said to pass if the measurement value is between the minimum and maximum thresholds.
 
GO2_EXPORT(Go2Status) Go2ProfileGrooveX_EnableHold(Go2ProfileGrooveX measurement, Go2Bool enable); //
//
//  Description:
//      Enables measurement value hold.
//  Arguments:
//      measurement - Go2ProfileGrooveX object.
//      enable - GO2_TRUE to enable, or GO2_FALSE to disable.
//  Returns:
//      Operation status.

GO2_EXPORT(Go2Bool) Go2ProfileGrooveX_HoldEnabled(Go2ProfileGrooveX measurement); //
//
//  Description:
//      Reports whether value hold is currently enabled.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//  Returns:
//      GO2_TRUE if enabled, or GO2_FALSE if disabled.

GO2_EXPORT(Go2Status) Go2ProfileGrooveX_EnableSmoothing(Go2ProfileGrooveX measurement, Go2Bool enable); //
//
//  Description:
//      Enables measurement value smoothing.
//  Arguments:
//      measurement - Go2ProfileGrooveX object.
//      enable - GO2_TRUE to enable, or GO2_FALSE to disable.
//  Returns:
//      Operation status.

GO2_EXPORT(Go2Bool) Go2ProfileGrooveX_SmoothingEnabled(Go2ProfileGrooveX measurement); //
//
//  Description:
//      Reports whether value smoothing is currently enabled.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//  Returns:
//      GO2_TRUE if enabled, or GO2_FALSE if disabled.

GO2_EXPORT(Go2UInt32) Go2ProfileGrooveX_SmoothingWindowMin(Go2ProfileGrooveX measurement); //
//
//  Description:
//      Gets the minimum smoothing window value.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//  Returns:
//      Minimum smoothing window value.

GO2_EXPORT(Go2UInt32) Go2ProfileGrooveX_SmoothingWindowMax(Go2ProfileGrooveX measurement); //
//
//  Description:
//      Gets the maximum smoothing window value.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//  Returns:
//      Maximum smoothing window value.

GO2_EXPORT(Go2Status) Go2ProfileGrooveX_SetSmoothingWindow(Go2ProfileGrooveX measurement, Go2UInt32 window); //
//
//  Description:
//      Sets the smoothing window value.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//      window - Smoothing window value.
//  Returns:
//      Operation status.

GO2_EXPORT(Go2UInt32) Go2ProfileGrooveX_SmoothingWindow(Go2ProfileGrooveX measurement); //
//
//  Description:
//      Gets the smoothing window value.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//  Returns:
//      Smoothing window value.

GO2_EXPORT(Go2ProfileArea) Go2ProfileGrooveX_Area(Go2ProfileGrooveX measurement); //
//
//  Description:
//      Gets the region of interest.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//  Returns:
//      Area object. 

GO2_EXPORT(Go2Status) Go2ProfileGrooveX_SetShape(Go2ProfileGrooveX measurement, Go2ProfileGrooveShape shape); //
//
//  Description:
//      Sets the groove shape to search for.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//      shape - The groove shape.
//  Returns:
//      Operation status.
 
GO2_EXPORT(Go2ProfileGrooveShape) Go2ProfileGrooveX_Shape(Go2ProfileGrooveX measurement); //
//
//  Description:
//      Gets the groove shape to search for.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//  Returns:
//      The groove shape.

GO2_EXPORT(Go2Status) Go2ProfileGrooveX_SetSelectType(Go2ProfileGrooveX measurement, Go2ProfileGrooveSelectType type); //
//
//  Description:
//      Sets the select type.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//      type - The select type.
//  Returns:
//      Operation status.
 
GO2_EXPORT(Go2ProfileGrooveSelectType) Go2ProfileGrooveX_SelectType(Go2ProfileGrooveX measurement); //
//
//  Description:
//      Gets the select type.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//  Returns:
//      The select type.

GO2_EXPORT(Go2Status) Go2ProfileGrooveX_SetSelectN(Go2ProfileGrooveX measurement, Go2UInt32 n); //
//
//  Description:
//      Sets the N-th groove to select when selectType is 
//      GO2_PROFILE_GROOVE_SELECT_LEFT or GO2_PROFILE_GROOVE_SELECT_RIGHT.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//      n - The N-th groove to select.
//  Returns:
//      Operation status.
 
GO2_EXPORT(Go2UInt32) Go2ProfileGrooveX_SelectN(Go2ProfileGrooveX measurement); //
//
//  Description:
//      Gets the N-th groove to select when selectType is
//      GO2_PROFILE_GROOVE_SELECT_LEFT or GO2_PROFILE_GROOVE_SELECT_RIGHT.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//  Returns:
//      The N-th groove to select.

GO2_EXPORT(Go2Status) Go2ProfileGrooveX_SetLocation(Go2ProfileGrooveX measurement, Go2ProfileGrooveLocation location); //
//
//  Description:
//      Sets what location on the groove to return the position of.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//      location - The groove position location.
//  Returns:
//      Operation status.

GO2_EXPORT(Go2ProfileGrooveLocation) Go2ProfileGrooveX_Location(Go2ProfileGrooveX measurement); //
//
//  Description:
//      Gets what location on the groove to return the position of.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//  Returns:
//      The groove position location.

GO2_EXPORT(Go2Status) Go2ProfileGrooveX_SetDepthMin(Go2ProfileGrooveX measurement, Go2Double depth); //
//
//  Description:
//      Sets the minimum depth for a groove to be considered.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//      depth - The minimum groove depth.
//  Returns:
//      Operation status.
 
GO2_EXPORT(Go2Double) Go2ProfileGrooveX_DepthMin(Go2ProfileGrooveX measurement); //
//
//  Description:
//      Gets the minimum depth for a groove to be considered.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//  Returns:
//      The minimum groove depth

GO2_EXPORT(Go2Status) Go2ProfileGrooveX_SetWidthMin(Go2ProfileGrooveX measurement, Go2Double width); //
//
//  Description:
//      Sets the minimum width for a groove to be considered.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//      width - The minimum groove width.
//  Returns:
//      Operation status.
 
GO2_EXPORT(Go2Double) Go2ProfileGrooveX_WidthMin(Go2ProfileGrooveX measurement); //
//
//  Description:
//      Gets the minimum width for a groove to be considered.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//  Returns:
//      The minimum groove width

GO2_EXPORT(Go2Status) Go2ProfileGrooveX_SetWidthMax(Go2ProfileGrooveX measurement, Go2Double width); //
//
//  Description:
//      Sets the maximum width for a groove to be considered.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//      width - The maximum groove width.
//  Returns:
//      Operation status.
 
GO2_EXPORT(Go2Double) Go2ProfileGrooveX_WidthMax(Go2ProfileGrooveX measurement); //
//
//  Description:
//      Gets the maximum width for a groove to be considered.
//  Arguments:
//      measurement - Go2ProfileGrooveX object. 
//  Returns:
//      The maximum groove width



GO2_EXPORT(Go2Double) Go2ProfileGrooveX_Offset(Go2ProfileGrooveX measurement); //
//
//  Description:
//      Gets the measurement value offset.
//  Arguments:
//      measurement - Go2ProfileGrooveX object.
//  Returns:
//      Measurement value offset.

GO2_EXPORT(Go2Status) Go2ProfileGrooveX_SetOffset(Go2ProfileGrooveX measurement, Go2Double offset); //
//
//  Description:
//      Sets the measurement value offset.
//  Arguments:
//      measurement - Go2ProfileGrooveX object.
//      offset - Offset factor.
//  Returns:
//      Operation status.

GO2_EXPORT(Go2Double) Go2ProfileGrooveX_Scale(Go2ProfileGrooveX measurement); //
//
//  Description:
//      Gets the measurement value scale factor.
//  Arguments:
//      measurement - Go2ProfileGrooveX object.
//  Returns:
//      Measurement value scale factor.

GO2_EXPORT(Go2Status) Go2ProfileGrooveX_SetScale(Go2ProfileGrooveX measurement, Go2Double scale); //
//
//  Description:
//      Sets the measurement value scale factor.
//  Arguments:
//      measurement - Go2ProfileGrooveX object.
//      scale - Scale factor.
//  Returns:
//      Operation status.

GO2_EXPORT(Go2UInt32) Go2ProfileGrooveX_LinkOptionAt(Go2ProfileGrooveX measurement, Go2UInt32 index); //
//
//  Description:
//      Gets the link-able measurement id at the specified index. 
//    Arguments:
//      measurement - Go2PartMeasurement object.
//  Returns:
//      The link-able measurement ID at the specified index.

GO2_EXPORT(Go2UInt32) Go2ProfileGrooveX_LinkOptionCount(Go2ProfileGrooveX measurement); //
//
//  Description:
//      Gets the number of link-able measurement IDs.
//  Arguments:
//      measurement - Go2PartMeasurement object.
//  Returns:
//      The link-able measurement count.

GO2_EXPORT(Go2UInt32) Go2ProfileGrooveX_Link(Go2ProfileGrooveX measurement);  //
//
//  Description:
//      Gets the measurement id of the linked measurement.
//  Arguments:
//      measurement - Go2PartMeasurement object.
//  Returns:
//      The linked measurement ID.

GO2_EXPORT(Go2Status) Go2ProfileGrooveX_SetLink(Go2ProfileGrooveX measurement, Go2UInt32 link);  //
//
//  Description:
//      Sets the measurement id to which this measurement should link. 
//       Linked measurements must:
//          -link to a valid measurement id
//          -not link to themselves
//          -not link to a measurement that is already linked
//          -link only to measurements of the same basic type (eg, all PartOpening_? measurements)
//    Arguments:
//      measurement - Go2PartMeasurement object.
//      link - Measurement id to link to.
//  Returns:
//      Operation status.

GO2_EXPORT(Go2Bool) Go2ProfileGrooveX_LinkEnabled(Go2ProfileGrooveX measurement);   //
//
//  Description:
//      Enables measurement linking.  When enabled, another measurement of the same base type can be 
//          linked, provided that it is a different measurement.
//          E.g. A Go2PartOpeningX and Go2PartOpeningY measurement can link, but two Go2PartOpeningX measurements can not be linked.
//    Arguments:
//      measurement - Go2PartMeasurement object.
//    Returns:
//      enable - GO2_TRUE to enable, or GO2_FALSE to disable.

GO2_EXPORT(Go2Status) Go2ProfileGrooveX_EnableLink(Go2ProfileGrooveX measurement, Go2Bool enable);   //
//
//  Description:
//      Enables or disables measurement linking.
//  Arguments:
//      measurement - Go2PartMeasurement object.
//      enable - Use GO2_TRUE to enable linking and GO2_FALSE to disable it.
//  Returns:
//      Operation status.

#include <Go2ApiEnd.h>
#endif
