Ovis_Decoration_Info_Template_Graph_Element_Add()

摘要

向 Ovis 模板添加图形元素。

语法

Ovis_Decoration_Info_Template_Graph_Element_Add (tmpl_ptr, element_name)
参数 类型 说明
tmpl_ptr OvisT_Info_Template * 模板
element_name const char * 元素名称

返回类型

OvisT_Compcode

若图形元素能够被添加,则为 OvisC_Compcode_Success;否则为 OvisC_Compcode_Failure。

头文件

ovis_decoration.h

详情

此函数向 Ovis 模板添加图形元素。它在实例中将显示为一个小型图形,展示最近 10 个值。

示例

#define BUSY_FIELD						"busy"

OvisT_Info_Template						* template;
OvisT_Info_Group						* info;
OvisT_3D_Position						pos;

template = Ovis_Decoration_Info_Template_Create ("Interference");
Ovis_Decoration_Info_Template_Graph_Element_Add (template, BUSY_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_Vector_Element_Value_Set (info, BUSY_FIELD, 0, 1);

错误

  • 模板为 NIL。
  • 未提供元素名称。
  • 元素 "<name>" 已经是模板的一部分。

参考

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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