Package Overview

Note: You must have a license for the OPNET Development Kit to use the View package.

The ETS View package provides an API for manipulating network views and non-geographic positions of objects.

View Sub-Package

The functions of the View sub-package support network views, which are predefined sets of visualization settings that can be applied to a network or subnet view in the Project Editor workspace. Network views reduce visual clutter and highlight information of interest in the network. For information about how this feature is used, see “Set View for Subnet/Network“ on page 147.

Note: Many Ets_View functions take a view handle as an argument. However, because the current views implementation maintains only an object's view status in the current view, these functions always act on the current view, regardless of the input value of the view handle. The view handle argument exists to allow for future enhancements.

View Definition File

Views are defined in one or more view definition files. These are text files that are stored in a directory listed in mod_dirs and named with a .vdf extension. The format of a view definition is:

start_view_definition
	view name:              <view_name>
	model filter:           <library_name> <function_name>
	object filter:          <library_name> <function_name>
	view change callback:   <library_name> <function_name>
	scope:                  subnet|network
	product options:        <product_code>
end_view_definition

The filter and callback functions can be C, C++, or Python routines; thus, <library_name> can be the name of either an ETS library or a Python module. The scope and product options lines are optional.

Logical Sub-Package

The functions of the Logical sub-package support the positioning mode, which determines how objects are arranged in the Project Editor workspace. For information about how this feature is used, see “Geographic Positioning“ on page 138.

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