simlogo1

 

 

 

SimQuest 6.4 help

 

 

Set of Bitmaps

 

A set of bitmaps is a set of pictures. These pictures are shown in the interface, one after the other, depending on a the changing variable from your model that you link to it.

 

To control the Set of Bitmaps from your model, you need a variable that takes integer values ranging from 1 up: 1, 2, 3 etc correspond to the 1st, 2nd, 3rd picture. Typically you need to add an equation to your model that looks like this:

 

Pictures = if x = 3 then 1 else if x = 4 then 2 else if x => 5 & x <= 6 then 3 else 4 endif endif endif

 

So when x has the value 3, the first picture is displayed. If it has the value 4 then the second picture will be displayed. If x has a value in between 5 and 6, the 3rd picture is displayed. If none of these 3 conditions are true, the 4th picture is displayed.

 

Adding pictures to a Set of Bitmaps

Adding pictures to a Set of Bitmaps is a bit different from other SimQuest operations:

 

1.Go to the All Elements tab sheet in your application.
2.Select the Set of Bitmaps. Tip: rename it if you plan on using more than one.
3.Right click and choose Edit. An editor will open.
4.Drag Image from File elements into the editor. Image from File elements are found in the Static Widgets folder.
5.To adjust the order of the images, select an image and use the arrows on the right to move it up or down the list.
6.Click Apply and Close the editor.

 

Now you must go back to the interface editor, select the Set of Bitmaps there, right click and choose Properties. Fill out the tab sheets as follows.

 

Tab sheet: Basics

1.Click the Basics tab sheet.
2.In the Scale box, type the Scale value: a factor with which you want to multiply the value of the variable you are going to link to this element..
3.In the Offset box, type the start value: the value which is added to the value of the variable you are using..
4.Click Apply.

 

Tab sheet: Variable

1.Click the Variables tab sheet.
2.Choose the variable you want to link to the Set of Bitmaps. As said before, the variable has to take integer values: 1 is for the first picture, 2 is for the second, etc.. If your variable takes values like 0, 0.5, 1, 1.5 you can also go to the Basics tab sheet and enter and Offset value of 1 and a Scale factor of 2 to correct for this.
3.Click Apply.

 

Tab sheet: Position

Please note! Using this tab sheet to set the position is optional. Instead of dragging and resizing, you can use the Position tab sheet to specify relative and absolute positions.

 

1.Click the Position tab sheet.
- Left, Top, Right, an Bottom, refer to the four sides of the element.
- Relative Position refers to the position on the window, where the maximum left and top side of the window refer to 0, and the maximum right and bottom side of the window refer to 1.
- Offset refers to the amount of pixels from the topleft corner of the window.
2.Determine the relative position of the left, top, right, and bottom side of the element by typing values between 0 and 1 in the appropriate Relative Position boxes.
3.Determine the size of the element by typing the amount of pixels in the appropriate Offset boxes.
4.Click Apply.

 

 

 

Related topics:

 

 

 

Copyright University of Twente 2011