155 lines
5.7 KiB
C
155 lines
5.7 KiB
C
/*****************************************************************************
|
|
* IOSpy.h
|
|
*****************************************************************************
|
|
*
|
|
* Project: HALCON/libhalcon
|
|
* Description: Spy procedures
|
|
*
|
|
* (c) 1996-2018 by MVTec Software GmbH
|
|
* www.mvtec.com
|
|
*
|
|
*****************************************************************************
|
|
*
|
|
*
|
|
*/
|
|
|
|
|
|
#ifndef IOSPY_H
|
|
#define IOSPY_H
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
extern HLibExport Herror IOSetSpyByEnv(Hproc_handle proc_id,
|
|
char *env);
|
|
|
|
extern HLibExport Herror IOSetSpy(Hproc_handle proc_id,
|
|
char const *task,
|
|
Hpar const *par, HINT type);
|
|
|
|
extern HLibExport Herror IOSetSpyTime(Hproc_handle proc_id, HBOOL mode);
|
|
|
|
extern HLibExport Herror IOGetSpyTime(Hproc_handle proc_id, HBOOL *mode);
|
|
|
|
extern HLibExport Herror IOSetSpyTimeout(Hproc_handle proc_id,
|
|
double time_wait);
|
|
|
|
extern HLibExport Herror IOGetSpyTimeout(Hproc_handle proc_id,
|
|
double *time_wait);
|
|
|
|
extern HLibExport Herror IOSpyDB( Hproc_handle proc_handle);
|
|
|
|
extern HLibExport Herror IOSetSpyNumPar(Hproc_handle proc_id, HINT num);
|
|
|
|
extern HLibExport Herror IOGetSpyNumPar(Hproc_handle proc_id, HINT *num);
|
|
|
|
extern HLibExport Herror IOSetSpyPredecessor(Hproc_handle proc_id,
|
|
HBOOL state);
|
|
|
|
extern HLibExport Herror IOGetSpyPredecessor(Hproc_handle proc_id,
|
|
HBOOL *state);
|
|
|
|
extern HLibExport Herror IOSpyPrintPredecessor(Hproc_handle proc_id,
|
|
const char *kind, HINT pred,
|
|
HINT curr);
|
|
|
|
extern HLibExport Herror IOSetSpyProcCall(Hproc_handle proc_id, HBOOL state);
|
|
|
|
extern HLibExport Herror IOGetSpyProcCall(Hproc_handle proc_id, HBOOL *state);
|
|
extern HLibExport HBOOL IOGetSpyProcCallSwitch( void);
|
|
|
|
extern HLibExport Herror IOSetSpyFile(Hproc_handle proc_handle,
|
|
Hphandle file_id);
|
|
|
|
extern HLibExport Herror IOGetSpyFile(Hproc_handle proc_handle,
|
|
Hphandle *file_id);
|
|
|
|
extern HLibExport Herror IOGetSpyProc(Hproc_handle proc_id,
|
|
HBOOL *proc, HBOOL *input_ctrl,
|
|
HBOOL *output_ctrl);
|
|
|
|
extern HLibExport Herror IOSetSpyProc(Hproc_handle proc_id,
|
|
HBOOL proc, HBOOL input_ctrl,
|
|
HBOOL output_ctrl);
|
|
|
|
extern HLibExport Herror IOSpyProcEnd(void);
|
|
|
|
extern HLibExport Herror IOSpyProc(Hproc_handle proc_id, const char *name);
|
|
|
|
extern HLibExport Herror IOSpyPar(Hproc_handle proc_handle, HINT par,
|
|
HINT type, Hpar const *val, INT4_8 num,
|
|
HBOOL input);
|
|
|
|
extern HLibExport Herror IOSpyCPar(Hproc_handle proc_handle, HINT par,
|
|
Hcpar const *val, INT4_8 num, HBOOL input);
|
|
|
|
extern HLibExport Herror IOSpyElem(Hproc_handle proc_handle, HINT par,
|
|
void const *val, INT4_8 num, HINT type,
|
|
HBOOL input);
|
|
|
|
extern HLibExport Herror IOSpyCTuple(Hproc_handle proc_handle, HINT par,
|
|
Hctuple const *val, HBOOL input);
|
|
|
|
extern HLibExport Herror IOSetSpyButtonNotify(Hproc_handle proc_id,
|
|
HBOOL state);
|
|
|
|
extern HLibExport Herror IOGetSpyButtonNotify(Hproc_handle proc_id,
|
|
HBOOL *state);
|
|
|
|
extern HLibExport Herror IOSetSpyError(Hproc_handle proc_id, HBOOL state);
|
|
|
|
extern HLibExport Herror IOGetSpyError(Hproc_handle proc_id, HBOOL *state);
|
|
|
|
extern HLibExport Herror IOSetMultipleSpy(Hproc_handle proc_id,
|
|
HBOOL multiple);
|
|
|
|
extern HLibExport Herror IOGetMultipleSpy(Hproc_handle proc_id,
|
|
HBOOL *multiple);
|
|
|
|
extern HLibExport Herror IOGetSpyBWindow(Hproc_handle proc_id, HINT *w);
|
|
|
|
extern HLibExport Herror IOSetSpyBWindow(Hproc_handle proc_id, HINT w);
|
|
|
|
extern HLibExport Herror IOGetSpyClick(Hproc_handle proc_id, HBOOL *c);
|
|
|
|
extern HLibExport Herror IOSetSpyClick(Hproc_handle proc_id, HBOOL c);
|
|
|
|
extern HLibExport Herror IOGetSpyWindow(Hproc_handle proc_id,
|
|
HINT *in_grey, HINT *out_grey,
|
|
HINT *in_region, HINT *out_region,
|
|
HINT *in_xld, HINT *out_xld);
|
|
|
|
extern HLibExport Herror IOSetSpyWindow(Hproc_handle proc_id,
|
|
HINT in_grey, HINT out_grey,
|
|
HINT in_region, HINT out_region,
|
|
HINT in_xld, HINT out_xld);
|
|
|
|
extern HLibExport Herror IOSpyClear(Hproc_handle proc_id);
|
|
|
|
extern HLibExport Herror IOSpyRL(Hproc_handle proc_id, Hrlregion *region,
|
|
HBOOL input);
|
|
|
|
extern HLibExport Herror IOSpyGrey(Hproc_handle proc_id, Himage *image,
|
|
HBOOL input);
|
|
|
|
extern HLibExport Herror IOSpyXLD(Hproc_handle proc_handle, HINT Type,
|
|
VOIDP XLD, HBOOL input);
|
|
|
|
extern HLibExport Herror HProcessErr(const char *proc,
|
|
Herror err, INT4_8 line,
|
|
const char *file);
|
|
|
|
extern HLibExport void IOSpyProcCall (const char *proc,INT4_8 line,
|
|
const char *file);
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif
|