Skip to content

Commit 984fcb8

Browse files
author
Heckmann
committed
Replaced usage of True to Yes in scripts
1 parent afacac3 commit 984fcb8

File tree

7 files changed

+50
-50
lines changed

7 files changed

+50
-50
lines changed

mevislab.github.io/content/tutorials/basicmechanisms/macromodules/guidesign.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Window MyWindowName {
115115
![Module Panel](images/tutorials/basicmechanics/ModulePanel.png "Module Panel")
116116

117117
You can define different properties of your control. For a window, you can, for example, define a title, or whether the
118-
window should be shown in full screen (*fullscreen = True*).
118+
window should be shown in full screen (*fullscreen = Yes*).
119119

120120
These properties are called {{< docuLinks "/Resources/Documentation/Publish/SDK/MDLReference/#SyntaxTagsAndValues" "tags" >}} and are individually different for each control. Which tags exist for the control window can be found
121121
{{< docuLinks "/Resources/Documentation/Publish/SDK/MDLReference/index.html#mdl_Window" "here" >}}.

mevislab.github.io/content/tutorials/summary/summary3.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ The *Source Box* shall provide the possibility to select a file for loading into
8787

8888
Add a field to the *Parameters* section of your *.script* file. Name the field *openFile* and set type to *String* and internalName to *LocalImage.name*.
8989

90-
Then, add another field to your *Box* for the *Source* and use the field name from *Parameters* section, in this case *openFile*. Set *browseButton = True* and *browseMode = open* and save your script.
90+
Then, add another field to your *Box* for the *Source* and use the field name from *Parameters* section, in this case *openFile*. Set *browseButton = Yes* and *browseMode = open* and save your script.
9191

9292
{{< highlight filename="<MACRO_NAME>.script" >}}
9393
```Stan
@@ -115,7 +115,7 @@ Window {
115115
Box Source {
116116
layout = Horizontal
117117
Field openFile {
118-
browseButton = True
118+
browseButton = Yes
119119
browseMode = open
120120
}
121121
}
@@ -150,13 +150,13 @@ Set the 2D viewer's type to *SoRenderArea* and the 3D viewer's type to *SoExamin
150150
Box Viewing {
151151
layout = Horizontal
152152
Viewer View2D.self {
153-
expandX = True
154-
expandY = True
153+
expandX = Yes
154+
expandY = Yes
155155
type = SoRenderArea
156156
}
157157
Viewer SoExaminerViewer.self {
158-
expandX = True
159-
expandY = True
158+
expandX = Yes
159+
expandY = Yes
160160
type = SoExaminerViewer
161161
}
162162
}
@@ -218,15 +218,15 @@ The next elements follow the same rules; therefore, the final script will be ava
218218

219219
In order to set the transparency of the 3D image, we need another field reusing the *SoWEMRendererImage.faceAlphaValue*. Add a field *imageAlpha* to the *Parameters* section. Define *internalName = SoWEMRendererImage.faceAlphaValue*, *type = Integer*, *min = 0*, and *max = 1*.
220220

221-
Add the field to the *Settings Box* and set *step = 0.1* and *slider = True*.
221+
Add the field to the *Settings Box* and set *step = 0.1* and *slider = Yes*.
222222

223223
For the `RegionGrowing` threshold, add the field *thresholdInterval* to *Parameters* section and set *type = Integer*, *min = 1*, *max = 100*, and *internalName = RegionGrowing.autoThresholdIntervalSizeInPercent*.
224224

225-
Add the field to the *Settings* UI, and define *step = 0.1* and *slider = True*.
225+
Add the field to the *Settings* UI, and define *step = 0.1* and *slider = Yes*.
226226

227227
Define a field *isoValueImage* in the *Parameters* section and set *internalName = IsoSurfaceImage.isoValue*, *type = Integer*, *min = 1*, and *max = 1000*.
228228

229-
In the *Settings* section of the UI, set *step = 2* and *slider = True*.
229+
In the *Settings* section of the UI, set *step = 2* and *slider = Yes*.
230230

231231
{{< highlight filename="<MACRO_NAME>.script" >}}
232232
```Stan
@@ -278,20 +278,20 @@ Window {
278278
Box Source {
279279
layout = Horizontal
280280
Field openFile {
281-
browseButton = True
281+
browseButton = Yes
282282
browseMode = open
283283
}
284284
}
285285
Box Viewing {
286286
layout = Horizontal
287287
Viewer View2D.self {
288-
expandX = True
289-
expandY = True
288+
expandX = Yes
289+
expandY = Yes
290290
type = SoRenderArea
291291
}
292292
Viewer SoExaminerViewer.self {
293-
expandX = True
294-
expandY = True
293+
expandX = Yes
294+
expandY = Yes
295295
type = SoExaminerViewer
296296
}
297297
}
@@ -302,15 +302,15 @@ Window {
302302
}
303303
Field imageAlpha {
304304
step = 0.1
305-
slider = True
305+
slider = Yes
306306
}
307307
Field thresholdInterval {
308308
step = 0.1
309-
slider = True
309+
slider = Yes
310310
}
311311
Field isoValueImage {
312312
step = 2
313-
slider = True
313+
slider = Yes
314314
}
315315
}
316316
Box Info {
@@ -465,7 +465,7 @@ Commands {
465465
Box Source {
466466
layout = Horizontal
467467
Field openFile {
468-
browseButton = True
468+
browseButton = Yes
469469
browseMode = open
470470
}
471471
Field resetApplication { }
@@ -627,21 +627,21 @@ Window {
627627
Box Source {
628628
layout = Horizontal
629629
Field openFile {
630-
browseButton = True
630+
browseButton = Yes
631631
browseMode = open
632632
}
633633
Field resetApplication { }
634634
}
635635
Box Viewing {
636636
layout = Horizontal
637637
Viewer View2D.self {
638-
expandX = True
639-
expandY = True
638+
expandX = Yes
639+
expandY = Yes
640640
type = SoRenderArea
641641
}
642642
Viewer SoExaminerViewer.self {
643-
expandX = True
644-
expandY = True
643+
expandX = Yes
644+
expandY = Yes
645645
type = SoExaminerViewer
646646
}
647647
}
@@ -652,15 +652,15 @@ Window {
652652
}
653653
Field imageAlpha {
654654
step = 0.1
655-
slider = True
655+
slider = Yes
656656
}
657657
Field thresholdInterval {
658658
step = 0.1
659-
slider = True
659+
slider = Yes
660660
}
661661
Field isoValueImage {
662662
step = 2
663-
slider = True
663+
slider = Yes
664664
}
665665
Field markerPosition {}
666666
Field applyMarker {}

mevislab.github.io/content/tutorials/summary/summary8.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -211,20 +211,20 @@ Window "MainPanel" {
211211
Box Source {
212212
layout = Horizontal
213213
Field openFile {
214-
browseButton = True
214+
browseButton = Yes
215215
browseMode = open
216216
}
217217
Field resetApplication { }
218218
}
219219
Box Viewing {
220220
layout = Horizontal
221221
RemoteRendering out2D {
222-
expandX = True
223-
expandY = True
222+
expandX = Yes
223+
expandY = Yes
224224
}
225225
RemoteRendering out3D {
226-
expandX = True
227-
expandY = True
226+
expandX = Yes
227+
expandY = Yes
228228
}
229229
}
230230
Box Settings {
@@ -237,15 +237,15 @@ Window "MainPanel" {
237237
}
238238
Field imageAlpha {
239239
step = 0.1
240-
slider = True
240+
slider = Yes
241241
}
242242
Field thresholdInterval {
243243
step = 0.1
244-
slider = True
244+
slider = Yes
245245
}
246246
Field isoValueImage {
247247
step = 2
248-
slider = True
248+
slider = Yes
249249
}
250250
Field markerPosition {}
251251
Field applyMarker {}

mevislab.github.io/content/tutorials/thirdparty/MONAI/monaiexample2.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,9 +453,9 @@ Window {
453453
width = 100
454454
Category {
455455
Viewer ROISelect.scene.self {
456-
type = SoRenderArea
457-
expandX = True
458-
expandY = True
456+
type = SoRenderArea
457+
expandX = Yes
458+
expandY = Yes
459459
}
460460
}
461461
}

mevislab.github.io/content/tutorials/thirdparty/matplotlib/2Dplotting.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Window {
3434
Category {
3535
Horizontal {
3636
Vertical {
37-
expandY = True
37+
expandY = Yes
3838
expandX = False
3939
Box {
4040
title= "Single Slice"
@@ -43,18 +43,18 @@ Window {
4343
title = "Sequence"
4444
}
4545
Empty {
46-
expandY = True
46+
expandY = Yes
4747
}
4848
}
4949
Box {
5050
MatplotlibCanvas {
51-
expandY = True
52-
expandX = True
53-
name = canvas
54-
useToolBar = True
51+
expandY = Yes
52+
expandX = Yes
53+
name = canvas
54+
useToolBar = Yes
5555
}
56-
expandY = True
57-
expandX = True
56+
expandY = Yes
57+
expandX = Yes
5858
}
5959
}
6060
}

mevislab.github.io/content/tutorials/thirdparty/opencv/thirdpartyexample1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ Window {
7373
}
7474
}
7575
Horizontal {
76-
expandX = True
77-
expandY = True
76+
expandX = Yes
77+
expandY = Yes
7878
7979
Viewer View2D.self {
8080
type = SoRenderArea

mevislab.github.io/content/tutorials/thirdparty/pytorch/pytorchexample3.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ Window {
7878
}
7979
}
8080
Horizontal {
81-
expandX = True
82-
expandY = True
81+
expandX = Yes
82+
expandY = Yes
8383
8484
Viewer View2D.self {
8585
type = SoRenderArea

0 commit comments

Comments
 (0)