文章作者:里海
简介:
设置特征的图层
代码:
static void set_feature_layer(tag_t feat, int layer)
{
int
n_objs;
tag_t
geom,
*objs;
if (!UF_WAVE_ask_linked_feature_geom(feat, &geom) && geom)
set_layer_object_array(1, &geom, layer);
else
{
if (!UF_CURVE_ask_feature_curves(feat, &n_objs, &objs) && n_objs)
{
set_layer_object_array(n_objs, objs, layer);
UF_free(objs);
}
else
{
if (!UF_MODL_ask_feat_object(feat, &n_objs, &objs) && n_objs)
{
set_layer_object_array(n_objs, objs, layer);
UF_free(objs);
}
}
}
}