PickingComponent#
- class PickingComponent(*args, **kwargs)[source]#
Plotter picking component.
Owns every picking observer, picked-result attribute, and per-pick representation actor for a single
pyvista.BasePlotter. Constructed lazily on first access ofplotter.pickingand registered for close-time teardown via__plotter_close__.The plotter exposes the public picking surface (
enable_*_picking,disable_picking,picked_pointand friends) as forwarding shims that delegate here.- Parameters:
- plotter
pyvista.BasePlotter Owning plotter. Stored as a strong reference; the component’s lifetime is bounded by the plotter’s lifetime.
- plotter
- Attributes:
- picked_path
pyvista.PolyData|None Polyline accumulated by
enable_path_picking().- picked_geodesic
pyvista.PolyData|None Geodesic polyline accumulated by
enable_geodesic_picking().- picked_horizon
pyvista.PolyData|None Ribbon surface produced by
enable_horizon_picking().- .. versionadded:: 0.48.0
- picked_path
Methods#
Disable any active picking and remove observers. |
|
Enable composite block picking. |
|
Enable picking of cells with a rectangle selection tool. |
|
Select individual elements on a mesh. |
|
Set the camera to track right click positions. |
|
Enable picking at geodesic paths. |
|
Enable horizon picking. |
|
Enable picking of a mesh. |
|
Enable picking at paths. |
|
Enable picking at points under the cursor. |
|
Enable rectangle based picking at cells. |
|
Enable rectangle based cell picking through the scene. |
|
Enable rectangle based cell picking on visible surfaces. |
|
Enable picking of a point on the surface of a mesh. |
|
Focus on last stored mouse position. |
|
Get the pick position or area. |
|
Get corresponding click location in the 3D plot. |
|
Get corresponding mouse location in the 3D plot. |
Attributes#
Return the picked actor. |
|
Return the picked block index. |
|
Return the cell-picked object. |
|
Return the cell-picked object. |
|
Return the picked mesh. |
|
Return the picked point. |