EtsT_Nt_View_Change_Callback
Note: Requires OPNET Development Kit
Abstract
Callback: Used to specify custom processing after the zoom level or scroll position of the current subnet changes.
Syntax
EtsT_Nt_View_Change_Callback (current_subnet, ul_x, ul_y, lr_x, lr_y, old_nt_resolution, new_nt_resolution, state_ptr)
| Argument | Type | Description |
|---|---|---|
current_subnet |
EtsT_Obj_Handle |
Handle to the currently displayed subnet |
ul_x |
double |
x coordinate of the upper left corner of the visible region, in the units of the current subnet. |
ul_y |
double |
y coordinate of the upper left corner of the visible region, in the units of the current subnet. |
lr_x |
double |
x coordinate of the lower right corner of the visible region, in the units of the current subnet. |
lr_y |
double |
y coordinate of the lower right corner of the visible region, in the units of the current subnet. |
old_nt_resolution |
double |
The resolution of the current subnet before the view changed. |
new_nt_resolution |
double |
The new resolution of the current subnet. |
state_ptr |
void * |
Client’s own state pointer. This pointer is the value that was passed to Ets_Nt_View_Change_Callback_Register(). |
Return Type
void
No return value.
Header
ets_api_nt_cback.h
Details
Callbacks of this type are registered by Ets_Nt_View_Change_Callback_Register().