draw()
Abstract
Callback: Called when the visualization must be drawn
Syntax
<function_prefix>_draw (sim_state_ptr, mh, visible_subnet_handle, visible_subnet_objid)
| Argument | Type | Description |
|---|---|---|
sim_state_ptr |
void * |
Simulation state |
mh |
EtsT_Model_Handle |
Visualization model |
visible_subnet_handle |
EtsT_Obj_Handle |
Subnet being displayed |
visible_subnet_objid |
int |
ID of the subnet being displayed |
Return Type
void
no return value
Details
This callback is called to draw (or redraw) the visualization at the following times:
- When the user first displays the visualization.
- When the user navigates to a new subnet.
- When the simulation progress is updated (based on the Update Interval specified in the Configure Simulation dialog; by default, every 500,000 events).
- When the simulation breaks at the ODB prompt.