------------------------------------------------------------------------------
| 1379 | |
| 1380 | //------------------------------------------------------------------------------ |
| 1381 | bool vtkCoordinateFrameRepresentation::PickNormal(int X, int Y, bool snapToMeshPoint) |
| 1382 | { |
| 1383 | this->HardwarePicker->SetSnapToMeshPoint(snapToMeshPoint); |
| 1384 | vtkAssemblyPath* path = this->GetAssemblyPath(X, Y, 0., this->HardwarePicker); |
| 1385 | if (path == nullptr) // actors of renderer were not touched |
| 1386 | { |
| 1387 | if (this->PickCameraFocalInfo) |
| 1388 | { |
| 1389 | double normal[3]; |
| 1390 | this->HardwarePicker->GetPickNormal(normal); |
| 1391 | this->SetNormal(normal); |
| 1392 | this->BuildRepresentation(); |
| 1393 | } |
| 1394 | return this->PickCameraFocalInfo; |
| 1395 | } |
| 1396 | else // actors of renderer were touched |
| 1397 | { |
| 1398 | double normal[3]; |
| 1399 | this->HardwarePicker->GetPickNormal(normal); |
| 1400 | if (!std::isnan(normal[0]) || !std::isnan(normal[1]) || !std::isnan(normal[2])) |
| 1401 | { |
| 1402 | this->SetNormal(normal); |
| 1403 | this->BuildRepresentation(); |
| 1404 | return true; |
| 1405 | } |
| 1406 | else |
| 1407 | { |
| 1408 | return false; |
| 1409 | } |
| 1410 | } |
| 1411 | } |
| 1412 | |
| 1413 | //------------------------------------------------------------------------------ |
| 1414 | bool vtkCoordinateFrameRepresentation::PickDirectionPoint(int X, int Y, bool snapToMeshPoint) |
no test coverage detected