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

Function common

Filters/ParallelDIY2/Testing/Python/TestProbeLineFilterLeaks.py:8–21  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

6
7
8def common(source):
9 line = vtkLineSource()
10 line.SetPoint1(0,0,0)
11 line.SetPoint2(10,10,10)
12 line.SetResolution(1)
13 dc = vtkDummyController()
14 probe = vtkProbeLineFilter()
15 probe.SetController(dc)
16 probe.SetLineResolution(1000)
17 probe.SetInputConnection(source.GetOutputPort(0))
18 probe.SetSourceConnection(line.GetOutputPort())
19 probe.SetSamplingPattern(2)
20 probe.Update()
21 assert probe.GetOutputDataObject(0).GetNumberOfPoints() == 1001
22
23def Test_UnstructuredGrid():
24 grid = vtkCellTypeSource()

Callers 3

Test_UnstructuredGridFunction · 0.70
Test_ImageDataFunction · 0.70
Test_HyperTreeGridFunction · 0.70

Calls 11

vtkLineSourceClass · 0.50
SetPoint1Method · 0.45
SetPoint2Method · 0.45
SetResolutionMethod · 0.45
SetControllerMethod · 0.45
SetInputConnectionMethod · 0.45
GetOutputPortMethod · 0.45
SetSourceConnectionMethod · 0.45
UpdateMethod · 0.45
GetNumberOfPointsMethod · 0.45
GetOutputDataObjectMethod · 0.45

Tested by

no test coverage detected