Ovis_Decoration_Info_Group_Create()

摘要

创建 Ovis 组的实例。

语法

Ovis_Decoration_Info_Group_Create (tmpl_ptr, position, color, layer_ptr, destroy_proc, user_state_ptr)
参数 类型 说明
tmpl_ptr OvisT_Info_Template * Ovis 模板
position OvisT_3D_Position 位置
color PrgT_Color 颜色
layer_ptr OvisT_Layer * Ovis 图层
destroy_proc OvisT_Decoration_State_Destroy_Proc 销毁与装饰物关联的数据并释放其内存
user_state_ptr void * 可选的、由用户提供的装饰物状态

返回类型

OvisT_Info_Group *

Ovis 组

头文件

ovis_decoration.h

详情

此函数创建 Ovis 组的实例。它指定组的各项属性,例如用于创建该组的特定模板,以及组的位置、颜色和图层。有关 Ovis 模板的信息,参见 Ovis_Decoration_Info_Template_Create()。

示例

#define INCOMING_PACKET_FIELD								"Incoming"

OvisT_Info_Template						* template;
OvisT_Info_Group						* info;
OvisT_3D_Position						    pos;

template = Ovis_Decoration_Info_Template_Create ("Packet count");
Ovis_Decoration_Info_Template_Scalar_Element_Add (template, INCOMING_PACKET_FIELD);
Ovis_Position_Geodetic_Set (&pos, 0, 0, 100);
info = Ovis_Decoration_Info_Group_Create (template, pos,
	prg_color_from_string ("blue"), OPC_NIL, OPC_NIL, OPC_NIL);
Ovis_Decoration_Info_Group_Scalar_Element_Value_Set (info, INCOMING_PACKET_FIELD,
	10);

错误

  • 模板为 NIL。

参考

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com