/*
 * Go2PartOpeningWidth.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_GO2PARTOPENINGWIDTH_H_INCLUDED
#define LMITECH_Z_GO2PARTOPENINGWIDTH_H_INCLUDED

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

/*
 * Go2PartOpeningWidth Class 
 */

typedef Go2PartMeasurement Go2PartOpeningWidth;           // Represents part Go2PartOpeningWidth measurement configuration.

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

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

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

GO2_EXPORT(Go2Status) Go2PartOpeningWidth_SetDecisionMin(Go2PartOpeningWidth measurement, Go2Double min); //
//
//  Description:
//      Sets the decision threshold minimum value.
//  Arguments:
//      measurement - Go2PartOpeningWidth 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) Go2PartOpeningWidth_DecisionMin(Go2PartOpeningWidth measurement); //
//
//  Description:
//      Gets the decision threshold minimum value.
//  Arguments:
//      measurement - Go2PartOpeningWidth 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) Go2PartOpeningWidth_SetDecisionMax(Go2PartOpeningWidth measurement, Go2Double max); //
//
//  Description:
//      Sets the decision threshold maximum value.
//  Arguments:
//      measurement - Go2PartOpeningWidth 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) Go2PartOpeningWidth_DecisionMax(Go2PartOpeningWidth measurement); //
//
//  Description:
//      Gets the decision threshold maximum value.
//  Arguments:
//      measurement - Go2PartOpeningWidth 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) Go2PartOpeningWidth_EnableHold(Go2PartOpeningWidth measurement, Go2Bool enable); //
//
//  Description:
//      Enables measurement value hold.
//  Arguments:
//      measurement - Go2PartOpeningWidth object.
//      enable - GO2_TRUE to enable, or GO2_FALSE to disable.
//  Returns:
//      Operation status.

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

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

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

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

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

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

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

GO2_EXPORT(Go2Status) Go2PartOpeningWidth_EnableLink(Go2PartOpeningWidth measurement, Go2Bool enable); //
//
//  Description:
//      Enables bounding box rotation. When enabled, the bounding box will rotate according to the major 
//      axis of the detected part and measurements will be adjusted accordingly.
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//      enable - GO2_TRUE to enable, or GO2_FALSE to disable.
//  Returns:
//      Operation status.
 
GO2_EXPORT(Go2Bool) Go2PartOpeningWidth_LinkEnabled(Go2PartOpeningWidth measurement); //
//
//  Description:
//      Reports whether measurement linking is enabled.
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//  Returns:
//      GO2_TRUE if system operates at full frame rate; GO2_FALSE otherwise.

