GoWebScan API
GoWebScanTracheidSampleTask.h
Go to the documentation of this file.
1 /**
2 * @file GoWebScanTracheidSampleTask.h
3 * @brief Declares a GoWebScanTracheidSampleTask 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 
11 #ifndef GO_WEB_SCAN_TRACHEID_SAMPLE_TASK_H
12 #define GO_WEB_SCAN_TRACHEID_SAMPLE_TASK_H
13 
18 
19 /**
20 * @class GoWebScanTracheidSampleTask
21 * @extends kObject
22 * @ingroup GoWebScanSdk-Control
23 * @brief Represents a task for resampling raw tracheid points from a single camera to
24 * generate tracheid tiles. The task accepts GoWebScanTracheidInputMsg objects and
25 * produces GoWebScanTracheidTileMsg objects. When tracheid input messages are
26 * received, each input row is processed and then added to a
27 * GoWebScanProfileYResampler object (same class as used for profile resampling).
28 * When the GoWebScanProfileYResampler completes a row, the row is passed back
29 * to the GoWebScanTracheidSampleTask, processed, and added to an output tile.
30 *
31 * The processing steps for each row of input data is:
32 * -# Reorient the input to match standard system orientation.
33 * -# Resample the row in X.
34 * -# Run the GoWebScanProfileYResampler algorithm.
35 */
37 
38 // Forward declaration
40 
41 /**
42 * Constructs a GoWebScanTracheidSampleTask object.
43 *
44 * @public @memberof GoWebScanTracheidSampleTask
45 * @param task Receives the constructed GoWebScanTracheidSampleTask object.
46 * @param process Associated GoWebScanProcess object.
47 * @param configNode Node configuration.
48 * @param allocator Memory allocator (or kNULL for default).
49 * @return Operation status.
50 */
52 
53 /**
54 * Sets the handler for receiving resampled tracheid tiles.
55 *
56 * @public @memberof GoWebScanTracheidSampleTask
57 * @param task GoWebScanTracheidSampleTask object.
58 * @param send Callback function
59 * @param context Receiver argument for callback.
60 * @return Operation status.
61 */
63 
64 /**
65 * Dispatches a processing job (task + message) to the pipe. Sends the message to a task's
66 * message queue. The task will submit the message to the pipe for processing if no other job is
67 * pending.
68 *
69 * @public @memberof GoWebScanTracheidSampleTask
70 * @param task GoWebScanTracheidSampleTask object.
71 * @param msg Message to dispatch.
72 * @return Operation status.
73 */
75 
76 /**
77 * Adds a message to the processing queue. Dequeues a message at the end of the queue to submit
78 * to the pipe for scheduling if no other job is currently pending.
79 *
80 * @public @memberof GoWebScanTracheidSampleTask
81 * @param task GoWebScanTracheidSampleTask object.
82 * @param msg Profile input message to enqueue.
83 * @return Operation status.
84 */
86 
87 /**
88 * Clears Y-resampler algorithm and resets internal variables.
89 *
90 * @public @memberof GoWebScanTracheidSampleTask
91 * @param task GoWebScanTracheidSampleTask object.
92 * @return Operation status.
93 */
95 
96 /**
97 * Gets the node configuration for the node associated with this task.
98 *
99 * @public @memberof GoWebScanTracheidSampleTask
100 * @param task GoWebScanTracheidSampleTask object.
101 * @return Node configuration.
102 */
104 
105 #include <GoWebScanSdk/GoWebScanTracheidSampleTask.x.h>
106 
107 #endif
Declares the GoWebScanPipeTask class.
Represents a task for processing raw sensor data to produce system web tiles (Web mode) or detected o...
Represents a container for node-level parameters which are translated from user parameters set in GoW...
Declares a GoWebScanPipe object.
kStatus(kCall * GoWebScanPipeSendFx)(kPointer context, GoWebScanPipeMsg msg)
Defines the signature of the handler used by tasks to receive a message from the pipe.
Definition: GoWebScanPipe.h:33
kStatus GoWebScanTracheidSampleTask_Construct(GoWebScanTracheidSampleTask *task, GoWebScanProcess process, GoWebScanConfigNode configNode, kAlloc allocator)
Constructs a GoWebScanTracheidSampleTask object.
Essential GoWebScan declarations.
kStatus GoWebScanTracheidSampleTask_Send(GoWebScanTracheidSampleTask task, GoWebScanPipeMsg msg)
Adds a message to the processing queue.
GoWebScanConfigNode GoWebScanTracheidSampleTask_ConfigNode(GoWebScanTracheidSampleTask task)
Gets the node configuration for the node associated with this task.
kStatus GoWebScanTracheidSampleTask_SetReceiver(GoWebScanTracheidSampleTask task, GoWebScanPipeSendFx send, kPointer context)
Sets the handler for receiving resampled tracheid tiles.
Represents a task for resampling raw tracheid points from a single camera to generate tracheid tiles...
kStatus GoWebScanTracheidSampleTask_Dispatch(GoWebScanTracheidSampleTask task, GoWebScanPipeMsg msg)
Dispatches a processing job (task + message) to the pipe.
Base class for a msg that can be processed with a GoWebScanPipeTask and submitted to the GoWebScanPip...
kStatus GoWebScanTracheidSampleTask_Clear(GoWebScanTracheidSampleTask task)
Clears Y-resampler algorithm and resets internal variables.
Declares a GoWebScanConfig object.