Section: Visualization Toolkit Rendering Classes
To create an instance of class vtkScenePicker, simply invoke its constructor as follows
obj = vtkScenePicker
obj is an instance of the vtkScenePicker class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkScenePicker = obj.NewInstance ()
vtkScenePicker = obj.SafeDownCast (vtkObject o)
obj.SetRenderer (vtkRenderer ) - Set the renderer. Scene picks are restricted to the viewport.
vtkRenderer = obj.GetRenderer () - Set the renderer. Scene picks are restricted to the viewport.
vtkIdType = obj.GetCellId (int displayPos[2]) - Get cell id at the pick position.
Returns -1 if no cell was picked.
Makes sense only after Pick has been called.
vtkIdType = obj.GetVertexId (int displayPos[2]) - Get cell id at the pick position.
Returns -1 if no cell was picked.
Makes sense only after Pick has been called.
vtkProp = obj.GetViewProp (int displayPos[2]) - Get actor at the pick position.
Returns NULL if none.
Makes sense only after Pick has been called.
obj.SetEnableVertexPicking (int ) - Vertex picking (using the method GetVertexId()), required
additional resources and can slow down still render time by
5-10%. Enabled by default.
int = obj.GetEnableVertexPicking () - Vertex picking (using the method GetVertexId()), required
additional resources and can slow down still render time by
5-10%. Enabled by default.
obj.EnableVertexPickingOn () - Vertex picking (using the method GetVertexId()), required
additional resources and can slow down still render time by
5-10%. Enabled by default.
obj.EnableVertexPickingOff () - Vertex picking (using the method GetVertexId()), required
additional resources and can slow down still render time by
5-10%. Enabled by default.