Skip to main content

visualization tools

Visualization tools

In iRidi Studio, the graphic interface editor is available when you create a Panel Project: File > New > New panel project. A Panel Project is a visualization interface for i3 pro.

Studio2019_NewProject.png

Visualization tools include:

  • WORKSPACE . Shows how a page, popup, or graphic item will look in i3 pro. Select a graphic item and its appearance variant (State) in the workspace for viewing and editing through the property panels;
  • PROJECT . Lists the visualization interface's pages and popups. Switches the objects displayed in the workspace and shows their properties;
  • PROGRAMMING . Actions a graphic object performs in i3 pro when pressed. Items can control internal interface logic and send or display equipment data;
  • IMAGES . A gallery of interface objects available for visualization, and images already added to the interface;
  • CAMERAS . Settings library for popular IP-camera models and links to cameras already added to the interface;
  • SOUNDS . Audio-file library for interface playback, and files already added to the interface;
  • RESOURCES . Images, sounds, and fonts added to the project.

WORKSPACE. Interface display​

The workspace is the interface editor's main area. It displays interface objects: pages, popup windows, and the graphic items on them. Select an item in the workspace to change its properties:

Studio2019_UIProject.png

Available in the workspace:

  1. Selecting / drawing graphic items:
    1. Switch tools with Select item and Draw item on the left toolbar or in the context menu.
    2. Hold D on the keyboard to switch the cursor temporarily to drawing mode. Releasing it returns to selection mode. Choose the type of item to draw in the drawing tool's properties on the left sidebar. Ctrl+D switches to Draw item.
    3. Hold L to switch temporarily to drawing a label: an item with 1 appearance variant (state) and a transparent background, useful for text blocks.
    4. Item selection modes.
      1. Left-click to select individual items.
      2. Drag a selection rectangle to select several items. A left-to-right rectangle selects all items wholly or partly inside it; a right-to-left rectangle selects only items wholly inside it.
  2. Moving objects :
    1. Use the cursor and keyboard arrow keys.
    2. Hold Ctrl and use the arrow keys to move an object in larger steps (x10)
  3. Context menu:
    1. Switch between selection and drawing tools.
    2. Copy, Clone, Paste, Cut, Delete - copy, clone, paste, cut, or delete an item
    3. Add / Delete - quickly add objects to items or remove them:
      1. Image - a background image.
      2. Icon - an additional image whose position on the object can be controlled.
      3. Chameleon - a raster image with a controllable color.
      4. Sound playback on a press.
      5. Links to IP cameras and network images that replace Image.
      6. Link calls.
      7. Script function calls: activate routines written in JavaScript; see the [JS] Script window.
    4. Control an object's position relative to others (Z-order).
    5. Lock / Unlock - prevent moving a graphic item or popup in the editor
    6. Hide / Show - hide an object in the workspace to view the layers below it. This affects only the editor preview: the object appears when the application runs. To make an object invisible and inactive in i3 pro, use Visible in its settings.
    7. Edit - modify an item:
      1. Make transparent - make the item background transparent,
      2. Resize to fit image - resize the item's height and width to match its image.
  4. Managing states (States). A graphic item can store multiple appearance variants called States, each configured separately. System events, such as a user press or equipment data reception, can switch states and thus change the item's appearance during operation. Manage states in the States toolbar above the workspace. Available actions:
    1. Select a state to show it in the workspace and display its settings in the object's properties.
    2. Reorder states: drag them relative to one another to change the default appearance.
    3. Add or delete states only for Multistate items. Other item types have a fixed number of states determining their behavior on presses or data display. Change the item type in its settings (Object properties or the quick-access property toolbar).
    4. Enable All states to apply state-property changes to every state of the item. This quickly configures properties shared by all states. Click All states again to stop editing in this mode.
  5. Managing layers Icon and Text on graphic objects:
    1. Click the object, then its icon or text field. An additional frame appears around the selected layer. Move it with the mouse or arrow keys. The editor property panel shows the selected layer's parameters.
    2. Double-click the active (selected) Text layer to open the quick text-entry window.
    3. Double-click the active (selected) Icon layer to open the project gallery and select a replacement icon image.
  6. Copying / pasting items. With Ctrl+C (copy) and Ctrl+V (paste), you can:
    1. Copy interface items and paste them onto the same page, another page, or another Panel Project.
    2. Copy images from external sources (file browser, Skype, browser, and so on) into the workspace or project gallery. Supported image formats: PNG, JPG, GIF, SVG. Pasting a GIF creates a Multistate button with all required item states. Other image formats create a Label with one state. The item's size is set automatically to the image size.
Note

PROJECT. Pages and windows​

A visualization interface usually consists of pages and windows. Users switch between them by pressing navigation items that open or close specified pages and windows.

Use Project to open a page in the workspace for editing.

Studio2019_SidePanel_Project.png

