Ovis_Decoration_3D_Segmented_Line_Create()

摘要

创建一条 3D 分段线。

语法

Ovis_Decoration_3D_Segmented_Line_Create (from, to, num_segments, color, thickness, layer_ptr, destroy_proc, user_state_ptr)
参数 类型 说明
from OvisT_3D_Position 分段线的起点
to OvisT_3D_Position 分段线的终点
num_segments unsigned char 分段数量(至少为 1)
color PrgT_Color 颜色
thickness unsigned char 分段线的粗细
layer_ptr OvisT_Layer * Ovis 图层
destroy_proc OvisT_Decoration_State_Destroy_Proc 销毁与该对象关联的数据并释放其内存
user_state_ptr void * 可选的、由用户提供的装饰状态

返回类型

OvisT_3D_Segmented_Line*

3D 分段线

头文件

ovis_decoration.h

详情

此函数创建 Ovis 3D 分段线,并指定该分段线的各项属性。

示例

OvisT_3D_Position						  from, to;
OvisT_3D_Segmented_Line 						  * line;
PrgT_Color						  color = prg_color_from_string ("green");

Ovis_3D_Position_Geodetic_Set (&from, 0, 0, 100);
Ovis_3D_Position_Geodetic_Set (&to, 0, 0, 200);
line = Ovis_Decoration_3D_Segmented_Line_Create (from, to, 3, color, 1, OPC_NIL,
	OPC_NIL, OPC_NIL);

错误

  • 分段数量必须大于 0。

参考

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