creaVtkCallbackPointPicker::creaVtkCallbackPointPicker(void)
{
- boxPointPicker=NULL;
+ boxPointPicker = NULL;
}
void creaVtkCallbackPointPicker::setBox(PointPicker *box)
{
- boxPointPicker=box;
+ boxPointPicker = box;
}
void creaVtkCallbackPointPicker::Execute(vtkObject *caller, unsigned long, void*)
int* pos = iren->GetEventPosition();
vtkCellPicker *picker = vtkCellPicker::New();
picker->SetTolerance(0.0005);
+
+ if (boxPointPicker->bbGetInputProp3D()!=NULL )
+ {
+ picker->AddPickList( boxPointPicker->bbGetInputProp3D() );
+ picker->PickFromListOn();
+ }
+
picker->Pick(pos[0], pos[1], 0, iren->GetRenderWindow()->GetRenderers()->GetFirstRenderer() );
double point[3];
bbSetOutputCellId(-1);
firsttime=true;
callPicker=NULL;
+ bbSetInputProp3D(NULL);
}
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)