vsTASKER 7 User Manual
×
Menu
Index

Runtime

 
Runtime
1

Win Panel

1. Win Panel
Put here the code that will be called at each HMI cycle, before the processing of the Sprites.
Must select the active panel (only one for the moment) using the code:
 vt_rtc->hmi->selectWinPanel(0);
This code is embedded into a generated function called hmi_display();
2

HUD Panel

2. HUD Panel
This code is only called from the OSG viewer, when 2D inlays must be applied on the OSG windows.
The actual HMI will then be drawn.
To disable this function, write this:
 vt_rtc->hmi->selectHudPanel(-1);
 
To enable, when HMI HUD has to be drawn on the OSG Viewer display, do the following (given as example):
 vt_rtc->hmi->selectHudPanel(0); // [0..n], -1 for none
 //draw circles
 hmi_draw->setTransparency(0.0);
 hmi_draw->setColor(0.0, 0.0, 0.0); // black
 hmi_draw->setLine(2);
 hmi_draw->drawCircle(100, 100, 0, radius);
 etc.
This HUD code is embedded into a function called hud_display();
This function is called from Src/Osg/osg_hud.cpp in HMIDrawable::drawImplementation(...)