int init_proc( UF_UI_selection_p_t select, void * user_data )
{
int num_triples = 4;
UF_UI_mask_t mask_triples[] = {UF_line_type,0,0,UF_circle_type,0,0,UF_conic_type,0,0,UF_spline_type,0,0};
/* enable only lines and edges */
if ((UF_UI_set_sel_mask( select,
UF_UI_SEL_MASK_CLEAR_AND_ENABLE_SPECIFIC,num_triples, mask_triples)) == 0)
{
return (UF_UI_SEL_SUCCESS);
}
else
{
return (UF_UI_SEL_FAILURE);
}
} |