iCAx开思网
标题:
UF_UI_select_with_single_dialog?
[打印本页]
作者:
yuwan
时间:
2005-9-15 11:06
标题:
UF_UI_select_with_single_dialog?
两个问题:
1 选择对象: 曲线(直线 圆弧 样条曲线等), init_proc函数中选什么参数?
2 选择完毕,要求点OK回到主菜单,如何设置?
谢谢!
作者:
pzytony
时间:
2005-9-15 19:10
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);
}
}
欢迎光临 iCAx开思网 (https://www.icax.org/)
Powered by Discuz! X3.3