You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mevislab.github.io/content/examples/basic_mechanisms/macro_modules_and_module_interaction/example2/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ This example shows how to create module interactions via Python scripting.
10
10
## Summary
11
11
A new macro module `IsoCSOs` is created providing two viewers in its internal network, `View2D` and `SoExaminerViewer`. Both viewers are included in the panel of the module.
12
12
13
-
To showcase how Python functions can be implemented in MeVisLab and called from within a module, additional buttons to browse directories, and create contours via the `CSOIsoGenerator` are added. Lastly, a field listener is implemented reacting to field changes by colorizing contours when the user hovers over them with the mouse.
13
+
To showcase how Python functions can be implemented in MeVisLab and called from within a module, additional buttons to browse directories and create contours via the `CSOIsoGenerator` are added. Lastly, a field listener is implemented reacting to field changes by colorizing contours when the user hovers over them with the mouse.
Placing an object into the Open Inventor scene of the `SoExaminerViewer`, in this case a `SoCube` with *width*, *height*, and *depth* of 10, places the object to the origin of the world coordinate system.
45
+
Placing an object into the Open Inventor Scene of the `SoExaminerViewer`, in this case a `SoCube` with *width*, *height*, and *depth* of 10, places the object to the origin of the world coordinate system.
46
46
47
47

Copy file name to clipboardExpand all lines: mevislab.github.io/content/tutorials/basicmechanisms/coordinatesystems/coordinatesystems2.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ World coordinates also refer to the patient axes. They are:
24
24
25
25

