MCPcopy Create free account
hub / github.com/Kitware/ParaView / Pipeline

Class Pipeline

Examples/Catalyst/Fortran90FullExample/SampleScripts/coproc.py:12–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10def CreateCoProcessor():
11 def _CreatePipeline(coprocessor, datadescription):
12 class Pipeline:
13 filename_6_pvti = coprocessor.CreateProducer( datadescription, "input" )
14
15 Slice1 = Slice( guiName="Slice1", Crinkleslice=0, SliceOffsetValues=[0.0], Triangulatetheslice=1, SliceType="Plane" )
16 Slice1.SliceType.Offset = 0.0
17 Slice1.SliceType.Origin = [49.5, 49.5, 49.5]
18 Slice1.SliceType.Normal = [1.0, 0.0, 0.0]
19
20 # create a new 'Parallel PolyData Writer'
21 parallelPolyDataWriter1 = servermanager.writers.XMLPPolyDataWriter(Input=Slice1)
22
23 # register the writer with coprocessor
24 # and provide it with information such as the filename to use,
25 # how frequently to write the data, etc.
26 coprocessor.RegisterWriter(parallelPolyDataWriter1, filename='slice_{time}.pvtp', freq=10)
27
28 return Pipeline()
29

Callers 1

_CreatePipelineFunction · 0.70

Calls 3

SliceClass · 0.85
CreateProducerMethod · 0.80
RegisterWriterMethod · 0.80

Tested by

no test coverage detected