/*
 * zGo2PartStudBaseY.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_GO2PARTSTUDBASEY_H_INCLUDED
#define LMITECH_GO2PARTSTUDBASEY_H_INCLUDED

#include <Go2Measurements/Go2PartStudBaseY.h>
#include <z/zGo2Measurement.h>
#include <z/zGo2Api.h>
#include <Go2ApiBegin.h>

/*
 * Go2PartStudBaseY Class 
 */

typedef struct Go2PartStudBaseYClass
{   
    GO2_PART_MEASUREMENT_FIELDS(); 

    Go2PartRegion2d refRegions[GO2_MAX_REF_REGIONS];
    Go2UInt32 refRegionCount;
    Go2Bool refRegionsEnabled;

    Go2Double studRadius;
    Go2Double studHeight;
    Go2Double baseHeight;
    Go2Double tipHeight;
    
    Go2Bool autoRefRegionEnabled;
    Go2Bool autoTiltCorrectionEnabled;
    Go2Double tiltXAngle;
    Go2Double tiltYAngle;
} Go2PartStudBaseYClass; 

GO2_EXPORT(Go2Status) Go2PartStudBaseY_Construct(Go2PartStudBaseY* measurement, Go2UInt32 id, Go2System system); 
GO2_EXPORT(Go2Status) Go2PartStudBaseY_Init(Go2PartStudBaseY measurement, Go2UInt32 id, Go2System system);
GO2_EXPORT(Go2Status) Go2PartStudBaseY_VRelease(Go2PartStudBaseY measurement);
GO2_EXPORT(Go2Status) Go2PartStudBaseY_VRead(Go2PartStudBaseY measurement, zXml xml, zXmlItem item); 
GO2_EXPORT(Go2Status) Go2PartStudBaseY_VWrite(Go2PartStudBaseY measurement, zXml xml, zXmlItem item); 



#include <Go2ApiEnd.h>
#endif
