19 #include <vtkCellPicker.h>
29 unsigned long vtkNotUsed(eventId) ,
30 void* vtkNotUsed(callData) )
32 auto* picker =
static_cast<vtkCellPicker*
>(caller);
33 if (picker->GetCellId() < 0)
39 vtkActor* actor = picker->GetActor();
45 double* pos = picker->GetPickPosition();
46 INFO(
"Picked cell id is: {:d}", picker->GetCellId());
47 INFO(
"Picked position is: {:f} {:f} {:f}", pos[0], pos[1], pos[2]);
void INFO(char const *fmt, Args const &... args)
Definition of the VtkPickCallback class.
void actorPicked(vtkProp3D *actor)
Is emitted when an vtkActor was picked.
static VtkPickCallback * New()
void Execute(vtkObject *caller, unsigned long eventId, void *callData) override