MCPcopy Create free account
hub / github.com/Kitware/VTK / execute

Function execute

IO/ParallelXML/Testing/Python/testParallelXMLWriters.py:52–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50pf = vtkProgrammableFilter()
51
52def execute():
53 info = pf.GetOutputInformation(0)
54 et = vtkExtentTranslator()
55
56 if pf.GetInput().IsA("vtkDataSet"):
57 et.SetWholeExtent(info.Get(vtkStreamingDemandDrivenPipeline.WHOLE_EXTENT()))
58 et.SetPiece(info.Get(vtkStreamingDemandDrivenPipeline.UPDATE_PIECE_NUMBER()))
59 et.SetNumberOfPieces(info.Get(vtkStreamingDemandDrivenPipeline.UPDATE_NUMBER_OF_PIECES()))
60 et.PieceToExtent()
61
62 output = pf.GetOutput()
63 input = pf.GetInput()
64 output.ShallowCopy(input)
65 if pf.GetInput().IsA("vtkDataSet"):
66 output.Crop(et.GetExtent())
67
68pf.SetExecuteMethod(execute)
69

Callers

nothing calls this directly

Calls 12

vtkExtentTranslatorClass · 0.85
IsAMethod · 0.80
PieceToExtentMethod · 0.80
GetOutputInformationMethod · 0.45
GetInputMethod · 0.45
SetWholeExtentMethod · 0.45
GetMethod · 0.45
SetNumberOfPiecesMethod · 0.45
GetOutputMethod · 0.45
ShallowCopyMethod · 0.45
CropMethod · 0.45
GetExtentMethod · 0.45

Tested by

no test coverage detected