Ovis_Group_Create()

Abstract

Creates an Ovis group.

Syntax

Ovis_Group_Create (group_name, comment, parent_group, show_initially, destroy_callback, user_state)
Argument Type Description
group_name const char * Group name
comment const char * Specifies comment
parent_group OvisT_Group * Parent group
show_initially OvisT_Boolean Specifies whether the group appears initially
destroy_callback OvisT_Group_State_Destroy_Proc User-defined procedure used to destroy the data associated with the object and deallocate its memory
user_state void * User-defined state associated with the group

Return Type

OvisT_Group *

Newly created group

ovis_entity.h

Details

This function creates an Ovis group and specifies the attributes of the group. Groups provide the ability to show or hide a set of related entities to avoid having too much graphical information in the animation. Groups can include any number of entities and other groups. There is a root group that cannot be destroyed. Showing a group will show its entities and child groups (recursively showing). Hiding a group will hide its entities and child groups (recursively hiding).

Example

OvisT_Group 				* group;

group = Ovis_Group_Create ("friendly forces",
	"Hold entities belonging to blue group",
	OvisC_True, OPC_NIL, OPC_NIL, OPC_NIL);

Errors

  • No group name provided.

Reference

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