new LayoutSplit mainSplit
set mainSplit.Proportion 50
- set mainSplit.WinHeight 1200
- set mainSplit.WinWidth 1600
- set mainSplit.WinTitle "Processing / Viewing example (demoFiltering1-try.bbs) "
+ set mainSplit.WinHeight 1000
+ set mainSplit.WinWidth 1400
+ set mainSplit.WinTitle "Processing / Viewing example (demoFiltering1.bbs) "
new LayoutSplit splitUp
set buttonLayout.Orientation V
connect buttonLayout.Widget toolLayout.Widget2
- new ColourSelectorButton colourLower
- set colourLower.In "1 1 0"
- connect colourLower.Widget buttonLayout.Widget1
+ new ColourSelectorButton colourSmooth
+ set colourSmooth.In "1 1 0"
+ connect colourSmooth.Widget buttonLayout.Widget1
- new ColourSelectorButton colourUpper
- set colourUpper.In "1 0 0"
- connect colourUpper.Widget buttonLayout.Widget2
+ new ColourSelectorButton colourThreshold
+ set colourThreshold.In "1 0 0"
+ connect colourThreshold.Widget buttonLayout.Widget2
new CommandButton refresh
set refresh.Label "Refresh (to be used once at start time)"
connect vSliderLayout.Widget layout3D.Widget2
new Slider lowerOpacitySlider
- set lowerOpacitySlider.Title "LowerOpacity"
+ set lowerOpacitySlider.Title "Opacity"
set lowerOpacitySlider.Min 1
set lowerOpacitySlider.Max 100
set lowerOpacitySlider.In 20
connect threshold.Out isoextractorThreshold.In
set isoextractorThreshold.Opacity 1
set isoextractorThreshold.Isovalue 100
- connect colourUpper.Out isoextractorThreshold.Colour
+ connect colourThreshold.Out isoextractorThreshold.Colour
connect isoextractorThreshold.Out viewer3DSurfaceThreshold.In1
new Div div3
connect smooth.Out isoextractorSmooth.In
connect div3.Out isoextractorSmooth.Opacity
set isoextractorSmooth.Isovalue 200
- connect colourLower.Out isoextractorSmooth.Colour
+ connect colourSmooth.Out isoextractorSmooth.Colour
connect isoextractorSmooth.Out viewer3DSurfaceSmooth.In2
// Refresh issues
new MultipleInputs multInForSurfaceThreshold
connect refresh.BoxChange multInForSurfaceThreshold.In1
-
+ connect colourThreshold.BoxChange multInForSurfaceThreshold.In2
+
new MultipleInputs multInForSurfaceSmooth
connect refresh.BoxChange multInForSurfaceSmooth.In1
+ connect colourSmooth.BoxChange multInForSurfaceSmooth.In2
connect multInForImageOriginal.BoxChange viewer2DImageOriginal.BoxExecute
connect multInForImageSegmented.BoxChange viewer2DImageSegmented.BoxExecute
exec mainSplit
-
--- /dev/null
+<!--==========================================================================
+ STARTS THE DESCRIPTION OF THE BLACK BOX -->
+<blackbox name="Wait">
+<!--=======================================================================-->
+
+ <!--========================================================================
+ THE BOX DOCUMENTATION -->
+
+ <author>laurent.guigues@creatis.insa-lyon.fr</author>
+ <description>Waits a certain number of milliseconds</description>
+ <category></category>
+ <!--=====================================================================-->
+
+ <!--========================================================================
+ #include directives to be put in the .h generated
+ There must be one tag per file to include
+ Here we include the standard header iostream.h -->
+ <include><PRE>ctime</PRE></include>
+ <!--=====================================================================-->
+
+ <!--========================================================================
+ INPUTS/OUTPUTS DECLARATION -->
+ <input name="In" type="int" description="Number of milliseconds to wait"/>
+ <!--=====================================================================-->
+
+ <!--========================================================================
+ THE PROCESSING METHOD BODY : -->
+ <process>
+ <PRE>
+ clock_t endwait;
+ endwait = clock () + (bbGetInputIn() * CLOCKS_PER_SEC )/ 1000;
+ while (clock() < endwait) {}
+ </PRE>
+ </process>
+ <!--=====================================================================-->
+
+ <!--========================================================================
+ CONSTRUCTORS / DESTRUCTORS (OPTIONAL)
+ THE CONSTRUCTION METHOD BODY : -->
+ <constructor>
+ <PRE>
+ bbSetInputIn(1000);
+ </PRE>
+ </constructor>
+
+ <!-- THE COPY-CONSTRUCTION METHOD BODY :
+ Here does nothing
+ But this is where you should allocate the output pointers if any
+ and copy the pointed values (to avoid bug caused by multiple references)-->
+ <copyconstructor>
+ <PRE>
+ </PRE>
+ </copyconstructor>
+
+ <!-- THE DESTRUCTION METHOD BODY :
+ Here does nothing
+ but this is where you should desallocate the output pointers if any -->
+ <destructor>
+ <PRE>
+ </PRE>
+ </destructor>
+ <!--=====================================================================-->
+
+<!--=======================================================================-->
+<!-- END OF BLACK BOX DESCRIPTION -->
+</blackbox>
+<!--=======================================================================-->