16 # define MC3D_EXPORT __declspec(dllexport)
52 unsigned long& dwInterfaceVersion);
80 unsigned long dwIndex,
81 unsigned long& dwModuleVersion,
82 unsigned long& dwFirmwareVersion,
83 unsigned long& dwInterfaceVersion,
157 long& lMaxParameter);
186 double& dMaxParameter);
253 long lY1,
bool bFullImage =
false);
701 bool bOverwriteExist =
true);
743 long lCameraShutter,
long lCameraGain);
756 #endif // _MikroCADSDK_h
SensorEventType
Trigger event types.
Definition: MeasurementDefs.h:407
MC3D_EXPORT unsigned long __cdecl MikroCAD_GetUserDataFileSize(char *pszDataFileName)
Gets the user data file size on the scanner.
MC3D_EXPORT CalibrationMode __cdecl MikroCAD_GetCurrentCalibrationMode()
Reads the current calibration mode.
MC3D_EXPORT long __cdecl MikroCAD_GetFloatParameter(MeasurementParameterID ParameterID, double &dParameter)
Read float parameter.
MC3D_EXPORT unsigned char *__cdecl MikroCAD_CameraRawImagePtr()
Returns a pointer to camera image data (raw data) or NULL if not available.
MC3D_EXPORT void __cdecl MikroCAD_DeleteUserDataFile(char *pszDataFileName)
Deletes a user data file on the scanner.
MC3D_EXPORT long __cdecl MikroCAD_WriteConfig()
Writes the configuration.
MC3D_EXPORT long __cdecl MikroCAD_ListSensorDescriptions(SensorTypeID TypeID)
List all sensor descriptions (only for sensors with separate camera and projector) (Sensor mustn't be...
MC3D_EXPORT long __cdecl MikroCAD_GetIntegerParameterLimits(MeasurementParameterID ParameterID, long &lMinParameter, long &lMaxParameter)
Read integer parameter limits.
MC3D_EXPORT short *__cdecl MikroCAD_HeightImagePtr()
Returns a pointer to height image data or NULL if not available.
ConfigDataTransferMode
Configuration data transfer mode.
Definition: MeasurementDefs.h:394
MC3D_EXPORT ProjectorLampState __cdecl MikroCAD_GetProjectorLampState()
Returns the projector lamp state.
MC3D_EXPORT long __cdecl MikroCAD_ReadMeasProgramDataFromFile(char *pszFileName)
Reads the measurement program data from file.
MC3D_EXPORT void __cdecl MikroCAD_Deinitialize()
Deinitialize the measurement module.
MC3D_EXPORT unsigned char *__cdecl MikroCAD_CameraImagePtr()
Returns a pointer to camera image data (texture) or NULL if not available.
MC3D_EXPORT long __cdecl MikroCAD_Measure(bool bOnSensor=true)
Start a measurement and lock the data buffer.
MC3D_EXPORT void __cdecl MikroCAD_DeinitializeStaticLib()
Deinitializes global library.
MC3D_EXPORT void __cdecl MikroCAD_SwitchOnOffProjectorLamp(bool bOn)
Switch on/off the projector lamp.
MC3D_EXPORT unsigned long __cdecl MikroCAD_GetNumPredefinedMeasParameterSets()
Returns the number of predefined measurement parameter sets.
ProjectorLampState
Projector lamp state.
Definition: MeasurementDefs.h:290
MC3D_EXPORT void __cdecl MikroCAD_ResetProjectionArea()
Resets the projection area.
MC3D_EXPORT void __cdecl MikroCAD_UsePrefilter(unsigned char byUse)
Turn pre-filter on or off.
MC3D_EXPORT CMeasProgramSet *__cdecl MikroCAD_GetMeasProgramSetPtr()
Returns a pointer to the measuring program set object.
MC3D_EXPORT long __cdecl MikroCAD_GetCameraImageROI8(unsigned char *pbyImage, long lX0, long lY0, long lX1, long lY1, bool bFullImage=false)
Gets a camera image in a ROI - 8 bit (Black / White)
MC3D_EXPORT long __cdecl MikroCAD_GridCalibration()
Executes a grid calibration.
MC3D_EXPORT void __cdecl MikroCAD_UnlockDataBuffer()
Unlocks the data buffer.
MC3D_EXPORT bool __cdecl MikroCAD_IsDataBufferLocked()
Is data buffer locked?
MC3D_EXPORT void __cdecl MikroCAD_SetProjectionArea(double dSizeX, double dSizeY, double dX0, double dY0)
Sets the projection area.
Defines for measurement module for sensors with 1 projector and 1 camera.
MC3D_EXPORT void __cdecl MikroCAD_SetUserDefinedParameterSet(long lIndex, long lProjectorBrightness, long lCameraShutter, long lCameraGain)
Set user defined parameter set.
SensorTypeID
List of the IDs of all available sensor types.
Definition: MeasurementDefs.h:20
MC3D_EXPORT long __cdecl MikroCAD_GetCameraImage8(unsigned char *pbyImage, unsigned long dwAverage=1)
Gets a camera image (Black / White)
MC3D_EXPORT long __cdecl MikroCAD_GetCameraImage24(unsigned char *pbyImage, unsigned long dwAverage=1)
Gets a camera image (Color)
MC3D_EXPORT long __cdecl MikroCAD_GetIntegerParameter(MeasurementParameterID ParameterID, long &lParameter)
Read integer parameter.
MC3D_EXPORT long __cdecl MikroCAD_WriteInitialParameterToFile(char *pszFileName)
Writes the initial parameters to file.
MC3D_EXPORT void __cdecl MikroCAD_SetMeasurementAreaMask(unsigned char *pbyMeasArea)
Sets the measurement area.
MC3D_EXPORT short *__cdecl MikroCAD_PowerSpectrumPtr()
Returns a pointer to the power spectrum.
MC3D_EXPORT char *__cdecl MikroCAD_GetPredefinedMeasParameterSetName(unsigned long dwIndex)
Returns the name of a predefined measurement parameter sets.
MC3D_EXPORT bool __cdecl MikroCAD_CalibrationOnSensor(unsigned long dwSensorNo, CalibrationMode CalMode)
Is there any calibration on sensor (Sensor mustn't be initialized)
Initialized for measurements only.
Definition: MeasurementDefs.h:39
MC3D_EXPORT char *__cdecl MikroCAD_GetCurrentMeasurementProgram()
Get current measurement program ("" - Default measurement program)
MC3D_EXPORT void __cdecl MikroCAD_StartSensorEvent(MikroCADEventFunc EventFunc)
Registers a event function.
MC3D_EXPORT void __cdecl MikroCAD_SetMeasurementArea(double dSizeX, double dSizeY, double dX0, double dY0)
Sets the measurement area.
MC3D_EXPORT long __cdecl MikroCAD_SetUSBCommErrorHandler(COMM_ERROR funcPtr)
Register a function to be called when a USB communication error happens.
MC3D_EXPORT unsigned long __cdecl MikroCAD_GetNumAvailableEventTypes()
Returns the number of the available event types.
MC3D_EXPORT void __cdecl MikroCAD_InitializeStaticLib()
Initializes global library.
MC3D_EXPORT unsigned long __cdecl MikroCAD_GetSensorSerialNumberType(unsigned long dwIndex)
Returns the serial number of a listed sensor of a special type.
MC3D_EXPORT char *__cdecl MikroCAD_GetUserDataFileDirectoryItem(long lIndex)
Return a user data file item from directory.
MC3D_EXPORT long __cdecl MikroCAD_WriteMeasProgramDataToFile(char *pszFileName)
Writes the measurement program data to file.
MC3D_EXPORT long __cdecl MikroCAD_ProjectImage24(unsigned char *pbyImage)
Projects a color image.
void(__stdcall * COMM_ERROR)()
Callback prototype for MikroCAD_SetUSBCommErrorHandler.
Definition: MeasurementDefs.h:443
MC3D_EXPORT unsigned char *__cdecl MikroCAD_ValidDataPtr()
Returns a pointer to valid data or NULL if not available.
MC3D_EXPORT long __cdecl MikroCAD_GetFloatParameterLimits(MeasurementParameterID ParameterID, double &dMinParameter, double &dMaxParameter)
Read float parameter limits.
MC3D_EXPORT short *__cdecl MikroCAD_GetCalibrationResultData()
Returns a pointer to result data.
MC3D_EXPORT TSensorDescription *__cdecl MikroCAD_ReadSensorDescription(long lIndex)
Reads the sensor description.
CalibrationMode
Calibration modes.
Definition: MeasurementDefs.h:346
Measurement program set class.
Definition: MeasProgram.h:387
MC3D_EXPORT SensorEventType __cdecl MikroCAD_GetEventType(long lIndex)
Returns the sensor event type.
SensorOperatingMode
Sensor operating mode.
Definition: MeasurementDefs.h:37
MC3D_EXPORT void __cdecl MikroCAD_StopSensorEvent()
Unregisters all event functions.
MC3D_EXPORT bool __cdecl MikroCAD_SwitchOnOffProjectorLampAvailable()
Is projector lamp switch on / off available?
MC3D_EXPORT long __cdecl MikroCAD_GetNumGrooveCalibrations()
Gets the number of grove calibrations.
MC3D_EXPORT unsigned long __cdecl MikroCAD_ListAllSensorsType(SensorTypeID SensorType)
List all available sensors of a special type (before connection with the sensor)
MC3D_EXPORT long __cdecl MikroCAD_ProjectValue(unsigned char cValue)
Projects a gray value (whole image the same color)
MC3D_EXPORT unsigned long __cdecl MikroCAD_GetMultiLevelCalibrationBufferSize()
Get multi level calibration parameters buffer size.
MC3D_EXPORT long __cdecl MikroCAD_SetFloatParameter(MeasurementParameterID ParameterID, double dParameter)
Write float parameter.
MC3D_EXPORT bool __cdecl MikroCAD_GetSimpleCalibrationParameter(unsigned char *pbyData)
Load the simple calibration parameters and transfer this in a byte buffer.
MeasurementParameterID
Parameter IDs.
Definition: MeasurementDefs.h:160
MC3D_EXPORT unsigned char __cdecl MikroCAD_GetSensorModuleInfo(unsigned long dwIndex, unsigned long &dwModuleVersion, unsigned long &dwFirmwareVersion, unsigned long &dwInterfaceVersion, SensorTypeID &SensorType)
Returns sensor infos of a connected sensor module.
MC3D_EXPORT unsigned long __cdecl MikroCAD_GetNumConnectedSensorModules()
Returns the number of the connected sensor modules.
MC3D_EXPORT long __cdecl MikroCAD_GrooveCalibration(long lIndex)
Executes a groove calibration.
MC3D_EXPORT bool __cdecl MikroCAD_GetMultiLevelCalibrationParameter(unsigned char *pbyData)
Load the multi level calibration parameters and transfer this in a byte buffer.
MC3D_EXPORT void __cdecl MikroCAD_SetProgramPath(char *pszProgramPath)
If Path with sensor DLLs is different to calling path, the sensor DLL path must be set...
MC3D_EXPORT char *__cdecl MikroCAD_GetDefaultMeasProgramName()
Which measuring program is identical to the default measuring program.
MC3D_EXPORT long __cdecl MikroCAD_GetCurrentMeasurementProgramIndex()
Get current measurement program index (< 0 - Default measurement program)
Calibration parameters for export.
MC3D_EXPORT unsigned long __cdecl MikroCAD_GetSensorSerialNumber(unsigned long dwIndex)
Returns the serial number of a listed sensor.
MC3D_EXPORT long __cdecl MikroCAD_SetIntegerParameter(MeasurementParameterID ParameterID, long lParameter)
Write integer parameter.
MC3D_EXPORT long __cdecl MikroCAD_ReadInitialParameterFromFile(char *pszFileName)
Reads the initial parameters from file.
MC3D_EXPORT long __cdecl MikroCAD_SaveHardwareLogfile(const char *filename)
Save the hardware log file to the given file name (file will be overwritten!)
MC3D_EXPORT long __cdecl MikroCAD_ResetToFactorySettings(ConfigDataTransferMode Mode)
Reset the current settings to factory settings.
MC3D_EXPORT void __cdecl MikroCAD_GetModuleVersionInfo(unsigned long &dwModuleVersion, unsigned long &dwInterfaceVersion)
Returns version infos (no connection with the sensor necessary)
MC3D_EXPORT bool __cdecl MikroCAD_SetSimpleCalibrationParameter(unsigned char *pbyData)
Save the simple calibration parameters from a buffer to the scanner.
MC3D_EXPORT SensorTypeID __cdecl MikroCAD_GetSensorTypeID()
Returns the Sensor type id.
MC3D_EXPORT long __cdecl MikroCAD_ProjectStripePattern(short nPatternIndex, bool bInvers)
Projects a predefined stripe pattern.
MC3D_EXPORT bool __cdecl MikroCAD_ReadUserDataFile(char *pszDataFileName, unsigned char *pbyData)
Reads a user data file from the scanner.
MC3D_EXPORT long __cdecl MikroCAD_ListUserDataFileDirectory(char *pszMask)
List all user data files on scanner (directory)
MC3D_EXPORT bool __cdecl MikroCAD_UserDataFileExists(char *pszDataFileName)
User data file item exists ?
MC3D_EXPORT long __cdecl MikroCAD_PlaneCalibration()
Executes a plane calibration.
MC3D_EXPORT void __cdecl MikroCAD_ResetMeasurementArea()
Resets the measurement area.
MC3D_EXPORT long __cdecl MikroCAD_ProjectPattern(short nPatternIndex)
Projects a predefined pattern (cross, ...)
MC3D_EXPORT long __cdecl MikroCAD_ProjectImage8(unsigned char *pbyImage)
Projects a black / white image.
MC3D_EXPORT unsigned long __cdecl MikroCAD_ParameterAvailable(MeasurementParameterID ParameterID)
Is parameter available.
MC3D_EXPORT void __cdecl MikroCAD_UnlockCalibrationDataBuffer()
Unlock the calibration data buffer.
Description for sensors with separate projector and camera.
Definition: MeasurementDefs.h:75
MC3D_EXPORT long __cdecl MikroCAD_CalibrationToSensor()
Calibration data transfer to sensor.
MC3D_EXPORT bool __cdecl MikroCAD_WriteUserDataFile(char *pszDataFileName, unsigned char *pbyData, unsigned long dwDataSize, bool bOverwriteExist=true)
Writes a user data file to the scanner.
MC3D_EXPORT long __cdecl MikroCAD_Initialize(unsigned long dwSensorNo, SensorOperatingMode OperatingMode=SensorOperatingMode_Measure)
Initialize the measurement module.
MC3D_EXPORT unsigned long __cdecl MikroCAD_ListAllSensors()
List all available sensors (Before connection with the sensor)
MC3D_EXPORT unsigned long __cdecl MikroCAD_GetSimpleCalibrationBufferSize()
Get simple calibration parameters buffer size.
MC3D_EXPORT long __cdecl MikroCAD_ReadConfig()
Reads the configuration.
MC3D_EXPORT long __cdecl MikroCAD_SelectCurrentMeasurementProgram(char *pszMeasProgName=NULL)
Selects the current measurement program.
MC3D_EXPORT long __cdecl MikroCAD_ProjectColorValue(unsigned char cRed, unsigned char cGreen, unsigned char cBlue)
Projects a color value (whole image the same color)
MC3D_EXPORT unsigned long __cdecl MikroCAD_GetCalibrationState()
Returns the calibration state.
MC3D_EXPORT void __cdecl MikroCAD_SetProjectionMask(unsigned char *pbyMask)
Set projection mask.
MC3D_EXPORT void __cdecl MikroCAD_EnableUserDefinedParameterSet(bool bEnabled)
Enable / disable user defined parameter ?