RFXCOM RFXtrx433 Especificaciones Pagina 67

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 95
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 66
Chapter 4. Implementation 60
Figure 4.20.: The receiver dialog on the left and the transmitter dialog on the right.
4.5.2. Visualization Menu
The visualization menu is a class for displaying the database of the device manager to provide a
quick overview of the connections between devices and their state. Devices are listed in a simple
tree model, which allows a clear and easily understandable structure and prevents overlapping
connection arrows in more complex HA systems. There are two different viewing modes, the
transmitter and receiver view. When selecting the receiver view, the left column will contain
all receivers and the right column will display every connected transmitter for each receiver.
Transmitter view is just the opposite. As a result, the right column can contain multiple entries of
the same device. Furthermore, the visualization menu offers functions for controlling devices and
for user convenience. Each entry can be selected and its information is displayed in the information
box and enable or disable actions in the action box. In order to make large databases easier to
manage, a zoom slider allows zooming in and out and a search bar with auto completion helps
find a certain entry.
The internal structure is composed of several GUI elements, functions and the core, which is
shown in figure 4.22 on page 62. The basis of the core is the QGraphicsScene class, a container
for managing large amounts of 2D elements. During start-up or changes in the database, it is filled
with receiver and sender items, which are custom graphic classes for rendering. They contain the
name, the state and the type of a device as well as information for drawing them. Consequently,
actions such as clicking a device to display its information in the information bar, repainting them
during an update or switching them on an off, causes the visualization menu to access the database
and collect additional information. Above all, a complete redraw, for example when alternating
between sender and receiver view, will lead to a high number of database accesses. For this
Vista de pagina 66
1 2 ... 62 63 64 65 66 67 68 69 70 71 72 ... 94 95

Comentarios a estos manuales

Sin comentarios