Ovis_Viewmode_Group_Set()
注意: Group 视图模式在 3D Network Visualizer 3.1.0 及更高版本中不受支持。对该函数的调用不产生任何效果。
摘要
将 3D Network Visualizer 设置为 Group(群组)视图模式。
语法
Ovis_Viewmode_Group_Set (num, entity_array, radius, azimuth, elevation, wide)
| 参数 | 类型 | 说明 |
|---|---|---|
num |
unsigned int |
entity_array 中的元素个数 |
entity_array |
OvisT_Entity * |
实体指针数组 |
radius |
double |
与群组之间的距离,单位为米 |
azimuth |
double |
视点的方位角,单位为度 |
elevation |
double |
视点的仰角,单位为度 |
wide |
OvisT_Boolean |
返回类型
OvisT_Compcode
若操作可执行则返回 OvisC_Compcode_Success,否则返回 OvisC_Compcode_Failure。
头文件
ovis_entity.h
详情
该函数将 3D Network Visualizer 的当前视图模式改为基于给定实体集合的群组视图模式。
示例
OvisT_Entity * triplet [3];
OvisT_Entity * ent1, * ent2, * ent3;
/* entities created at some point */
triplet [0] = ent1;
triplet [1] = ent2;
triplet [2] = ent3;
Ovis_Viewmode_Group_Set (3, triplet, 200, 0, 5, OvisC_False);
错误
- 实体数组为 NIL。
- 数组中没有实体。
- 实体数组中的条目 #
<index>为 NIL。
参考
- 使用其他
Ovis_Viewmode_xxx_Set函数可将视图切换到不同模式。