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

Method createSource

Common/ExecutionModel/Testing/Python/TestEnsemble.py:13–31  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

11 npolys = [5, 9, 17, 33]
12
13 def createSource(self):
14 r = vtkEnsembleSource()
15
16 aColumn = vtkIntArray()
17 aColumn.SetName("Resolution")
18 nrows = len(TestEnsemble.resolutions)
19 for res in TestEnsemble.resolutions:
20 aColumn.InsertNextValue(res)
21 table = vtkTable()
22 table.SetNumberOfRows(nrows)
23 table.GetRowData().AddArray(aColumn)
24 r.SetMetaData(table)
25
26 for res in TestEnsemble.resolutions:
27 c = vtkConeSource()
28 c.SetResolution(res)
29 r.AddMember(c)
30
31 return r
32
33 def test1(self):
34 r = self.createSource()

Callers 2

test1Method · 0.95
test2Method · 0.95

Calls 11

SetNumberOfRowsMethod · 0.80
GetRowDataMethod · 0.80
SetMetaDataMethod · 0.80
AddMemberMethod · 0.80
vtkIntArrayFunction · 0.50
vtkTableClass · 0.50
vtkConeSourceClass · 0.50
SetNameMethod · 0.45
InsertNextValueMethod · 0.45
AddArrayMethod · 0.45
SetResolutionMethod · 0.45

Tested by

no test coverage detected