MCPcopy Create free account
hub / github.com/Kitware/VTK / ShowPickSphere

Method ShowPickSphere

Rendering/VR/vtkVRInteractorStyle.cxx:1350–1368  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1348
1349//------------------------------------------------------------------------------
1350void 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//------------------------------------------------------------------------------
1371void vtkVRInteractorStyle::ShowPickCell(vtkCell* cell, vtkProp3D* prop)

Callers 1

EndPickCallbackMethod · 0.95

Calls 12

GetMapperMethod · 0.80
SetColorMethod · 0.45
GetPropertyMethod · 0.45
SetCenterMethod · 0.45
SetRadiusMethod · 0.45
SetInputConnectionMethod · 0.45
GetOutputPortMethod · 0.45
SetPositionMethod · 0.45
GetPositionMethod · 0.45
SetScaleMethod · 0.45
GetScaleMethod · 0.45
AddActorMethod · 0.45

Tested by

no test coverage detected