Project sidebar functions:

  1. Pages and popups view .
    1. Navigate project pages and popup windows.
    2. Add, delete, or clone pages, popups, and folders.
    3. View the list of items on the selected page.
    4. Reorder pages and graphic items in the project tree by dragging them or using the arrows. Graphic-item positions in the tree directly affect their display order on the page.
    5. Open project settings.
  2. Manage settings of the object (page, popup, or item) selected in the workspace.
    1. General. Main settings: position, size, item type, and behavior on presses or data reception.
    2. States. Appearance settings of the object's currently selected state: colors, images, text, and so on.
  3. Popup groups view - manage mutually exclusive popup groups: opening one popup automatically closes another in the same group.

PROGRAMMING. Actions on pressing​

Pages and windows of the visualization interface contain objects that perform actions when pressed or change appearance when data is received from equipment. An item's behavior depends on its settings, but all commands it sends are shown on PROGRAMMING.

Select an object in the workspace and open PROGRAMMING to see which actions it performs and when:

Studio2019_SidePanel_Programming.png

Touching the screen, releasing it, and moving an item are different events to which the graphic interface can respond. Pages, popups, graphic items, and list entries support different event sets and therefore follow different command-sending rules.

Events:

  • Press - send commands when the button is touched;
  • Release - send commands when the button is released;
  • Hold - send commands repeatedly while the item is held;
  • End of hold - send commands once when a previously held button is released;
  • Move - send commands when a slider or joystick moves;
  • Select - select an entry and subentry in List (a scripted list). Access through List API;
  • Enter - press Enter in Edit Box;
  • Change - a character-input event in Edit Box. Access through GUI API;
  • Lost Focus - an event generated on release by any item, regardless of its type or conditions. It means the item loses focus (activity). It can only be handled through GUI API;
  • Gestures - gestures (swipes). Only a page handles gestures: they cannot be configured for a window or an item area. A gesture can start on the page, a graphic item, or a window, but is passed to the parent page, whose commands execute. Exceptions are Level, Joystick, List, and Static List, which handle Move instead of gestures.

Contextual navigation​

Programming lets you navigate quickly to an item used in a macro or relation and focus it. When a linked item exists, open the relation or macro's context menu and select "Перейти к" (go to) followed by the item name.

Studio2019_Contextual_click_throughs01.png

The following occurs:

  • the tab containing the destination item opens or becomes active (for example, a script, graphic item, sound, or token)
  • the item receives focus where possible*

Exceptions are these tabs:

  • System tokens: the system-token tab receives focus, but the linked token does not
  • Script editor: the script-editor tab and the file containing the called function receive focus, but the function's line does not.
Note

The context menu for navigating to linked items uses icons introduced with adaptive mode for Programming. Adaptive mode does not have to be enabled for this navigation to work!

Adaptive Programming mode​

You can enable Adaptation of "Programming" tab (beta) in the Studio settings window

Studio2019_Adaptation_of_Programming01.png

The tab in adaptive mode​

Enabling Adaptation of "Programming" tab (beta) gives the Programming window the following properties:

  1. Color markers appear:

Studio2019_Adaptation_of_Programming02.png

  • Driver control channel - cyan
  • Driver feedback channel - green
  • Graphic property - yellow
  • Tokens, system tokens and other commands - white
  • Script function - orange
  1. The information format in each line changes

Studio2019_Adaptation_of_Programming03.png

  • Object category indicators are removed from tags: UI, Driver, Token, Tag, Command
  • Relations are displayed in this order: Source > Receiver.
  • Additional information is shown in a small font below the names of unselected items, control channels, feedback channels and tags:
    • for control and feedback channels - the driver name, or the network and subdevice names (HDL Buspro Network)
    • for items - the full path to the item (Popup 1.Item 3.State 2),
    • for selected items referencing a property of one of their states - the item state (State 1 / State 2)
    • for tokens - the type (Tokens / System / HDL Buspro Network).
  • Object and action indicators are removed from macros:
    • value from an object
    • text
    • number
    • data
    • sound

Studio2019_Adaptation_of_Programming04.png

  • If a relation or macro uses a property of the selected graphic object, only the property remains in the reference, without a reference to the item:

Studio2019_Adaptation_of_Programming05.png

  1. For a relation to another graphic item, that item's icon is displayed alongside it

  2. Hovering over a macro/relation line displays a tooltip with the full name and location of the object.

Studio2019_Adaptation_of_Programming06.png

Instructions : sending commands and displaying data >>>.

IMAGES. Interface-object and image gallery​

The gallery stores images and objects available for use in the interface.

Studio2019_SidePanel_Gallery.png

The gallery can store:

  1. Simple images as objects with 1 state,
  2. Buttons with two states,
  3. Animated buttons,
  4. Levels with two states,
  5. Levels with multiple states,
  6. Groups of graphic items,
  7. Project pages and windows.

The gallery contains these sections:

  1. Backgrounds - iOS- or Android-style backgrounds;
  2. Examples of items - example graphic items (buttons, levels, trigger buttons, and others);
  3. Examples of templates - item sets (templates) for controlling lighting, climate equipment, security systems, and more;
  4. Icons - font icons and png icons. A font icon is a text-field character rendered as an image through a specially designed font. Font icons can be enlarged without losing image quality. They are grouped in the gallery (Arrows, Battery, Blinds, and others). The png icons have 2D and 3D effects and are grouped by image resolution;
  5. Metro Style - tools for creating Metro-style interfaces. A ready-made interface example is shown below.

