Operator-related Operations

An operator is an algorithm processing module in a graph. Each operator performs a specific data processing task. This chapter mainly introduces various operations related to operators.

How to Add an Operator

Perform the following steps to add an operator from the operator library to the canvas:

  1. Search for an operator in the operator library or find an operator based on the operator category.

  2. Press and hold the left mouse button to drag the operator to the canvas.

    operations operator add 1

When an operator exists in the canvas, perform the following steps to add an operator:

  1. Right-click the output port of the operator.

  2. Move the mouse pointer to the connectable option in the shortcut menu.

  3. Click the operator you want to use in the expanded list.

    operations operator add 2

How to Connect Operators

Only when the data type of any output port of the current operator is the same as that of any input port of the next operator, can the operator be connected.

Perform the following steps to connect operators:

  1. Left-click the output port of the previous operator.

  2. Move the mouse pointer to the input port of the next terminal.

  3. Left-click to complete the connection.

  • Before clicking the input port of the next operator, right-click to cancel the connection.

  • Right-click the line between operators and click Confirm in the pop-up window to delete the connection.

How to Move Operators

Perform the following steps to adjust the position of operators in the canvas:

  1. Move the mouse pointer to the operator name, and the pointer changes to operations operator pointer.

  2. Press and hold the left mouse button and drag in any direction.

How to Set Operator Parameters

Double-click an operator in the canvas to open the parameter setting panel and set the operator parameters in the parameter panel.

How to Activate an Operator

Activate the Current Operator

Use any of the following methods to activate the current operator:

  • Click operations operator activate current in the upper right corner of the operator.

  • Click operations operator activate current in the upper right corner of the operator parameter panel.

Activate the Current Operator and the Operators Connected to it

Use any of the following methods to activate the current operator and the operators connected to it:

  • Click operations operator activate subsequent at the top of the operator.

  • Click operations operator activate subsequent at the top of the operator parameter panel.

How to Debug an Operator

Debugging an operator refers to the process of modifying the operator parameters to make the operator output meet the requirements.

  1. Connect the operator and make sure that the operator has the corresponding input.

  2. Open the operator parameter panel and set the relevant parameters.

  3. Activate the operator and view the output results.

  4. Repeat steps 2-3 until the output results meet the requirements.

How to Preload an Operator

Preloading is usually used to initialize some time-consuming operations that only need to be performed once at the beginning of the program, such as reading a file. Doing so can avoid repeated execution at runtime, thereby improving the efficiency and responsiveness of the program.

Use any of the following methods to preload an operator:

  • Click operations operator perload at the top of the operator.

  • Click operations operator perload at the top of the operator parameter panel.

How to add a Note to an Operator

To add a note to an operator, perform the following steps:

  1. Right-click the operator.

  2. Click Note in the shortcut menu.

  3. After entering the custom content in the Edit Note window, click Confirm.

How to Copy an Operator

To copy an operator, perform the following steps:

  1. Right-click the operator.

  2. Click Copy in the shortcut menu.

How to Delete an Operator

To delete an operator from the canvas, perform the following steps:

  1. Right-click the operator.

  2. Click Delete in the shortcut menu.