26
26
27
-
The Digital Imaging and Communications in Medicine (DICOM) standard defines a data format that groups information into data sets. This way, the image data is always kept together with all meta information like patient ID, study time, series time, acquisition data, etc. The image slice is represented by another tag with pixel information.
27
+
The DICOM (Digital Imaging and Communications in Medicine) standard defines a data format that groups information into data sets. This way, the image data is always kept together with all meta information like patient ID, study time, series time, acquisition data, etc. The image slice is represented by another tag with pixel information.
28
28
29
29
DICOM tags have unique numbers, encoded as two 16-bit numbers, usually shown in hexadecimal notation as two four-digit numbers (xxxx,xxxx). These numbers are the data group number and the data element number.
Copy file name to clipboardExpand all lines: mevislab.github.io/content/tutorials/basicmechanisms/macromodules/guidesign.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ To add and edit a panel, open the context menu and select {{< menuitem "Related
42
42
43
43
### Module Interface
44
44
By default, the *.script* file contains the {{< docuLinks "/Resources/Documentation/Publish/SDK/MDLReference/index.html#mdl_Interface" "interface" >}} of the module.
45
-
In the interface section (everything inside the curled brackets behind the name *Interface*) you can define the module inputs, the module outputs, and also all module fields (or *Parameters*).
45
+
In the interface section (everything insight the curled brackets behind the name *Interface*) you can define the module inputs, the module outputs, and also all module fields (or *Parameters*).
46
46
47
47
[//]: <>(MVL-653)
48
48
{{< highlight filename="Filter.script" >}}
@@ -288,7 +288,7 @@ Commands {
288
288
{{</highlight>}}
289
289
290
290
{{<alertclass="info"caption="Infos">}}
291
-
The section *Source* should already be available and generated automatically in the case you enable the Wizard to add a Python file to your module.
291
+
The section *Source* should already be available and generated automatically in case you enable the Wizard to add a Python file to your module.
Copy file name to clipboardExpand all lines: mevislab.github.io/content/tutorials/basicmechanisms/macromodules/helpfiles.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ Depending on the way the macro module was created, more or less features are aut
69
69
{{</alert>}}
70
70
71
71
### Creation of an Example Network
72
-
To add an example network to your module, you need to add a reference to the respective *.mlab* file to the module definition file (.def). Open the file *Filter.def*. You can find the line *exampleNetwork = "$(LOCAL)/networks/FilterExample.mlab"*, which defines the reference to the *.mlab* file containing the example network. By default, the name of the example network is *ModulenameExample.mlab*. An *.mlab* file containing only the module *Filter* is created inside the folder *networks*.
72
+
To add an example network to your module, you need to add a reference to the respective *.mlab* file to the module definition file (*.def*). Open the file *Filter.def*. You can find the line *exampleNetwork = "$(LOCAL)/networks/FilterExample.mlab"*, which defines the reference to the *.mlab* file containing the example network. By default, the name of the example network is *ModulenameExample.mlab*. An *.mlab* file containing only the module *Filter* is created inside the folder *networks*.
73
73
74
74
It is possible that the reference to the example network or the file *FilterExample.mlab* is missing. One reason could be that its creation was not selected when creating the macro module. In this case, add the reference and the file manually.
75
75
@@ -81,8 +81,8 @@ To create the example network, open the file *FilterExample.mlab* in MeVisLab an
81
81
82
82
83
83
## Summary
84
-
* {{< docuLinks "/Resources/Documentation/Publish/SDK/MeVisLabManual/ch26.html" "MeVisLab MATE">}} is a built-in text editor that can be used to create module help files and module panels, or to create module interactions via Python scripting.
85
-
* You can create help files via the module context menu using MeVisLab's MATE.
86
-
* You can add an example network to your macro module via the *.def* file.
84
+
* {{< docuLinks "/Resources/Documentation/Publish/SDK/MeVisLabManual/ch26.html" "MeVisLab MATE">}} is a built-in text editor which can be used to create module help files, module panels or to create module interactionss via Python scripting.
85
+
* You can create help files via the module context menu using MeVisLab Mate.
86
+
* You can add an example network to your macro module via the .def file.
Copy file name to clipboardExpand all lines: mevislab.github.io/content/tutorials/basicmechanisms/macromodules/pythonscripting.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,10 +83,10 @@ The module `RunPythonScript` allows to execute Python scripts from within a MeVi
83
83
84
84
#### Module Interactions via Python Scripting
85
85
86
-
You can reference to a Python function inside a *.script* file of a macro module. With this, you can, for example, execute a Python function whenever you open a panel, or define the action that is executed when pressing a button or specify the command triggered by a [field listener](tutorials/basicmechanisms/macromodules/scriptingexample2). An example for module interactions via Python scripting is given in the same example.
86
+
You can reference to a Python function inside a *.script* file of a macro module. With this, you can, for example, execute a Python function, whenever you open a panel, define the action that is executed when pressing a button or specify the command triggered by a [field listener](tutorials/basicmechanisms/macromodules/scriptingexample2). An example for module interactions via Python scripting is given in the same example.
87
87
88
88
#### Python Scripting in Network Files (*.mlab*)
89
-
If you do not want to create a macro module, you can also execute Python scripts in a network file (*.mlab*). Save your network using a defined name, for example, *mytest.mlab*. Then create a *.script* and a *.py* file in the same directory, using the same names (*mytest.script* and *mytest.py*).
89
+
If you do not want to create a macro module, you can also execute Python scripts in a network file (*.mlab*). Save your network using a defined name, for example, *mytest.mlab*. Then, create a *.script* and a *.py* file in the same directory, using the same names (*mytest.script* and *mytest.py*).
90
90
91
91
Open the *.script* file and add a *Commands* section defining the name of the Python file.
To design a panel and create a user interface for the macro module, open the *.script* file. You can see that a *Commands*environment exist, which defines the Python file as source for all commands.
45
+
To design a panel and create a user interface for the macro module, open the *.script* file. You can see that a *Commands*section exists, which defines the Python file as source for all commands.
46
46
47
47

48
48
@@ -139,7 +139,7 @@ Window {
139
139
140
140

141
141
142
-
### Add Buttons to Your Panel
142
+
### Add Buttons to your Panel
143
143
144
144
As a next step, we like to add a *Browse\...* button, like in the module
145
145
`LocalImage`, and also a button to create the CSOs.
@@ -237,7 +237,7 @@ can do this in the following way:
2. Enable a functionality that allows us to notice the ID of the CSO we are currently hovering over with our mouse. For this, open the internal network of our macro module. We will use the module `SoView2DCSOExtensibleEditor`. Open its panel and select the tab *Advanced*. You can check a box to enable *Update CSO id under mouse*. If you now hover over a CSO, you can see its ID in the panel. We can save the internal network to save this functionality, but we can also solve our problem via scripting. The Scripting Assistant translated our action into code that we can use.
240
+
2. Enable a functionality that allows us to notice the id of the CSO we are currently hovering over with our mouse. For this, open the internal network of our macro module. We will use the module `SoView2DCSOExtensibleEditor`. Open its panel and select the tab *Advanced*. You can check a box to enable *Update CSO id under mouse*. If you now hover over a CSO, you can see its ID in the panel. We can save the internal network to save this functionality, but we can also solve our problem via scripting. The Scripting Assistant translated our action into code that we can use.
241
241
242
242

Opening the three `View2D` module panels now shows the image data in three orthogonal views. The module `OrthoReformat3` transforms the input image (by rotating and/or flipping) into the three main views commonly used.
32
+
Opening the three `View2D` module panels now shows the data in three orthogonal views. The module `OrthoReformat3` transforms the input image (by rotating and/or flipping) into the three main views commonly used.
33
33
34
34

0 commit comments