------------------------------------------------------------------------------
| 1348 | |
| 1349 | //------------------------------------------------------------------------------ |
| 1350 | void vtkVRInteractorStyle::ShowPickSphere(double* pos, double radius, vtkProp3D* prop) |
| 1351 | { |
| 1352 | this->PickActor->GetProperty()->SetColor(this->PickColor); |
| 1353 | |
| 1354 | this->Sphere->SetCenter(pos); |
| 1355 | this->Sphere->SetRadius(radius); |
| 1356 | this->PickActor->GetMapper()->SetInputConnection(this->Sphere->GetOutputPort()); |
| 1357 | if (prop) |
| 1358 | { |
| 1359 | this->PickActor->SetPosition(prop->GetPosition()); |
| 1360 | this->PickActor->SetScale(prop->GetScale()); |
| 1361 | } |
| 1362 | else |
| 1363 | { |
| 1364 | this->PickActor->SetPosition(0.0, 0.0, 0.0); |
| 1365 | this->PickActor->SetScale(1.0, 1.0, 1.0); |
| 1366 | } |
| 1367 | this->CurrentRenderer->AddActor(this->PickActor); |
| 1368 | } |
| 1369 | |
| 1370 | //------------------------------------------------------------------------------ |
| 1371 | void vtkVRInteractorStyle::ShowPickCell(vtkCell* cell, vtkProp3D* prop) |
no test coverage detected