GoWebScan API
GoWebScanVisionInputMsg.h
Go to the documentation of this file.
1 /**
2 * @file GoWebScanVisionInputMsg.h
3 * @brief Declares a GoWebScanVisionInputMsg object.
4 *
5 * @internal
6 * Copyright (C) 2017-2026 by LMI Technologies Inc.
7 * Licensed under the MIT License.
8 * Redistributed files must retain the above copyright notice.
9 */
10 #ifndef GO_SCANNER_VISION_INPUT_MSG_H
11 #define GO_SCANNER_VISION_INPUT_MSG_H
12 
17 #include <GoSdk/GoSdk.h>
18 
19 /**
20 * @class GoWebScanVisionInputMsg
21 * @extends GoWebScanPipeMsg
22 * @ingroup GoWebScanSdk-Messages
23 * @brief Represents a message containing a raw vision message from a sensor.
24 */
26 
27 /**
28 * Constructs a GoWebScanVisionInputMsg object.
29 *
30 * @public @memberof GoWebScanVisionInputMsg
31 * @param msg Receives the constructed GoWebScanVisionInputMsg object.
32 * @param pool Message pool of GoWebScanVisionInputMsg objects
33 * @param allocator Memory allocator (or kNULL for default).
34 * @return Operation status.
35 */
37 
38 /**
39 * Destroys a GoWebScanVisionInputMsg object.
40 *
41 * @public @memberof GoWebScanVisionInputMsg
42 * @param msg GoWebScanVisionInputMsg object.
43 * @return Operation status.
44 */
46 
47 /**
48 * Imports a GoVideoMsg msg into a GoWebScanVisionInputMsg object. The messages are cloned into
49 * internal objects. As such, the GoVideoMsg object is still owned by the calling function and
50 * must be destroyed by it.
51 *
52 * @public @memberof GoWebScanVisionInputMsg
53 * @param msg GoWebScanVisionInputMsg object.
54 * @param deviceId Serial number of device from which message originates.
55 * @param stampMsg Message stamp.
56 * @param visionMsg Video message.
57 * @param configNode Node configuration.
58 * @return Operation status.
59 */
60 GoWebScanFx(kStatus) GoWebScanVisionInputMsg_Import(GoWebScanVisionInputMsg msg, k32s deviceId, GoStampMsg stampMsg, GoVideoMsg visionMsg, GoWebScanConfigNode configNode);
61 
62 /**
63 * Gets the size, in bytes, of the vision data buffer.
64 *
65 * @public @memberof GoWebScanVisionInputMsg
66 * @param msg GoWebScanVisionInputMsg object.
67 * @return Buffer size (bytes).
68 */
70 
71 /**
72 * Gets the height of the message.
73 *
74 * @public @memberof GoWebScanVisionInputMsg
75 * @param msg GoWebScanVisionInputMsg object.
76 * @return Message height.
77 */
79 
80 /**
81 * Gets the width of the message
82 *
83 * @public @memberof GoWebScanVisionInputMsg
84 * @param msg GoWebScanVisionInputMsg object.
85 * @return Message width.
86 */
88 
89 /**
90 * Gets the image stored in the message.
91 *
92 * @public @memberof GoWebScanVisionInputMsg
93 * @param msg GoWebScanVisionInputMsg object.
94 * @return Message image.
95 */
97 
98 /**
99 * Gets a pointer to the start of an image row.
100 *
101 * @public @memberof GoWebScanVisionInputMsg
102 * @param msg GoWebScanVisionInputMsg object.
103 * @param index Row index.
104 * @return Pointer to start of image row.
105 */
107 
108 #include <GoWebScanSdk/GoWebScanVisionInputMsg.x.h>
109 
110 #endif
111 
Represents a container for node-level parameters which are translated from user parameters set in GoW...
kStatus GoWebScanVisionInputMsg_Construct(GoWebScanVisionInputMsg *msg, GoWebScanPipeMsgPool pool, kAlloc allocator)
Constructs a GoWebScanVisionInputMsg object.
Declares the GoWebScanPipeMsg class.
Essential GoWebScan declarations.
Represents a message containing a raw vision message from a sensor.
kStatus GoWebScanVisionInputMsg_Import(GoWebScanVisionInputMsg msg, k32s deviceId, GoStampMsg stampMsg, GoVideoMsg visionMsg, GoWebScanConfigNode configNode)
Imports a GoVideoMsg msg into a GoWebScanVisionInputMsg object.
kSize GoWebScanVisionInputMsg_Width(GoWebScanVisionInputMsg msg)
Gets the width of the message.
Declares a GoWebScanConfigNode object.
k8u * GoWebScanVisionInputMsg_DataAt(GoWebScanVisionInputMsg msg, kSize index)
Gets a pointer to the start of an image row.
kSize GoWebScanVisionInputMsg_Height(GoWebScanVisionInputMsg msg)
Gets the height of the message.
kStatus GoWebScanVisionInputMsg_Destroy(GoWebScanVisionInputMsg msg)
Destroys a GoWebScanVisionInputMsg object.
kImage GoWebScanVisionInputMsg_Data(GoWebScanVisionInputMsg msg)
Gets the image stored in the message.
kSize GoWebScanVisionInputMsg_Size(GoWebScanVisionInputMsg msg)
Gets the size, in bytes, of the vision data buffer.
Represents a pool of GoWebScanPipeMsg objects. The pool allocates GoWebScanPipeMsg objects with a def...
Base class for a msg that can be processed with a GoWebScanPipeTask and submitted to the GoWebScanPip...
Declares a GoWebScanConfig object.