Commit b596eb32 authored by Emmanuel Promayon's avatar Emmanuel Promayon

FIXED renamed state using explicit names

parent ccd85c7c
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
<camitk:description><![CDATA[This pipeline will process several actions on the input component(s): <br /> <ul><li>Open File</li><li>Reconstruction</li><li>Save</li>]]></camitk:description> <camitk:description><![CDATA[This pipeline will process several actions on the input component(s): <br /> <ul><li>Open File</li><li>Reconstruction</li><li>Save</li>]]></camitk:description>
</camitk:onState> </camitk:onState>
</onentry> </onentry>
<transition target="Action 1" event="Next"/> <transition target="Open Input" event="Next"/>
</state> </state>
<state id="Action 1"> <state id="Open Input">
<onentry> <onentry>
<camitk:onState> <camitk:onState>
<camitk:description>Open data (component) from a given file</camitk:description> <camitk:description>Open data (component) from a given file</camitk:description>
...@@ -29,10 +29,10 @@ ...@@ -29,10 +29,10 @@
</camitk:action> </camitk:action>
</camitk:onState> </camitk:onState>
</onentry> </onentry>
<transition target="Action 2" event="Next"/>
<transition target="Initialize" event="Back"/> <transition target="Initialize" event="Back"/>
<transition target="Apply Marching Cube" event="Next"/>
</state> </state>
<state id="Action 2"> <state id="Apply Marching Cube">
<onentry> <onentry>
<camitk:onState> <camitk:onState>
<camitk:description>&lt;br /> Marching cubes is a simple algorithm for creating a triangle mesh from an implicit function (one of the form f(x, y, z) = 0).&lt;br /> It works by iterating ("marching") over a uniform grid of cubes superimposed over a region of the function. If all 8 vertices of the cube are positive, or all 8 vertices are negative, the cube is entirely above or entirely below the surface and no triangles are emitted. Otherwise, the cube straddles the function and some triangles and vertices are generated. Since each vertex can either be positive or negative, there are technically 28 possible configurations, but many of these are equivalent to one another. &lt;br/> &lt;br/>This action uses this algorithm to build a 3D surfacic mesh of the input image.</camitk:description> <camitk:description>&lt;br /> Marching cubes is a simple algorithm for creating a triangle mesh from an implicit function (one of the form f(x, y, z) = 0).&lt;br /> It works by iterating ("marching") over a uniform grid of cubes superimposed over a region of the function. If all 8 vertices of the cube are positive, or all 8 vertices are negative, the cube is entirely above or entirely below the surface and no triangles are emitted. Otherwise, the cube straddles the function and some triangles and vertices are generated. Since each vertex can either be positive or negative, there are technically 28 possible configurations, but many of these are equivalent to one another. &lt;br/> &lt;br/>This action uses this algorithm to build a 3D surfacic mesh of the input image.</camitk:description>
...@@ -56,8 +56,8 @@ ...@@ -56,8 +56,8 @@
</camitk:action> </camitk:action>
</camitk:onState> </camitk:onState>
</onentry> </onentry>
<transition target="Action 3" event="Next"/> <transition target="Open Input" event="Back">
<transition target="Action 1" event="Back"> <transition target="Save Marching Cube Result as output-1.vtk" event="Next"/>
<onTransition> <onTransition>
<camitk:close> <camitk:close>
<camitk:component name="image" type="ImageComponent"/> <camitk:component name="image" type="ImageComponent"/>
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
</onTransition> </onTransition>
</transition> </transition>
</state> </state>
<state id="Action 3"> <state id="Save Marching Cube Result as output-1.vtk">
<onentry> <onentry>
<camitk:onState> <camitk:onState>
<camitk:description>Save all the top-level of the selected components</camitk:description> <camitk:description>Save all the top-level of the selected components</camitk:description>
...@@ -78,15 +78,33 @@ ...@@ -78,15 +78,33 @@
</camitk:action> </camitk:action>
</camitk:onState> </camitk:onState>
</onentry> </onentry>
<transition target="Bye" event="Next"/> <transition target="Apply Marching Cube" event="Back">
<transition target="Action 2" event="Back">
<onTransition> <onTransition>
<camitk:close> <camitk:close>
<camitk:component name="output-1.vtk" type="MeshComponent"/> <camitk:component name="output-1.vtk" type="MeshComponent"/>
</camitk:close> </camitk:close>
</onTransition> </onTransition>
</transition> </transition>
<transition target="Close output-1.vtk" event="Next"/>
</state>
<state id="Close output-1.vtk">
<onentry>
<camitk:onState>
<camitk:description>Close the currently selected components</camitk:description>
<camitk:action>
<camitk:name>Close</camitk:name>
<camitk:parameters/>
<camitk:inputs>
<camitk:component name="output-1.vtk" type="MeshComponent"/>
</camitk:inputs>
</camitk:action>
</camitk:onState>
</onentry>
<transition target="Save Marching Cube Result as output-1.vtk" event="Back"/>
<transition target="Bye" event="Next"/>
</state> </state>
<state id="Bye" final="true"> <state id="Bye" final="true">
<onentry> <onentry>
<camitk:onState> <camitk:onState>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment