define a module to process the pick information attached to the object
group GDpick_obj_notify_templ {
GDpick_info_templ &pick_info;
};
group GDpick_process_notify_templ {
GDpick_obj_notify_templ+IPort2 &obj_in<NEcolor0=0xff0000>;
method+notify_val upd_func = "GDpick_process_update";
};
GDpick_process_notify_templ GDpick_process_templ {
int use_pick_data;
group &field_id;
group &coord_id;
group &node_data_array_id;
int vert_index;
group &cell_set_id;
group &conn_id;
int conn_index;
group &cell_data_array_id;
int cell_index;
};
GDpick_process_templ GDpick_process;
These templates define a module that processes the Graphic Display Kit pick information.
GDpick_process is connected to any GDobject that is part of the hierarchy of objects attached to a view. Whenever a pick takes place, the module runs. If a pick did not occur on the object or any of the object's children, the module returns immediately. Otherwise, the pick information attached to the object that is picked is interrogated and the output information in this group is written.
only outputs when a pick in the hierarchy it is attached to occurs
converts the pick information and pick data that is several levels down into a more useful form
can provide a mapping from the input field to the source field from which that field was generated if the module provided node or cell pick data