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

Method SetCursor

Rendering/Tk/Testing/Python/cursor3D.py:118–131  ·  view source on GitHub ↗
(x, y, z)

Source from the content-addressed store, hash-verified

116 SetCursor( x / IMAGE_MAG_X, y / IMAGE_MAG_Y, z / IMAGE_MAG_Z )
117
118 def SetCursor(x, y, z):
119
120 CURSOR_X = x
121 CURSOR_Y = y
122 CURSOR_Z = z
123
124 axes.SetOrigin(CURSOR_X,CURSOR_Y,CURSOR_Z)
125 imageCursor.SetCursorPosition(
126 CURSOR_X * IMAGE_MAG_X,
127 CURSOR_Y * IMAGE_MAG_Y,
128 CURSOR_Z * IMAGE_MAG_Z)
129
130 self.viewer.Render()
131 self.tkrw.Render()
132
133 # Pipeline stuff.
134 reader = vtkSLCReader()

Callers

nothing calls this directly

Calls 3

SetCursorPositionMethod · 0.80
RenderMethod · 0.65
SetOriginMethod · 0.45

Tested by

no test coverage detected