Files
phd-thesis/mwre/povray.iwir
T
2017-08-04 15:33:20 +02:00

68 lines
2.9 KiB
Plaintext
Executable File

<IWIR version="1.1" wfname="NewWorkflow" xmlns="http://shiwa-workflow.eu/IWIR">
<blockScope name="toplevel"> (*@\label{povray:iwir:toplevel:start}@*)
<inputPorts> (*@\label{povray:iwir:toplevel:inports:start}@*)
<inputPort name="scene" type="string"/>
<inputPort name="totalFrames" type="integer"/>
<inputPort name="framesPerActivity" type="integer"/>
</inputPorts> (*@\label{povray:iwir:toplevel:inports:end}@*)
<body>
<parallelFor name="ParallelFor"> (*@\label{povray:iwir:pfor:start}@*)
<inputPorts>
<inputPort name="scene" type="string"/>
<inputPort name="numFrames" type="integer"/>
<loopCounter name="frameCounter" from="1" to="" step=""/>
</inputPorts>
<body>
<task name="SceneFile" tasktype="SceneFile"> (*@\label{povray:iwir:SceneFile:start}@*)
<inputPorts>
<inputPort name="scene" type="string"/>
</inputPorts>
<outputPorts>
<outputPort name="povFile" type="file"/>
</outputPorts>
</task> (*@\label{povray:iwir:SceneFile:end}@*)
<task name="Render" tasktype="Render"> (*@\label{povray:iwir:Render:start}@*)
<inputPorts>
<inputPort name="povFile" type="file"/>
<inputPort name="startFrame" type="integer"/>
<inputPort name="numFrames" type="integer"/>
</inputPorts>
<outputPorts>
<outputPort name="frames" type="collection/file"/>
</outputPorts>
</task> (*@\label{povray:iwir:Render:end}@*)
</body>
<outputPorts>
<outputPort name="frames" type="collection/collection/file"/>
</outputPorts>
<links>
<link from="ParallelFor/scene" to="SceneFile/scene"/>
<link from="SceneFile/povFile" to="Render/povFile"/>
<link from="ParallelFor/numFrames" to="Render/numFrames"/>
<link from="ParallelFor/frameCounter" to="Render/startFrame"/>
<link from="Render/frames" to="ParallelFor/frames"/>
</links>
</parallelFor> (*@\label{povray:iwir:pfor:end}@*)
<task name="Convert" tasktype="Convert"> (*@\label{povray:iwir:Convert:start}@*)
<inputPorts>
<inputPort name="frames" type="collection/file"/>
</inputPorts>
<outputPorts>
<outputPort name="outFile" type="file"/>
</outputPorts>
</task> (*@\label{povray:iwir:Convert:end}@*)
</body>
<outputPorts> (*@\label{povray:iwir:toplevel:outports:start}@*)
<outputPort name="finalMovie" type="file"/>
</outputPorts> (*@\label{povray:iwir:toplevel:outports:end}@*)
<links>
<link from="toplevel/totalFrames" to="ParallelFor/frameCounter/to"/>
<link from="toplevel/framesPerActivity" to="ParallelFor/frameCounter/step"/>
<link from="toplevel/framesPerActivity" to="ParallelFor/numFrames"/>
<link from="toplevel/scene" to="ParallelFor/scene"/>
<link from="ParallelFor/frames" to="Convert/frames"/>
<link from="Convert/outFile" to="toplevel/finalMovie"/>
</links>
</blockScope> (*@\label{povray:iwir:toplevel:end}@*)
</IWIR>