Metro.png

Metro Style contains these folders:

  • 1 Ready interfaces - ready-made interface examples,
  • 2 Icons - interface icons,
  • 3 Templates - button, page, and popup templates,
  • 4 Screensavers - a screensaver example.
  1. iOS White Style - tools for creating iOS White-style interfaces. A ready-made interface example is shown below.

IOSWhiteStyle.png

iOS White Style contains these folders:

  • 1 Ready interfaces - ready-made interface examples,
  • 2 Icons - interface icons,
  • 3 Templates - button, page, and popup templates.
  1. iOS Black Style - tools for creating iOS Black-style interfaces. A ready-made interface example is shown below.

IOSBlackStyle.png

iOS Black Style contains these folders:

  • 1 Ready interfaces - ready-made interface examples,
  • 2 Icons - interface icons,
  • 3 Templates - button, page, and popup templates.

CAMERAS. IP-camera library​

The camera library stores IP-camera video-stream links available for use in the interface.

Cameras1.png

View modes:

  1. Gallery cameras - shared library of typical links for popular IP-camera models. Add your own links to the library.
  2. Project cameras - IP-camera links added to the visualization interface. Remove unused links from the project with Unused resources on the editor's upper toolbar, under Images.

Configuring an IP-camera video-stream link >>>

SOUNDS. Audio-file library​

The audio-file library stores sounds for interface playback. Double-click a sound in the gallery to listen to it.

Studio2019_SidePanel_Sounds.png

Supported audio formats:

  • mp3 (constant and variable bitrates)
  • wav with these codecs:
    • PCM (8- or 16-bit depth, sampling rate from 8 to 96 kHz)
    • IMA ADPCM (8- or 16-bit depth, sampling rate from 8 to 96 kHz)
    • MS ADPCM (8- or 16-bit depth, sampling rate from 8 to 96 kHz)
    • GSM (8 kHz sampling rate, 16-bit depth)
    • MS GSM (8 kHz sampling rate, 16-bit depth)
    • mu-Law (8 kHz sampling rate, 16-bit depth)
    • A-Law (8 kHz sampling rate, 16-bit depth)
    • OGG

RESOURCES. Project resources​

Project resources are all images, sounds, fonts, and animations used in the project.

Resources.png

Images​

Images used in the project.

Res_Images.png

Res Add.png - add an image,

Res Delete.png - delete the selected image,

Res Clear.png - remove unused images from the project gallery.

Note
  • When importing an SVG, an image-size settings window appears. Enable proportional scaling to resize the image while preserving its original proportions:

SVG.png

Sounds​

Audio files used in the project.

Res_Sounds.png

Res Add.png - add an audio file.

Res Delete.png - delete the selected audio file.

Res Delete.png - play the selected audio file

Res Clear.png - stop sound playback.

Res Clear.png - remove unused audio files from the project gallery.

Context menu:

Sounds1.png

  • Add audio file - upload an audio file from the device; supported formats are described under Sounds;
  • Rename - rename an audio file;
  • Delete - delete an audio file;
  • Show usage - show all links between the audio file and graphic items;
  • Export Sounds To Global Gallery - export all project sounds to the global gallery (Sounds). To transfer one audio file, drag it from Resources to Sounds;
  • Copy / Paste - copy and paste an audio file between projects.

Fonts​

Fonts used in the project.

Res_Fonts.png

Adding your own fonts to Studio​

Note
  • iRidi Studio supports only ttf, ttc, and otf fonts.
  1. Add the font file to \iRidium pro documents\Studio\Gallery2019\Fonts under the user's Documents folder (C:\Users\UserName\Documents).

C:\Users\UserName\Documents\iRidium pro documents\Studio\Gallery2019\Fonts

Fonts2.png

  1. Select the added font from the font list:

Fonts3.png

Animation​

Create a set of animation effects for your interface and bind them to popups in Animation:

Studio2019_SidePanel_Animation.png

Effect settings:

Studio2019_SidePanel_Animation_1.png

  • Type - popup animation method
    • Fade - changes the popup's opacity
    • Rotate - moves the popup by rotating it around its central axis
      • Angle - popup rotation angle at the start of movement
    • Slide - moves the popup along a straight path
        • Type of appearance - popup movement direction and starting point (from beyond its edge or from behind itself)
    • Scale - increases or decreases the popup's X and Y coordinates from zero to their specified values
      • X scale - horizontal popup scaling factor at the start of movement
      • Y scale - vertical popup scaling factor at the start of movement
    • TV Scan - reveals the popup by changing its Y coordinate from zero to its specified value
  • Duration (ms) - effect duration
  • Delay (ms) - delay before the effect starts
  • Tweener - determines the popup's movement speed and path