visual3d:documentation:pipeline:expressions:reserved_names
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
visual3d:documentation:pipeline:expressions:reserved_names [2025/03/10 11:40] – wikisysop | visual3d:documentation:pipeline:expressions:reserved_names [2025/06/20 18:45] (current) – Cleaned up page and added section headers. wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Reserved Names ====== | ====== Reserved Names ====== | ||
- | Visual3D | + | Certain names are reserved within the Visual3D |
- | ==== Contents ==== | ||
+ | ===== CURRENT_SIGNAL ===== | ||
+ | The CURRENT_SIGNAL reserved named is used to refer to a specific signal within the input to [[visual3d: | ||
- | * [[# | + | ==== Example: |
- | * [[# | + | |
- | * [[# | + | |
- | * [[# | + | |
- | * [[#NAN|2 NAN]] | + | |
- | * [[#isNAN|3 isNAN]] | + | |
- | * [[# | + | |
- | + | ||
- | + | ||
- | ==== CURRENT_SIGNAL ==== | + | |
- | + | ||
- | Used to refer to a specific signal with a simple syntax | + | |
- | Compute the length of one signal. | + | |
The legacy syntax is: | The legacy syntax is: | ||
- | **Evaluate_Expression** | + | < |
+ | Evaluate_Expression | ||
/ | / | ||
/ | / | ||
Line 29: | Line 19: | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | The legacy syntax can get complicated if [[Visual3D: | + | </ |
+ | The legacy syntax can get complicated if [[Visual3D: | ||
+ | |||
+ | < | ||
! Create a pipeline parameter containing the marker name | ! Create a pipeline parameter containing the marker name | ||
- | **Set_Pipeline_Parameter** | + | Set_Pipeline_Parameter |
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | **Evaluate_Expression** | + | |
+ | Evaluate_Expression | ||
/ | / | ||
/ | / | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | This gets even more complicate if the folder is also a pipeline parameter. | + | </ |
- | An alternative is the following | + | This gets even more complicate if the folder is also a pipeline parameter. |
- | **Evaluate_Expression** | + | < |
+ | Evaluate_Expression | ||
/ | / | ||
/ | / | ||
Line 56: | Line 51: | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | \\ | + | </ |
- | == Used to allow multiple signals | + | ==== Example: Specify |
- | Compute | + | This example computes |
- | The legacy implementation requires a [[Visual3D: | + | < |
- | + | For_Each | |
- | [[Visual3D: | + | |
/ | / | ||
/Items= RFT1+RFT2+RFT3 | /Items= RFT1+RFT2+RFT3 | ||
- | **;** | + | ; |
- | **Evaluate_Expression** | + | |
+ | Evaluate_Expression | ||
/ | / | ||
/ | / | ||
Line 79: | Line 74: | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
End_For_Each | End_For_Each | ||
/ | / | ||
- | **;** | + | ; |
- | Using CURRENT_SIGNAL | + | </ |
+ | |||
+ | Instead, using the CURRENT_SIGNAL | ||
- | **Evaluate_Expression** | + | < |
+ | Evaluate_Expression | ||
/ | / | ||
/ | / | ||
Line 94: | Line 93: | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | \\ | + | </ |
+ | ==== Example: Specify all signals of a given type ==== | ||
- | == Used to Specifying | + | This example computes the length of all TARGETS in the ORIGINAL folder. The legacy implementation requires a [[Visual3D: |
- | Compute the length of all TARGETS in the ORIGINAL folder | + | < |
- | + | Set_Pipeline_Parameter_To_List_Of_Signal_Names | |
- | The legacy implementation requires a [[Visual3D: | + | |
- | + | ||
- | [[Visual3D: | + | |
/ | / | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | [[Visual3D: | + | |
+ | For_Each | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | **Evaluate_Expression** | + | |
+ | Evaluate_Expression | ||
/ | / | ||
/ | / | ||
Line 122: | Line 121: | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
End_For_Each | End_For_Each | ||
/ | / | ||
- | **;** | + | ; |
- | Using CURRENT_SIGNAL | + | </ |
- | **Evaluate_Expression** | + | Instead, using the CURRENT_SIGNAL reserved name: |
+ | |||
+ | < | ||
+ | Evaluate_Expression | ||
/ | / | ||
/ | / | ||
Line 137: | Line 140: | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | \\ | + | </ |
- | == APPLY_AS_SUFFIX_TO_SIGNAL_NAME | + | ==== Example: Apply suffix to signal name ==== |
- | If **APPLY_AS_SUFFIX_TO_SIGNAL_NAME** is **true**, OR RESULT_NAMES.size() == SIGNAL_NAMES.size() | + | If the /APPLY_AS_SUFFIX_TO_SIGNAL_NAME |
- | Compute | + | For example, when computing |
- | **Evaluate_Expression** | + | < |
+ | Evaluate_Expression | ||
/ | / | ||
/ | / | ||
Line 156: | Line 159: | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | Compute the length of Two TARGETS (RFT1 and RFT2) in the ORIGINAL folder | + | </ |
- | **Evaluate_Expression** | + | Or when computing the length of two TARGETS (RFT1 and RFT2) in the ORIGINAL folder |
+ | |||
+ | < | ||
+ | Evaluate_Expression | ||
/ | / | ||
/ | / | ||
Line 168: | Line 174: | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | Compute | + | </ |
+ | |||
+ | Also when calculating | ||
- | **Evaluate_Expression** | + | < |
+ | Evaluate_Expression | ||
/ | / | ||
/ | / | ||
Line 180: | Line 189: | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | \\ | + | </ |
- | If **APPLY_AS_SUFFIX_TO_SIGNAL_NAME** is **false**, AND RESULT_NAMES.size() == 1 | + | |
- | Compute the length of one TARGET (TARGET:: | + | ===== NAN ===== |
- | **Evaluate_Expression** | + | NAN is a reserved string used to designate "Not a Number" |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | **;** | + | |
- | ==== NAN ==== | + | |
- | + | ||
- | NAN is a reserved string used to designate "Not a Number" | + | |
- | Visual3D commands refer to [[Visual3D: | + | For example, the expression 1/0 results in NAN. |
- | For example, the expression 1/0 results in NAN | + | ==== isNAN function |
- | ==== isNAN ==== | + | |
- | isNAN(expression) tests values against NAN - If the number is NAN the result is 1, otherwise the result is 0 | + | The function |
- | [Set_Pipeline_Parameter_From_Expression] | + | < |
+ | Set_Pipeline_Parameter_From_Expression | ||
/ | / | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
::NAN_TEST = 1 | ::NAN_TEST = 1 | ||
- | [Set_Pipeline_Parameter_From_Expression] | + | |
+ | Set_Pipeline_Parameter_From_Expression | ||
/ | / | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | ::NAN_TEST = 1 | + | |
- | Returns " | + | |
- | [Set_Pipeline_Parameter_From_Expression] | + | ::NAN_TEST = 1 ! Returns " |
+ | |||
+ | Set_Pipeline_Parameter_From_Expression | ||
/ | / | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
::NAN_TEST = 0 | ::NAN_TEST = 0 | ||
- | Example: Set negative values to NO_DATA | + | </ |
- | If the z-component of the LELB signal is below 0 set the frame to NO_DATA | + | ==== Example: Set negative values |
- | **Evaluate_Expression** | + | In this example, if the z-component of the LELB signal is below 0 then we will set the frame to NO_DATA. |
+ | |||
+ | < | ||
+ | Evaluate_Expression | ||
/ | / | ||
/ | / | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | + | </ | |
- | ==== ORIGIN ==== | + | |
- | + | ||
- | Internally Visual3D specifies the location ORIGIN and the string cannot be used for a TARGET or a LANDMARK | + | |
+ | ===== ORIGIN ===== | ||
+ | Internally Visual3D specifies the location ORIGIN. To avoid confusion, this string cannot be used to name either a TARGET or a LANDMARK. |
visual3d/documentation/pipeline/expressions/reserved_names.txt · Last modified: 2025/06/20 18:45 by wikisysop