FLDget_cell_data_minmax_vec


Synopsis

get/copy the min_vec and max_vec within one Cell_Data cell_set Data_Array component


int FLDget_cell_data_minmax_vec (
OMobj_id cell_set,
int comp,
char **min,
char **max,
int *type,
int mode);

int FLDcopy_cell_minmax_vec (
OMobj_id in_cell_set,
OMobj_id out_cell_set,
int in_comp,
int out_comp);

Description

These routines get or copy the min_vec and max_vec data arrays within one Cell_Data cell_set Data_Array component.

By default, the min_vec and max_vec data values are defined as functions:

prim min_vec[veclen] = cache (min_array (values, null_flag, null_value));
prim max_vec[veclen] = cache (max_array (values, null_flag, null_value));

Normally, there is no need to ever actively set or copy these values.

FLDget_cell_data_minmax_vec returns the values of these functions. If the data in the values array changes, the value of the function automatically changes.

FLDcopy_cell_minmax_vec is the routine most frequently used in this set. It copies the input field's component min_vec and max_vec to the output field. For a discussion on why this might be desirable: