HDevEngineCpp.h 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599
  1. /*****************************************************************************
  2. * HDevEngineCpp.h
  3. *****************************************************************************
  4. *
  5. * Description: Interface for executing HDevelop programs and procedures
  6. * within a C++ application using the HALCON/C++ interface.
  7. *
  8. * (c) 1996-2021 by MVTec Software GmbH
  9. * www.mvtec.com
  10. *
  11. *****************************************************************************/
  12. #ifndef H_DEV_ENGINE_CPP_H
  13. #define H_DEV_ENGINE_CPP_H
  14. // include the HALCON 11 C++ interface
  15. #include "halconcpp/HalconCpp.h"
  16. #ifndef HDEV_PD
  17. # define HDEV_PD \
  18. private: \
  19. class Data; \
  20. Data* mData
  21. #endif
  22. namespace HDevEngineCpp
  23. {
  24. // Forward declarations
  25. class HDevEngine;
  26. class HDevProgram;
  27. class HDevProgramCall;
  28. class HDevProcedure;
  29. class HDevProcedureCall;
  30. class HDevEngineException;
  31. class HDevOperatorImplCpp;
  32. /*****************************************************************************
  33. *****************************************************************************
  34. ** class HDevEngine
  35. **===========================================================================
  36. ** Class for managing global engine settings:
  37. ** + external procedure path
  38. ** + implementation of dev_ operators (HDevOperatorImpl)
  39. ** + Attention: all changes made to one HDevEngine instance are global
  40. ** for all .dev programs or .dvp procedure that are executed in one
  41. ** application
  42. *****************************************************************************
  43. *****************************************************************************/
  44. class LIntExport HDevEngine
  45. {
  46. public:
  47. HDevEngine();
  48. // Via engine attributes the behavior of the engine can be configured
  49. // currently the following flags are supported:
  50. // "ignore_unresolved_lines" [default: false, 0]
  51. // - if set to true (or "true"), program lines that refer to an
  52. // unresolved procedure are ignored, i.e., the program or procedure is
  53. // executed without the corrupted program line;
  54. // this may lead to an unexpected behavior or an error during the
  55. // program execution
  56. // - as the default an exception is thrown while creating the program or
  57. // procedure instance
  58. // "ignore_invalid_lines" [default: false, 0]
  59. // - if set to true (or "true"), invalid program lines are ignored,
  60. // i.e., the program or procedure is executed without the corrupted
  61. // program line;
  62. // this may lead to an unexpected behavior or an error during the
  63. // program execution
  64. // - as the default an exception is thrown while creating the program or
  65. // procedure instance
  66. // "ignore_invalid_results" [default: true, 1]
  67. // - if set to false (or "false") throw an exception if the accessed
  68. // procedure output parameter or program variable is invalid
  69. // - the following methods are concerned:
  70. // HenProgramCall::GetIconicVarObject()
  71. // HenProgramCall::GetCtrlVarTuple()
  72. // HenProcedureCall::GetOutputIconicParamObject()
  73. // HenProcedureCall::GetOutputCtrlParamTuple()
  74. // - as the default an empty region object or an empty tuple is returned
  75. // if the object was not set within the program or procedure
  76. // "docu_language" [default: "" -> en_US]
  77. // - could be set to "en_US","de_DE", other languages
  78. // "docu_encoding" [default: "" -> "utf8"]
  79. // - if set to "native" all natural language strings are converted
  80. // to native encoding
  81. // "execute_procedures_jit_compiled" [default: false, 0]
  82. // - if set to true (or "true"), procedures are tried to being compiled
  83. // with a just-in-time compiler for faster execution
  84. // "debug_port" [default: 57786]
  85. // - specifies the port number of the socket where the debug server
  86. // waits for incoming connections
  87. // "debug_password" [default: ""]
  88. // - specifying a password provides a basic layer of protection
  89. // against misuse. For security reasons, it is highly recommended
  90. // to always supply a password. If a password is set, it must be
  91. // entered in HDevelop to allow the connection
  92. // "debug_wait_for_connection" [default: false]
  93. // - if set to true, the engine switches into "stopped state"
  94. // after starting the debug server (see below). This has the effect
  95. // that any application thread that enters procedure execution
  96. // via HDevEngine will stop on the first line of script code.
  97. // This way, you can start debugging from the beginning of your code
  98. // upon connecting from HDevelop
  99. void SetEngineAttribute(const char* name, const HalconCpp::HTuple& value);
  100. HalconCpp::HTuple GetEngineAttribute(const char* name);
  101. // Set path(s) for external procedures
  102. // - several paths can be passed together separating them by ';' or ':'
  103. // on Windows or UNIX-like systems resp.
  104. // - NULL removes all procedure paths and unloads all external procedures
  105. // (Attention: procedures that are used by programs (HDevProgram) or
  106. // procedures (HDevProcedures) remain unchanged until the program or
  107. // procedure is reloaded explicitly. The appropriate calls must be
  108. // recreated or reassigned by the reloaded program or procedure.)
  109. // - additional calls of SetProcedurePath will remove paths set before
  110. // and unload all external procedures
  111. void SetProcedurePath(const char* path);
  112. void AddProcedurePath(const char* path);
  113. #ifdef _WIN32
  114. void SetProcedurePath(const wchar_t* path);
  115. void AddProcedurePath(const wchar_t* path);
  116. #endif
  117. // Get names of all available external procedures
  118. HalconCpp::HTuple GetProcedureNames() const;
  119. // Get names of all loaded external procedures
  120. HalconCpp::HTuple GetLoadedProcedureNames() const;
  121. // Unload a specific procedure <proc_name>
  122. void UnloadProcedure(const char* proc_name);
  123. // Unload all external procedures
  124. void UnloadAllProcedures();
  125. // Starts the debug server that allows to attach HDevelop as
  126. // as debugger to step through engine code. With default settings
  127. // server waits on port 57786 and engine runs normally until HDevelop
  128. // is connected and F9 is pressed to stop execution.
  129. void StartDebugServer();
  130. // Stops the debug server (resuming execution if stopped)
  131. void StopDebugServer();
  132. // global variable access
  133. HalconCpp::HTuple GetGlobalIconicVarNames() const;
  134. HalconCpp::HTuple GetGlobalCtrlVarNames() const;
  135. // get dimension of a global variable
  136. int GetGlobalIconicVarDimension(const char* var_name) const;
  137. int GetGlobalCtrlVarDimension(const char* var_name) const;
  138. // get value of a global variable
  139. HalconCpp::HObject GetGlobalIconicVarObject(const char* var_name);
  140. HalconCpp::HTuple GetGlobalCtrlVarTuple(const char* var_name);
  141. HalconCpp::HObjectVector GetGlobalIconicVarVector(const char* var_name);
  142. HalconCpp::HTupleVector GetGlobalCtrlVarVector(const char* var_name);
  143. // these method is provided for efficiency:
  144. // the results are copied directly into the tuple variable provided by
  145. // the user without additional copying
  146. void GetGlobalCtrlVarTuple(const char* var_name, HalconCpp::HTuple* tuple);
  147. // set global variable
  148. void SetGlobalIconicVarObject(const char* var_name, const HalconCpp::HObject& obj);
  149. void SetGlobalCtrlVarTuple(const char* var_name, const HalconCpp::HTuple& tuple);
  150. void SetGlobalIconicVarVector(const char* var_name, const HalconCpp::HObjectVector& vector);
  151. void SetGlobalCtrlVarVector(const char* var_name, const HalconCpp::HTupleVector& vector);
  152. // Set implementation for HDevelop internal operators
  153. void SetHDevOperatorImpl(HDevOperatorImplCpp* hdev_op_impl);
  154. };
  155. /*****************************************************************************
  156. *****************************************************************************
  157. ** class HDevProgram
  158. **===========================================================================
  159. ** Class for managing HDevelop programs
  160. *****************************************************************************
  161. *****************************************************************************/
  162. class LIntExport HDevProgram
  163. {
  164. HDEV_PD;
  165. public:
  166. // Create a program from a .dev program file
  167. HDevProgram(const char* file_name = NULL);
  168. #ifdef _WIN32
  169. HDevProgram(const wchar_t* file_name);
  170. #endif
  171. // Copy constructor
  172. HDevProgram(const HDevProgram& hdev_prog);
  173. HDevProgram(const Data& data);
  174. // Assignment operation
  175. HDevProgram& operator=(const HDevProgram& hdev_prog);
  176. // Destructor
  177. virtual ~HDevProgram();
  178. // Load a program if not yet done during construction
  179. void LoadProgram(const char* file_name);
  180. #ifdef _WIN32
  181. void LoadProgram(const wchar_t* file_name);
  182. #endif
  183. // check whether the program was successfully loaded
  184. bool IsLoaded() const;
  185. // Get the program name
  186. const char* GetName() const;
  187. // Get the names of all local and the used external procedures
  188. HalconCpp::HTuple GetUsedProcedureNames() const;
  189. HalconCpp::HTuple GetLocalProcedureNames() const;
  190. // Compile all procedures that are used by the program and that can be
  191. // compiled with a just-in-time compiler.
  192. // The method returns true when all used procedures could be compiled by the
  193. // just-in-time compiler.
  194. // Procedures that could not be compiled are called normally by the
  195. // HDevEngine interpreter.
  196. // To check which procedure could not be compiled and what the reason is for
  197. // that start HDevelop and check there the compilation states.
  198. bool CompileUsedProcedures();
  199. // create a program call for execution
  200. HDevProgramCall CreateCall() const;
  201. // This is a method provided for convenience:
  202. // execute the program and return the program call for
  203. // accessing the variables of the program's main procedure
  204. HDevProgramCall Execute() const;
  205. // get some information about the variables of the program's main procedure:
  206. // - get the variable names as a tuple
  207. HalconCpp::HTuple GetIconicVarNames() const;
  208. HalconCpp::HTuple GetCtrlVarNames() const;
  209. // - get the number of iconic and control variables
  210. size_t GetIconicVarCount() const;
  211. size_t GetCtrlVarCount() const;
  212. // - get the names of the variables
  213. // (indices of the variables run from 1 to count)
  214. const char* GetIconicVarName(size_t var_idx) const;
  215. const char* GetCtrlVarName(size_t var_idx) const;
  216. // - get the dimensions of the variables
  217. // (indices of the variables run from 1 to count)
  218. int GetIconicVarDimension(size_t var_idx) const;
  219. int GetCtrlVarDimension(size_t var_idx) const;
  220. };
  221. /*****************************************************************************
  222. *****************************************************************************
  223. ** class HDevProgramCall
  224. **===========================================================================
  225. ** Class for managing the execution of an HDevelop program
  226. *****************************************************************************
  227. *****************************************************************************/
  228. class LIntExport HDevProgramCall
  229. {
  230. HDEV_PD;
  231. public:
  232. // Create an empty HDevelop program call instance
  233. HDevProgramCall();
  234. // Create an HDevelop program call from a program
  235. HDevProgramCall(const HDevProgram& prog);
  236. // Copy constructor
  237. HDevProgramCall(const HDevProgramCall& hdev_prog_call);
  238. HDevProgramCall(const Data& data);
  239. // Assignment operation
  240. HDevProgramCall& operator=(const HDevProgramCall& hdev_prog_call);
  241. // Destructor
  242. virtual ~HDevProgramCall();
  243. // Get the program
  244. HDevProgram GetProgram() const;
  245. // Execute program
  246. void Execute();
  247. // Stop execution on first line of program. This is intended for debugging
  248. // purposes when you wish to step through a specific program call. It only
  249. // has an effect when a debug server is running and it will only stop once.
  250. void SetWaitForDebugConnection(bool wait_once);
  251. // Clear program and reset callstack
  252. // - this method stops the execution of the program after the current
  253. // program line
  254. void Reset();
  255. // Get the objects / values of the variables by name or by index
  256. // (indices of the variables run from 1 to count)
  257. HalconCpp::HObject GetIconicVarObject(size_t var_idx);
  258. HalconCpp::HObject GetIconicVarObject(const char* var_name);
  259. HalconCpp::HObjectVector GetIconicVarVector(size_t var_idx);
  260. HalconCpp::HObjectVector GetIconicVarVector(const char* var_name);
  261. HalconCpp::HTuple GetCtrlVarTuple(size_t var_idx);
  262. HalconCpp::HTuple GetCtrlVarTuple(const char* var_name);
  263. HalconCpp::HTupleVector GetCtrlVarVector(size_t var_idx);
  264. HalconCpp::HTupleVector GetCtrlVarVector(const char* var_name);
  265. // these methods are provided for efficiency:
  266. // the results are copied directly into the tuple variable provided by
  267. // the user without additional copying
  268. void GetCtrlVarTuple(size_t var_idx, HalconCpp::HTuple* tuple);
  269. void GetCtrlVarTuple(const char* var_name, HalconCpp::HTuple* tuple);
  270. };
  271. /*****************************************************************************
  272. *****************************************************************************
  273. ** class HDevProcedure
  274. **===========================================================================
  275. ** Class for managing HDevelop procedures
  276. *****************************************************************************
  277. *****************************************************************************/
  278. class LIntExport HDevProcedure
  279. {
  280. HDEV_PD;
  281. public:
  282. // Create HDevelop procedure from external or local procedure
  283. HDevProcedure(const char* proc_name = NULL);
  284. HDevProcedure(const char* prog_name, const char* proc_name);
  285. HDevProcedure(const HDevProgram& prog, const char* proc_name);
  286. #ifdef _WIN32
  287. HDevProcedure(const wchar_t* prog_name, const char* proc_name);
  288. #endif
  289. // Copy constructor
  290. HDevProcedure(const HDevProcedure& hdev_proc);
  291. HDevProcedure(const Data& data);
  292. // Assignment operation
  293. HDevProcedure& operator=(const HDevProcedure& proc);
  294. // Destructor
  295. ~HDevProcedure();
  296. // Load a procedure if not yet done during construction
  297. void LoadProcedure(const char* proc_name);
  298. void LoadProcedure(const char* prog_name, const char* proc_name);
  299. void LoadProcedure(const HDevProgram& prog, const char* proc_name);
  300. #ifdef _WIN32
  301. void LoadProcedure(const wchar_t* prog_name, const char* proc_name);
  302. #endif
  303. // Check whether the procedure was successfully loaded
  304. bool IsLoaded() const;
  305. // Get the name of the procedure
  306. const char* GetName() const;
  307. // Get the short description of the procedure. The encoding of the
  308. // description will be in local 8 bit or utf-8, depending on the
  309. // HALCON/C++ interface encoding. Note there is no wchar_t overload for
  310. // Windows applications compiled with UNICODE support; however, you can
  311. // access the description using GetInfo("short").S().TextW() instead.
  312. const char* GetShortDescription() const;
  313. // Get all refered procedures
  314. HalconCpp::HTuple GetUsedProcedureNames() const;
  315. // Compile all procedures that are used by the procedure and that can be
  316. // compiled with a just-in-time compiler.
  317. // The method returns true when all used procedures could be compiled by the
  318. // just-in-time compiler.
  319. // Procedures that could not be compiled are called normally by the
  320. // HDevEngine interpreter.
  321. // To check which procedure could not be compiled and what the reason is for
  322. // that start HDevelop and check there the compilation states.
  323. bool CompileUsedProcedures();
  324. // Create a program call for execution
  325. HDevProcedureCall CreateCall() const;
  326. // Get name of input/output object/control parameters
  327. HalconCpp::HTuple GetInputIconicParamNames() const;
  328. HalconCpp::HTuple GetOutputIconicParamNames() const;
  329. HalconCpp::HTuple GetInputCtrlParamNames() const;
  330. HalconCpp::HTuple GetOutputCtrlParamNames() const;
  331. // Get number of input/output object/control parameters
  332. int GetInputIconicParamCount() const;
  333. int GetOutputIconicParamCount() const;
  334. int GetInputCtrlParamCount() const;
  335. int GetOutputCtrlParamCount() const;
  336. // Get name of input/output object/control parameters
  337. // (indices of the parameters run from 1 to count)
  338. const char* GetInputIconicParamName(int par_idx) const;
  339. const char* GetOutputIconicParamName(int par_idx) const;
  340. const char* GetInputCtrlParamName(int par_idx) const;
  341. const char* GetOutputCtrlParamName(int par_idx) const;
  342. // Get dimension of input/output object/control parameters
  343. // (indices of the parameters run from 1 to count)
  344. int GetInputIconicParamDimension(int par_idx) const;
  345. int GetOutputIconicParamDimension(int par_idx) const;
  346. int GetInputCtrlParamDimension(int par_idx) const;
  347. int GetOutputCtrlParamDimension(int par_idx) const;
  348. // Get info of procedure documentation
  349. HalconCpp::HTuple GetInfo(const char* slot) const;
  350. // Get info of parameter documentation by name
  351. HalconCpp::HTuple GetParamInfo(const char* par_name, const char* slot) const;
  352. // Get info of parameter documentation by index
  353. // (indices of the parameters run from 1 to count)
  354. HalconCpp::HTuple GetInputIconicParamInfo(int par_idx, const char* slot) const;
  355. HalconCpp::HTuple GetOutputIconicParamInfo(int par_idx, const char* slot) const;
  356. HalconCpp::HTuple GetInputCtrlParamInfo(int par_idx, const char* slot) const;
  357. HalconCpp::HTuple GetOutputCtrlParamInfo(int par_idx, const char* slot) const;
  358. // Query possible slots for procedure/parameter info
  359. HalconCpp::HTuple QueryInfo() const;
  360. HalconCpp::HTuple QueryParamInfo() const;
  361. };
  362. /*****************************************************************************
  363. *****************************************************************************
  364. ** class HDevProcedureCall
  365. **===========================================================================
  366. ** Class for executing an HDevelop procedure and managing the parameter
  367. ** values
  368. *****************************************************************************
  369. *****************************************************************************/
  370. class LIntExport HDevProcedureCall
  371. {
  372. HDEV_PD;
  373. public:
  374. // Create an empty HDevelop procedure call instance
  375. HDevProcedureCall();
  376. // Create HDevelop procedure call instance
  377. HDevProcedureCall(const HDevProcedure& hdev_proc);
  378. // Copy constructor
  379. HDevProcedureCall(const HDevProcedureCall& hdev_proc_call);
  380. HDevProcedureCall(const Data& data);
  381. // Assignment operation
  382. HDevProcedureCall& operator=(const HDevProcedureCall& hdev_proc_call);
  383. // Destructor
  384. ~HDevProcedureCall();
  385. // Get the procedure
  386. HDevProcedure GetProcedure() const;
  387. // Execute program
  388. void Execute();
  389. // Stop execution on first line of procedure. This is intended for debugging
  390. // purposes when you wish to step through a specific procedure call. It only
  391. // has an effect when a debug server is running and it will only stop once.
  392. void SetWaitForDebugConnection(bool wait_once);
  393. // Clear procedure and reset callstack
  394. // - this method stops the execution of the procedure after the current
  395. // program line
  396. void Reset();
  397. // Set input object/control parameter
  398. void SetInputIconicParamObject(int par_idx, const HalconCpp::HObject& obj);
  399. void SetInputIconicParamObject(const char* par_name, const HalconCpp::HObject& obj);
  400. void SetInputIconicParamVector(int par_idx, const HalconCpp::HObjectVector& vector);
  401. void SetInputIconicParamVector(const char* par_name, const HalconCpp::HObjectVector& vector);
  402. void SetInputCtrlParamTuple(int par_idx, const HalconCpp::HTuple& tuple);
  403. void SetInputCtrlParamTuple(const char* par_name, const HalconCpp::HTuple& tuple);
  404. void SetInputCtrlParamVector(int par_idx, const HalconCpp::HTupleVector& vector);
  405. void SetInputCtrlParamVector(const char* par_name, const HalconCpp::HTupleVector& vector);
  406. // Get the objects / values of the parameters by name or by index
  407. // (indices of the variables run from 1 to count)
  408. HalconCpp::HObject GetOutputIconicParamObject(int par_idx) const;
  409. HalconCpp::HObject GetOutputIconicParamObject(const char* par_name) const;
  410. HalconCpp::HObjectVector GetOutputIconicParamVector(int par_idx) const;
  411. HalconCpp::HObjectVector GetOutputIconicParamVector(const char* par_name) const;
  412. HalconCpp::HTuple GetOutputCtrlParamTuple(int par_idx) const;
  413. HalconCpp::HTuple GetOutputCtrlParamTuple(const char* par_name) const;
  414. HalconCpp::HTupleVector GetOutputCtrlParamVector(int par_idx) const;
  415. HalconCpp::HTupleVector GetOutputCtrlParamVector(const char* par_name) const;
  416. // These methods are provided for efficiency:
  417. // the results are copied directly into the tuple variable provided by
  418. // the user without additional copying
  419. void GetOutputCtrlParamTuple(int par_idx, HalconCpp::HTuple* tuple) const;
  420. void GetOutputCtrlParamTuple(const char* par_name, HalconCpp::HTuple* tuple) const;
  421. };
  422. /*****************************************************************************
  423. *****************************************************************************
  424. ** class HDevEngineException
  425. **===========================================================================
  426. ** Class for HDevelop engine exceptions
  427. *****************************************************************************
  428. *****************************************************************************/
  429. class LIntExport HDevEngineException
  430. {
  431. HDEV_PD;
  432. public:
  433. // Exception categories
  434. enum ExceptionCategory
  435. {
  436. Exception, // Generic
  437. ExceptionInpNotInit, // Error input parameters not initialized
  438. ExceptionCall, // Error HALCON or HDevelop operator call
  439. ExceptionFile // Error opening or reading HDevelop file
  440. };
  441. // Create HDevelop engine exception
  442. HDevEngineException(const char* message, ExceptionCategory category = Exception, const char* exec_proc_name = "",
  443. int prog_line_num = -1, const char* prog_line_name = "", Herror h_err_nr = H_MSG_VOID,
  444. const HalconCpp::HTuple& user_data = HalconCpp::HTuple());
  445. HDevEngineException(const HDevEngineException& exc);
  446. HDevEngineException(const Data& data);
  447. HDevEngineException& operator=(const HDevEngineException& exc);
  448. virtual ~HDevEngineException();
  449. // Error text
  450. const char* Message() const;
  451. // Category of exception
  452. ExceptionCategory Category() const;
  453. const char* CategoryText() const;
  454. // Name of executed procedure
  455. const char* ExecProcedureName() const;
  456. // Number of executed procedure or operator program line
  457. int ProgLineNum() const;
  458. // Name of executed procedure or operator program line
  459. const char* ProgLineName() const;
  460. // HALCON error code
  461. Herror HalconErrorCode() const;
  462. HDEPRECATED(Herror HalconErrNum() const, "deprecated, please use HalconErrorCode instead.");
  463. HalconCpp::HTuple UserData() const;
  464. void UserData(HalconCpp::HTuple& user_Data) const;
  465. };
  466. /*****************************************************************************
  467. *****************************************************************************
  468. ** class HDevOperatorImplCpp
  469. **===========================================================================
  470. ** Class for the implemention of HDevelop internal operators
  471. *****************************************************************************
  472. *****************************************************************************/
  473. class LIntExport HDevOperatorImplCpp
  474. {
  475. HDEV_PD;
  476. public:
  477. HDevOperatorImplCpp();
  478. // Copy constructor
  479. HDevOperatorImplCpp(const HDevOperatorImplCpp& hdev_op_impl);
  480. HDevOperatorImplCpp(const Data& data);
  481. // Assignment operation
  482. HDevOperatorImplCpp& operator=(const HDevOperatorImplCpp& hdev_op_impl);
  483. // Destructor
  484. virtual ~HDevOperatorImplCpp();
  485. virtual int DevClearWindow();
  486. virtual int DevCloseWindow();
  487. virtual int DevSetWindow(const HalconCpp::HTuple& win_id);
  488. virtual int DevGetWindow(HalconCpp::HTuple* win_id);
  489. virtual int DevDisplay(const HalconCpp::HObject& obj);
  490. virtual int DevDispText(const HalconCpp::HTuple& string, const HalconCpp::HTuple& coordSystem,
  491. const HalconCpp::HTuple& row, const HalconCpp::HTuple& column,
  492. const HalconCpp::HTuple& color, const HalconCpp::HTuple& genParamName,
  493. const HalconCpp::HTuple& genParamValue);
  494. virtual int DevSetWindowExtents(const HalconCpp::HTuple& row, const HalconCpp::HTuple& col,
  495. const HalconCpp::HTuple& width, const HalconCpp::HTuple& height);
  496. virtual int DevSetDraw(const HalconCpp::HTuple& draw);
  497. virtual int DevSetContourStyle(const HalconCpp::HTuple& style);
  498. virtual int DevSetShape(const HalconCpp::HTuple& shape);
  499. virtual int DevSetColored(const HalconCpp::HTuple& colored);
  500. virtual int DevSetColor(const HalconCpp::HTuple& color);
  501. virtual int DevSetLut(const HalconCpp::HTuple& lut);
  502. virtual int DevSetPaint(const HalconCpp::HTuple& paint);
  503. virtual int DevSetPart(const HalconCpp::HTuple& row1, const HalconCpp::HTuple& col1, const HalconCpp::HTuple& row2,
  504. const HalconCpp::HTuple& col2);
  505. virtual int DevSetLineWidth(const HalconCpp::HTuple& width);
  506. virtual int DevOpenWindow(const HalconCpp::HTuple& row, const HalconCpp::HTuple& col, const HalconCpp::HTuple& width,
  507. const HalconCpp::HTuple& height, const HalconCpp::HTuple& background,
  508. HalconCpp::HTuple* win_id);
  509. };
  510. } // namespace HDevEngineCpp
  511. #endif // #ifndef H_DEV_ENGINE_CPP_H