ParaQ:API: Difference between revisions
(→Design) |
|||
Line 24: | Line 24: | ||
|} | |} | ||
= | =The SM API= | ||
The | The Server Manager API contains these basic components: | ||
* Proxy | |||
* Property | |||
* Domain | |||
* Data | |||
* | |||
* | |||
* | |||
* | |||
=Assumptions= | =Assumptions= |
Revision as of 17:30, 21 October 2005
Overview
We need to establish the architecture for how the GUI code interacts with the Server Manager.
Goals
The goals of designing this architecture are:
- Establish a general method for how the GUI talks to the Server Manager.
- Provide a way for the GUI to update correctly if a scripting client is modifying the server.
- Be designed to minimize traffic with the server.
- Decouple GUI from Server Manager to allow using of Qt Designer.
- To provide functionality such that multiple inheritance of VTK & Qt objects is not necessary (toolkits have different object management schemes).
- Allow GUI to control behavior. Meaning, Server Manager or API doesn't impose behavior on the GUI.
Use Cases
Histogram Use case: |
The SM API
The Server Manager API contains these basic components:
- Proxy
- Property
- Domain
- Data
Assumptions
It is assumed that Compound Filters, Linked Views, and Histogram Data will be implemented in the Server Manager and the GUI can use the aforementioned events to get updated when those change.
Implementation Details
The Event Relay will contain Qt signals that Qt objects in the GUI can connect to. The signal signatures will be Qt friendly. For example, a property changed signal will have parameters of which property of an object changed and what the value of the property is. The Event Relay will translate events if necessary into a form the GUI would like. For example, if the Server Manager sends an event about object connections, the Event Relay will change that into an object input/output connection signal. In other words, Server Manager level events will be translated to object level events. The vtkEventQtSlotConnect class will be used by the Event Relay. It contains a generic signal signature to connect to. The Event Relay will change the parameters into ParaQ frirendly parameters.