YACS GUI components¶
The Object Browser is a reusable SALOME GUI component. All schemas created or imported during working session will be referenced in it.
The SALOME Object Browser is only used to publish the run of the schema as a whole, i.e. just a name for the run, and under this name, the outputs of the run that are published in study for the use of other SALOME modules.
SALOME Object Browser tab
The Object Browser is in a tab, with tree_view: see the Main window.
YACS data structure is represented in a dedicated tree view using tree-like style.
The dedicated tree view shows only one schema during edition, and only one run of a schema during execution. The informations displayed during edition and execution are not the same, and the specific actions (popup menu) on the items in the tree are also different. So, it is needed to distinguish the Run mode of the Tree View and the Edition mode of the Tree View.
Edition mode of the Tree View¶
The proposed YACS tree view organization in edition mode is shown on figure below.
The content of schema tree view in edition mode is updated automatically after each operation that affects the list of objects displayed in it. Each object presented in the edition tree view has its own icon to distinguish types of objects (in particular, it is important for types of nodes or links).
With help of edition tree view user can interact with objects using context dependent popup menu (see Activate context popup menu section). For example, commands such as “Display”, “Erase”, “Delete”, etc. are accessible from that menu.
The description of each object type is given in the table below.
|Schema_Name [note]||A schema object, which has the same name as a name of loaded XML file of a graph, or ‘Schema1’, ‘Schema2’, etc. if this is a new created schema. The corresponding object is published as SObject in Object Browser for normal operation of SALOMEDS study persistence. The study persistence consists in saving the xml file of the schema. The list of nodes included into the edited schema is represented.|
|Types||A folder under which a list of data types defined in the schema is represented.|
|Block_Name [note]||A block node object. This object is published as a label under the schema/another composed node object in which it includes. A block node object is created when the corresponding schema object containing this block node is imported or a new block node is created inside this schema.|
|Loop_Name [note]||A loop node object. This object is published as a label under the schema/another composed node object in which it includes. A loop node object is created when the corresponding schema object containing this loop node is imported or a new loop node is created inside this schema.|
|Switch_Name [note]||A switch node object. This object is published as a label under the schema/another composed node object in which it includes. A switch node object is created when the corresponding schema object containing this switch node is imported or a new switch node is created inside this schema.|
|Node_Name [note]||An elementary node object. This object is published as a label under the schema or composed node object in which it includes. An elementary node object is created when the corresponding schema object containing this node is imported or a new elementary node is created inside this schema.|
|Input_Port_Name||An input port object. It is published in the edition tree view under the node which is belong to.|
|Output_Port_Name||An output port object. It is published in the edition tree view under the node which is belong to.|
Links, containers and components table.
|Links||A folder under which links are published. Links internal to a block (composed node) are represented under the block. Three kinds of links (control, dataflow, datastream) can be put directly into the ‘Links’ folder under the block if they exist. NB! A link is called internal to a block if it has its input and output on nodes inside the block. These concept and representation is convenient for cut and paste operations of block.|
|Node_From –>> Node_To||A control link object with a symbolic name. This object is published as a label under the corresponding ‘Links’ folder.|
|Node.Port_From -> Node.Port_To||A data link object with a symbolic name. This object is published as a label under the corresponding ‘Links’ folder.|
|Node.Port_From -> Node.Port_To||A datastream link object with a symbolic name. This object is published as a label under the corresponding ‘Links’ folder.|
|Containers||A folder under which a set of containers referenced from the currently edited schema is represented.|
|Container_Name [note]||A container definition (not instanciated during the edition). This object is published as a label under Containers parent object, and gives access by the corresponding property page to its properties (cf. SALOME life cycle CORBA & Container manager).|
|SALOME_Component_Name [note]||A SALOME component instance definition (not instanciated during the edition). This object is published as a label under the container definition in which it includes.|
|*Node_Name||A reference to the service node published above. This object is published under the component object from which its service is taken.|
The selection of an object in the Tree View displays its properties in the corresponding page of the Input Panel.
Run mode of the Tree View¶
The run tree view shows the nodes and their hierarchy in the schema (same as in edition mode). Only the nodes are shown, with their current state of execution. The current execution state is updated by notification from execution engine.
There are three modes which are available in the run mode of the schema. They are the following.
- Without stop mode. This is the simplest mode when the user don’t influence on the execution flow of the schema.
- Breakpoints mode. Before/during the execution of the schema it is possible to set breakpoints using checkboxes, but only on elementary nodes. In such a case the execution will be paused when checked node(s) will be ready to start.
- Step by step mode. The execution of the schema is processed by steps, from one node to another, and paused after each subtask.
The user can display a presentation of the schema in the 2D Viewer based on the Qt drawing capabilities. The high-level 2D Viewer classes from SALOME GUI QxGraph package are used for this purpose. QxGraph classes also support interactive selection/hilighting in 2D View with the mouse.
The 2D Viewer has its own View Operations toolbar, which contains buttons for the following operations:
- Fit All,
- Fit Area,
- Global Panning,
The properties of each object type, such as container, component, schema, node and link, are displayed within the Input Panel placed in the right part of the desktop.
The Input Panel is a dock window and consists of the several property pages. Each property page allows seeing or modifying the properties of the object with the certain type (see Edit an object section). The user can see property pages of the several types of objects at the same time (for example, property page for a service node and for a container). The selection of an object either in the Tree View or 2D Viewer will display its property page in the Input Panel.
The content of Input Panels’ property pages in edition mode of the schema is differ from the same one in run mode. There are more possibilities to edit objects’ properties with help of Input Panel in edition mode than in run mode.
As an example, there are two property pages for inline script node on the pictures below: the first corresponds to the edition mode, and the second - to the run mode.
Node property page in edition mode
Node property page in run mode
Catalogs Tree View¶
The Catalog tree give acces to data types and node types from several catalogs. By default, the Builtin Catalog, the Session Catalog and the Preference Catalog are available. Builtin Catalog provides standard data types, standard elementary node types and all the Composed Nodes types. Session Catalog is built with all the Module Catalogs defined in the current SALOME Session. Preference Catalog is defined in the preferences. Any existing YACS schema file can be imported as a catalog, to allow reutilization of data types or component definition.
Catalog Tree View