DVnode_data_labels


Synopsis

extract node data labels for display in a UIradioBoxLabel


group DVnode_data_labels {
group+Iparam &in{
group+opt node_data {
string+opt labels;
};
};
string+Oparam labels[];
int+Oparam ncomp => array_size(labels);
method+notify_val+notify_inst upd_node_data_labels = "node_data_labels";
};

Description

DVnode_data_labels extracts the node data labels from the Data_Arrays within a Node_Data and stores them in a string array. This string array (along with the Node_Data's nnode_data value) can be used as inputs to a UIradioBoxLabel widget so that the user can pick which component, by label, he/she wants a downstream object to work on.

Input

&in

A reference to a Node_Data.

Output

labels[]

A string array object. The array is as long as the nnode_data of the input Node_Data. It contains the label strings from each component's Data_Array. If no label was present, the string value is "NO NAME".

ncomp

An integer whose value is the size of the labels array (the number of components, nnode_data, in the input field).

Files

v/dv.v
modules/labels.c

Example

Libraries.Main.Filters.extract_component
Libraries.Main.Filters.threshold
Libraries.Main.Filters.clamp
Libraries.Main.Mappers.surf_plot
and many others

See also