vsTASKER 7 User Manual
×
Menu
Index

Strip

 
A strip is used to slide a texture behind a squared window.
The sliding can be either vertical or horizontal.
 
 
 
 
 
On the HMI grid, add a Strip:
or
 
 
Give it a name, then open the property window.
 
Make the Way Horizontal.
 
Then select Visual Aspect to import the following texture: azimuth.gif in /Data/HMI/Aerospace
 
On the HMI panel, drag the Min and Max green hooks so that to visually align them with the -180 and 180 values of the strip:
 
Then use the blue hooks to resize the peek window of the Strip (everything outside will be scissor).
Open again the Property window and set the value bounds:
 
By giving 180 to Max, for the runtime Value of 180, the texture (at the position of the green Max hook) will be centered in the middle of the peek window.
Same thing with Min hook for the Value of -180.
 
In Initialization panel, RESET, put:
entity = S:findEntity("ac");
Vt_Entity* entity; is already defined in Vt_Base and Vt_Sprite inherit from Vt_Base, so, needless to redefine it locally.
 
In the Runtime panel, put the following code:
set(convRadToDeg(entity->getDyn()->getHdg()));
 
Back in the Terrain scenario, add one entity, name it "ac", compile run.
Now, change the heading of the aircraft from the hook window and see the Strip in action on the HMI window.