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

Function Glyph

Filters/Programmable/Testing/Python/progGlyphsBySource.py:50–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48transformSquad.Update()
49# procedure for generating glyphs
50def Glyph():
51 ptId = glypher.GetPointId()
52 pd = glypher.GetPointData()
53 x,y,z = glypher.GetPoint()
54 length = glypher.GetInput(0).GetLength()
55 scale = length/(2.0*res)
56 squadTransform.Identity()
57 if x == y:
58 squad.ToroidalOn()
59 squadTransform.Translate(x,y,z)
60 squadTransform.RotateX(90)
61 else:
62 squadTransform.Translate(x,y,z)
63 squad.ToroidalOff()
64 squadTransform.Scale(scale,scale,scale)
65 squad.SetPhiRoundness(abs(x)*5.0)
66 squad.SetThetaRoundness(abs(y)*5.0)
67
68glypher = vtkProgrammableGlyphFilter()
69glypher.SetInputConnection(colors.GetOutputPort())

Callers

nothing calls this directly

Calls 12

RotateXMethod · 0.80
absFunction · 0.50
GetPointIdMethod · 0.45
GetPointDataMethod · 0.45
GetPointMethod · 0.45
GetLengthMethod · 0.45
GetInputMethod · 0.45
IdentityMethod · 0.45
TranslateMethod · 0.45
ScaleMethod · 0.45
SetPhiRoundnessMethod · 0.45
SetThetaRoundnessMethod · 0.45

Tested by

no test coverage detected