Skip to content

Commit bb14bba

Browse files
committed
deploy: d1f7b25
1 parent af623b8 commit bb14bba

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pull/127/index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

pull/127/tutorials/basicmechanisms/macromodules/globalmacromodules/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
]</i> menu.</p></li><li><p>Tick the box <em>Add reference to example network</em> to directly create the template for an example network for your macro module.</p></li><li><p>Select the package you like to store the module in. We choose the
4747
package we created <a href=./tutorials/basicmechanisms/macromodules/package/>before</a>. Your module is saved in an .mlab format
4848
and can be found in
49-
<em>\MyPackageGroup\General\Modules\Macros\MyProject</em>.</p></li></ol><svg style="display:none"><symbol id="check-fill" fill="currentColor" viewBox="0 0 16 16"><path d="M16 8A8 8 0 110 8a8 8 0 0116 0zm-3.97-3.03a.75.75.0 00-1.08.022L7.477 9.417 5.384 7.323a.75.75.0 00-1.06 1.06L6.97 11.03a.75.75.0 001.079-.02l3.992-4.99a.75.75.0 00-.01-1.05z"/></symbol><symbol id="info-fill" fill="currentColor" viewBox="0 0 16 16"><path d="M8 16A8 8 0 108 0a8 8 0 000 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194.0.487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703.0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 110-2 1 1 0 010 2z"/></symbol><symbol id="warning-fill" fill="currentColor" viewBox="0 0 16 16"><path d="M8.982 1.566a1.13 1.13.0 00-1.96.0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889.0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535.0.954.462.9.995l-.35 3.507a.552.552.0 01-1.1.0L7.1 5.995A.905.905.0 018 5zm.002 6a1 1 0 110 2 1 1 0 010-2z"/></symbol><symbol id="danger-fill" fill="currentColor" viewBox="0 0 16 16"><path d="M8.982 1.566a1.13 1.13.0 00-1.96.0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889.0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535.0.954.462.9.995l-.35 3.507a.552.552.0 01-1.1.0L7.1 5.995A.905.905.0 018 5zm.002 6a1 1 0 110 2 1 1 0 010-2z"/></symbol></svg><div class="alert alert-primary alert-info d-flex align-items-center" role=alert><svg class="bi flex-shrink-0 me-2" width="24" height="24" role="img" aria-label="Info:"><use xlink:href="#info-fill"/></svg><div><b>Info:&nbsp;</b><p>Make sure to chose <em>Directory Structure</em> as <em>self-contained</em>. This makes sure that all files of your module are stored in a single directory.</p><p>Also keep in mind that Python files are only created automatically if selected in the Project Wizard. Converting a local macro to a global macro does NOT create a Python file automatically.</p></div></div><p><p class=page-image><a data-modal=bs-lightbox href=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/GUI_04.png title="Create global macro module"><img id="Create global macro module" class="img-fluid rounded" src=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/GUI_04.png alt="Create global macro module" title="Create global macro module"></a><figcaption class=figure-caption>Create global macro module</figcaption></p></p><h3 id=use-the-project-wizard-to-create-global-macro-modules>Use the Project Wizard to create global macro modules</h3><p>Instead of converting a local macro module into a global macro module, you can also use the <em>Project Wizard</em> to create new macro modules. Open the Project Wizard via <i>[
49+
<em>\MyPackageGroup\General\Modules\Macros\MyProject</em>.</p></li></ol><svg style="display:none"><symbol id="check-fill" fill="currentColor" viewBox="0 0 16 16"><path d="M16 8A8 8 0 110 8a8 8 0 0116 0zm-3.97-3.03a.75.75.0 00-1.08.022L7.477 9.417 5.384 7.323a.75.75.0 00-1.06 1.06L6.97 11.03a.75.75.0 001.079-.02l3.992-4.99a.75.75.0 00-.01-1.05z"/></symbol><symbol id="info-fill" fill="currentColor" viewBox="0 0 16 16"><path d="M8 16A8 8 0 108 0a8 8 0 000 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194.0.487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703.0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 110-2 1 1 0 010 2z"/></symbol><symbol id="warning-fill" fill="currentColor" viewBox="0 0 16 16"><path d="M8.982 1.566a1.13 1.13.0 00-1.96.0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889.0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535.0.954.462.9.995l-.35 3.507a.552.552.0 01-1.1.0L7.1 5.995A.905.905.0 018 5zm.002 6a1 1 0 110 2 1 1 0 010-2z"/></symbol><symbol id="danger-fill" fill="currentColor" viewBox="0 0 16 16"><path d="M8.982 1.566a1.13 1.13.0 00-1.96.0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889.0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535.0.954.462.9.995l-.35 3.507a.552.552.0 01-1.1.0L7.1 5.995A.905.905.0 018 5zm.002 6a1 1 0 110 2 1 1 0 010-2z"/></symbol></svg><div class="alert alert-primary alert-info d-flex align-items-center" role=alert><svg class="bi flex-shrink-0 me-2" width="24" height="24" role="img" aria-label="Info:"><use xlink:href="#info-fill"/></svg><div><b>Info:&nbsp;</b><p>If you are working with MeVisLab versions before 5.0, make sure to chose <em>Directory Structure</em> as <em>self-contained</em>. This makes sure that all files of your module are stored in a single directory. Later versions always use <em>self-contained</em>.</p><p>Also keep in mind that Python files are only created automatically if selected in the Project Wizard. Converting a local macro to a global macro does NOT create a Python file automatically.</p></div></div><p><p class=page-image><a data-modal=bs-lightbox href=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/GUI_04.png title="Create global macro module"><img id="Create global macro module" class="img-fluid rounded" src=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/GUI_04.png alt="Create global macro module" title="Create global macro module"></a><figcaption class=figure-caption>Create global macro module</figcaption></p></p><h3 id=use-the-project-wizard-to-create-global-macro-modules>Use the Project Wizard to create global macro modules</h3><p>Instead of converting a local macro module into a global macro module, you can also use the <em>Project Wizard</em> to create new macro modules. Open the Project Wizard via <i>[
5050
File
5151
&rarr;
5252
Run Project Wizard ...

pull/127/tutorials/basicmechanisms/macromodules/scriptingexample2/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
&rarr;
3939
Run Project Wizard
4040
]</i>. Select
41-
<em>Macro module</em> and press <em>Run</em>.</p><p>Now, you have to edit:</p><ol><li>Name: The name of your module</li><li>Package: Select the package you like to save the macro module in.</li><li>Directory Structure: Change to <em>Self-contained</em></li><li>Project: Select you project name</li></ol><p>Press <em>Next</em> and edit the following:</p><ol><li>Copy existing network: Select the example network</li><li>Check the box: Add Python file</li></ol><p>Now, create your macro module and reload MeVisLab. You can find your module via search in MeVisLab.</p><p><p class=page-image><a data-modal=bs-lightbox href=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/CreatingMacroModule.png title="Creating macro module"><img id="Creating macro module" class="img-fluid rounded" src=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/CreatingMacroModule.png alt="Creating macro module" title="Creating macro module"></a><figcaption class=figure-caption>Creating macro module</figcaption></p></p><p><p class=page-image><a data-modal=bs-lightbox href=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/EnablePythonScripting.png title="Enable Python scripting"><img id="Enable Python scripting" class="img-fluid rounded" src=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/EnablePythonScripting.png alt="Enable Python scripting" title="Enable Python scripting"></a><figcaption class=figure-caption>Enable Python scripting</figcaption></p></p><p>To design a panel and create a user interface for the macro module, open the <em>*.script</em> file. You can see, that a Command environment exist, which defines the python file as source for all commands.</p><p><p class=page-image><a data-modal=bs-lightbox href=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/OpenScriptFile.png title="Open the script file"><img id="Open the script file" class="img-fluid rounded" src=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/OpenScriptFile.png alt="Open the script file" title="Open the script file"></a><figcaption class=figure-caption>Open the script file</figcaption></p></p><p><p class=page-image><a data-modal=bs-lightbox href=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/ScriptFile.png title="Script file"><img id="Script file" class="img-fluid rounded" src=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/ScriptFile.png alt="Script file" title="Script file"></a><figcaption class=figure-caption>Script file</figcaption></p></p><h3 id=creating-a-panel-with-tabs-and-viewers>Creating a panel with tabs and viewers</h3><p>At first, we create a
41+
<em>Macro module</em> and press <em>Run</em>.</p><p>Now, you have to edit:</p><ol><li>Name: The name of your module</li><li>Package: Select the package you like to save the macro module in.</li><li>Directory Structure: Change to <em>Self-contained</em> (this setting is only available in MeVisLab versions before 5.0.0, later versions always use <em>self-contained</em>)</li><li>Project: Select you project name</li></ol><p>Press <em>Next</em> and edit the following:</p><ol><li>Copy existing network: Select the example network</li><li>Check the box: Add Python file</li></ol><p>Now, create your macro module and reload MeVisLab. You can find your module via search in MeVisLab.</p><p><p class=page-image><a data-modal=bs-lightbox href=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/CreatingMacroModule.png title="Creating macro module"><img id="Creating macro module" class="img-fluid rounded" src=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/CreatingMacroModule.png alt="Creating macro module" title="Creating macro module"></a><figcaption class=figure-caption>Creating macro module</figcaption></p></p><p><p class=page-image><a data-modal=bs-lightbox href=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/EnablePythonScripting.png title="Enable Python scripting"><img id="Enable Python scripting" class="img-fluid rounded" src=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/EnablePythonScripting.png alt="Enable Python scripting" title="Enable Python scripting"></a><figcaption class=figure-caption>Enable Python scripting</figcaption></p></p><p>To design a panel and create a user interface for the macro module, open the <em>*.script</em> file. You can see, that a Command environment exist, which defines the python file as source for all commands.</p><p><p class=page-image><a data-modal=bs-lightbox href=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/OpenScriptFile.png title="Open the script file"><img id="Open the script file" class="img-fluid rounded" src=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/OpenScriptFile.png alt="Open the script file" title="Open the script file"></a><figcaption class=figure-caption>Open the script file</figcaption></p></p><p><p class=page-image><a data-modal=bs-lightbox href=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/ScriptFile.png title="Script file"><img id="Script file" class="img-fluid rounded" src=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/ScriptFile.png alt="Script file" title="Script file"></a><figcaption class=figure-caption>Script file</figcaption></p></p><h3 id=creating-a-panel-with-tabs-and-viewers>Creating a panel with tabs and viewers</h3><p>At first, we create a
4242
<a href=https://mevislabdownloads.mevis.de/docs/current/MeVisLab/Resources/Documentation/Publish/SDK/MDLReference/index.html#mdl_Window target=_blank>Window</a>
4343
with two
4444
<a href=https://mevislabdownloads.mevis.de/docs/current/MeVisLab/Resources/Documentation/Publish/SDK/MDLReference/index.html##mdl_TabView target=_blank>Tabs</a>

0 commit comments

Comments
 (0)