GO2_EXPORT(Go2Status) Go2PartOpeningWidth_SetLink(Go2PartOpeningWidth 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 - Go2PartOpeningWidth object. 
//      link - Measurement id to link to.
//  Returns:
//      Operation status.

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

GO2_EXPORT(Go2Status) Go2PartOpeningWidth_SetType(Go2PartOpeningWidth measurement, Go2PartOpeningType type); //
//
//  Description:
//      Sets the type of opening width measurement to be measured.
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//      type - Type of opening width measurement to be measured.
//  Returns:
//      Operation status.

GO2_EXPORT(Go2PartOpeningType) Go2PartOpeningWidth_Type(Go2PartOpeningWidth measurement); //
//
//  Description:
//      Gets the type of opening width measurement to be measured.
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//  Returns:
//      Type of opening width measurement to be measured.

GO2_EXPORT(Go2PartRegion3d) Go2PartOpeningWidth_Region(Go2PartOpeningWidth measurement); //
//
//  Description:
//      Gets the region object which defines the measurement's ROI. 
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//  Returns:
//      Region object.

GO2_EXPORT(Go2UInt32) Go2PartOpeningWidth_RefRegionCount(Go2PartOpeningWidth measurement); //
//
//  Description:
//      Gets the number of reference regions. 
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//  Returns:
//      Number of regions.

GO2_EXPORT(Go2Status) Go2PartOpeningWidth_SetRefRegionCount(Go2PartOpeningWidth measurement, Go2UInt32 count); //
//
//  Description:
//      Sets the number of reference regions to use. 
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//      count - Number of regions.
//  Returns:
//      Operation status.

GO2_EXPORT(Go2PartRegion2d) Go2PartOpeningWidth_RefRegionAt(Go2PartOpeningWidth measurement, Go2UInt32 index); //
//
//  Description:
//      Gets the reference region object at the specified index. 
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//      index - Index of the desired area.
//  Returns:
//      Region object.


GO2_EXPORT(Go2Double) Go2PartOpeningWidth_NominalRadius(Go2PartOpeningWidth measurement); //
//
//  Description:
//      Gets the nominal Radius of the hole to measure.
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//  Returns:
//      Nominal Radius of the hole to measure (mm).

GO2_EXPORT(Go2Status) Go2PartOpeningWidth_SetNominalRadius(Go2PartOpeningWidth measurement, Go2Double Radius); //
//
//  Description:
//      Sets the nominal Radius of the hole to measure.
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//      Radius - Nominal Radius of the hole to measure (mm).
//  Returns:
//      Operation status.


GO2_EXPORT(Go2Double) Go2PartOpeningWidth_NominalWidth(Go2PartOpeningWidth measurement); //
//
//  Description:
//      Gets the nominal Width of the hole to measure.
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//  Returns:
//      Nominal Width of the hole to measure (mm).

GO2_EXPORT(Go2Status) Go2PartOpeningWidth_SetNominalWidth(Go2PartOpeningWidth measurement, Go2Double Width); //
//
//  Description:
//      Sets the nominal Width of the hole to measure.
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//      Width - Nominal Width of the hole to measure (mm).
//  Returns:
//      Operation status.

GO2_EXPORT(Go2Double) Go2PartOpeningWidth_WidthTolerance(Go2PartOpeningWidth measurement); //
//
//  Description:
//      Gets the tolerance between the nominal width and the detected hole size.
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//  Returns:
//      Width tolerance (mm).

GO2_EXPORT(Go2Status) Go2PartOpeningWidth_SetWidthTolerance(Go2PartOpeningWidth measurement, Go2Double tolerance); //
//
//  Description:
//      Sets the tolerance between the nominal width and the detected hole size.
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//      tolerance - Width tolerance (mm).
//  Returns:
//      Operation status.


GO2_EXPORT(Go2Double) Go2PartOpeningWidth_NominalLength(Go2PartOpeningWidth measurement); //
//
//  Description:
//      Gets the nominal Length of the hole to measure.
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//  Returns:
//      Nominal Length of the hole to measure (mm).

GO2_EXPORT(Go2Status) Go2PartOpeningWidth_SetNominalLength(Go2PartOpeningWidth measurement, Go2Double Length); //
//
//  Description:
//      Sets the nominal Length of the hole to measure.
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//      Length - Nominal Length of the hole to measure (mm).
//  Returns:
//      Operation status.

GO2_EXPORT(Go2Double) Go2PartOpeningWidth_LengthTolerance(Go2PartOpeningWidth measurement); //
//
//  Description:
//      Gets the tolerance between the nominal Length and the detected hole size.
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//  Returns:
//      Length tolerance (mm).

GO2_EXPORT(Go2Status) Go2PartOpeningWidth_SetLengthTolerance(Go2PartOpeningWidth measurement, Go2Double tolerance); //
//
//  Description:
//      Sets the tolerance between the nominal Length and the detected hole size.
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//      tolerance - Length tolerance (mm).
//  Returns:
//      Operation status.


GO2_EXPORT(Go2Double) Go2PartOpeningWidth_NominalAngle(Go2PartOpeningWidth measurement); //
//
//  Description:
//      Gets the nominal Angle of the hole to measure.
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//  Returns:
//      Nominal Angle of the hole to measure (mm).

GO2_EXPORT(Go2Status) Go2PartOpeningWidth_SetNominalAngle(Go2PartOpeningWidth measurement, Go2Double Angle); //
//
//  Description:
//      Sets the nominal Angle of the hole to measure.
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//      Angle - Nominal Angle of the hole to measure (mm).
//  Returns:
//      Operation status.

GO2_EXPORT(Go2Double) Go2PartOpeningWidth_AngleTolerance(Go2PartOpeningWidth measurement); //
//
//  Description:
//      Gets the tolerance between the nominal Angle and the detected hole size.
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//  Returns:
//      Angle tolerance (mm).

GO2_EXPORT(Go2Status) Go2PartOpeningWidth_SetAngleTolerance(Go2PartOpeningWidth measurement, Go2Double tolerance); //
//
//  Description:
//      Sets the tolerance between the nominal Angle and the detected hole size.
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//      tolerance - Angle tolerance (mm).
//  Returns:
//      Operation status.

GO2_EXPORT(Go2Bool) Go2PartOpeningWidth_AutoRefRegionEnabled(Go2PartOpeningWidth measurement); //
//
//  Description:
//      Reports whether auto reference regions are enabled.
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//  Returns:
//      A boolean representing whether the auto reference region is enabled (1 - true, 0 - false).

GO2_EXPORT(Go2Status) Go2PartOpeningWidth_EnableAutoRefRegion(Go2PartOpeningWidth measurement, Go2Bool enable); //
//
//  Description:
//      Enables or disables auto reference regions.
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//      enable - GO2_TRUE enables auto reference regions, while GO2_FALSE disables them
//  Returns:
//      Operation status.

GO2_EXPORT(Go2Bool) Go2PartOpeningWidth_AutoTiltCorrectionEnabled(Go2PartOpeningWidth measurement); //
//
//  Description:
//      Reports whether auto tilt correction is enabled.
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//  Returns:
//      A boolean representing whether the auto reference region is enabled (1 - true, 0 - false).

GO2_EXPORT(Go2Status) Go2PartOpeningWidth_EnableAutoTiltCorrection(Go2PartOpeningWidth measurement, Go2Bool enable); //
//
//  Description:
//      Enables or disables auto tilt correction.
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//      enable - GO2_TRUE enables auto reference regions, while GO2_FALSE disables them
//  Returns:
//      Operation status.

GO2_EXPORT(Go2Double) Go2PartOpeningWidth_TiltXAngle(Go2PartOpeningWidth measurement); //
//
//  Description:
//      Gets the X axis tilt angle.
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//  Returns:
//      Tilt angle along X axis (degrees).

GO2_EXPORT(Go2Status) Go2PartOpeningWidth_SetTiltXAngle(Go2PartOpeningWidth measurement, Go2Double tiltXAngle); //
//
//  Description:
//      Sets the X axis tilt angle.
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//      tiltXAngle - tilt angle along X axis(degrees).  If it exceeds an internal reasonable range, it will be clamped to the boundary value of said range.
//  Returns:
//      Operation status.

GO2_EXPORT(Go2Double) Go2PartOpeningWidth_TiltYAngle(Go2PartOpeningWidth measurement); //
//
//  Description:
//      Gets the Y axis tilt angle.
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//  Returns:
//      Tilt angle along Y axis (degrees).

GO2_EXPORT(Go2Status) Go2PartOpeningWidth_SetTiltYAngle(Go2PartOpeningWidth measurement, Go2Double tiltYAngle); //
//
//  Description:
//      Sets the Y axis tilt angle.
//  Arguments:
//      measurement - Go2PartOpeningWidth object. 
//      tiltYAngle - tilt angle along Y axis(degrees).  If it exceeds an internal reasonable range, it will be clamped to the boundary value of said range.
//  Returns:
//      Operation status.


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

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

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

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

GO2_EXPORT(Go2Status) Go2PartOpeningWidth_EnablePartialDetection(Go2PartOpeningWidth measurement, Go2Bool enabled); // //
//
//  Description:
//      Enables or disables partial hole detection.
//  Arguments:
//      measurement - Go2PartOpeningWidth object.
//      enable - A boolean representing whether or not partial hole detection is enabled.
//  Returns:
//      Operation status.

GO2_EXPORT(Go2Bool) Go2PartOpeningWidth_PartialDetectionEnabled(Go2PartOpeningWidth measurement); // //
//
//  Description:
//      Gets the current partial hole detection value.
//  Arguments:
//      measurement - Go2PartOpeningWidth object.
//  Returns:
//      GO2_TRUE if partial hole detection is enabled, GO2_FALSE if it is not.

GO2_EXPORT(Go2Status) Go2PartOpeningWidth_EnableRefRegions(Go2PartOpeningWidth measurement, Go2Bool enable); //
//
//  Description:
//      Enables or disables the optional reference region.
//  Arguments:
//      measurement - Go2PartOpeningWidth object.
//      enable - Use GO2_TRUE to enable the optional reference region and GO2_FALSE to disable it.
//  Returns:
//      Operation status.

GO2_EXPORT(Go2Bool) Go2PartOpeningWidth_RefRegionsEnabled(Go2PartOpeningWidth measurement); //
//
//  Description:
//      Returns the current state of the optional reference region.
//  Arguments:
//      measurement - Go2PartOpeningWidth object.
//  Returns:
//      GO2_TRUE if the optional reference region is enabled and GO2_FALSE if it is disabled.

GO2_EXPORT(Go2Bool) Go2PartOpeningWidth_RegionEnabled(Go2PartOpeningWidth measurement);   //
//
//  Description:
//      Returns the current state of the optional region.
//  Arguments:
//      measurement - Go2PartOpeningWidth object.
//  Returns:
//      GO2_TRUE if the optional region is enabled and GO2_FALSE if it is disabled.

GO2_EXPORT(Go2Status) Go2PartOpeningWidth_EnableRegion(Go2PartOpeningWidth measurement, Go2Bool enable);   //
//
//  Description:
//      Enables or disables the optional region.
//  Arguments:
//      measurement - Go2PartOpeningWidth object.
//      enable - Use GO2_TRUE to enable the optional region and GO2_FALSE to disable it.
//  Returns:
//      Operation status.

GO2_EXPORT(Go2UInt32) Go2PartOpeningWidth_LinkOptionAt(Go2PartOpeningWidth 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) Go2PartOpeningWidth_LinkOptionCount(Go2PartOpeningWidth measurement); //
//
//  Description:
//      Gets the number of link-able measurement IDs.
//  Arguments:
//      measurement - Go2PartMeasurement object.
//  Returns:
//      The link-able measurement count.

#include <Go2ApiEnd.h>
#endif
