Argon Viewer Step¶
The Argon Viewer Step is part of the software that is used in the collection of tools used for mapping data to scaffolds.
This project is under active development.
The Argon Viewer Step is a general purpose visualization tool helps display and manage Zinc scenes. It’s highly relied on Zinc Widgets library, also can be seen as a combination of a group of Zinc Widgets.
The input of Argon Viewer Step is a Zinc library compatible EX file, or an Argon file. The output of this tool is an Argon file which can be used to generate WebGL files for visualization.
This document describes how to set up and use the Argon Viewer user interface in Mapping Tools. The reading and writing process of argon document is managed by the underlying argon library, together with the Zinc library which handles model representation and computation.
As shown in Fig. 40, the Argon Viewer Step uses 1 inputs on the left:
A File Chooser to read from a Zinc library compatible EX files or an argon file.
It produces 1 output which may be piped to other workflow steps:
An argon structure JSON file, can be used to generate WebGL files for visualization.
Whether you use the output in a further workflow step or not, on completion of the workflow step the output is written to a file in the workflow folder under the same name as the step with extension “-backup-document.json”.
This Argon Viewer is a bundle of Zinc Weights.
Material Editor Weight;
Model Sources Weight;
Time Editor Weight;
Tessellation Editor Weight;
Spectrum Editor Weight;
Scene Editor Weight;
Sceneviewer Editor Weight;
Field Editor Weight;
Region Editor Weight.
The details of these weight can be found at Zinc Weights Documentation.
python >= 3.6
mapclient >= 0.16
opencmiss.zinc >= 3.6
opencmiss.zincwidgets >= 2.0
opencmiss.argon >= 0.3
This Argon Viewer can be installed from PyPi.org with the following command:
pip install mapclientplugins.argonviewerstep
To illustrate the use of Argon Viewer Step we will use a multi view example workflow (download zip) which uses basic graphic shapes data. The main input file of Argon Viewer Step in this workflow is multi_scene.argon, with multiple model sources sphere.exf, tube.exf, cube.exf, bifurcation.exf and heart.exfile. The output of the Argon Viewer Step is the argon_viewer-backup-document.json, which also is the input of Argon Scene Expoter Step after it. This final output of this workflow are WebGL files in the webGLOutput folder.
Fig. 41 shows the Argon Viewer user interface just after loading.
The Weights tabs on the top lists the zinc weights can be used. In the middle of the user interface is a tab widget contains views. Argon Viewer allows users to create multiple views and each view can have different number of sceneviewer widget. By clicking the Add View button in the middle or the green plus button on the top right, a Scene Layout Chooser Dialog will pop out letting user to select layout for the view.
Fig. 42 shows the Scene Layout Chooser Dialog, which can select the number of sceneviewer widget in the view.
There are two types of layout can be selected. One full layout with only one sceneviewer widget for single view, and a grid layout with four small sceneviewer widget for multiple views.
Fig. 43 shows the Argon Viewer Step user interface with single sceneviewer.
Single View is for user to focus scenes from one region. In the middle is the sceneviewer weight, and all other widgets around it are dockable.
Fig. 44 shows the Argon Viewer Step user interface with multiple views.
Argon Viewer allows user to view multiple scenes at the same time. There will be a purple border instruct which sceneviewer is choosen, and other widgets such as Scene Editor widget and Sceneviewer Editor widget shows the infomation of the choosen sceneviewer. The content of choosen sceneviewer can be edited by selecting regions in the Sceneviewer Editor widget, so user can view scenes from different regions or view the graph through different angle at the same time.
Clicking Done saves the settings into an argon file then moving to the next workflow step.