| 81 | } |
| 82 | |
| 83 | void mitk::SurfaceDeformationDataInteractor3D::SelectObject(StateMachineAction *, InteractionEvent *interactionEvent) |
| 84 | { |
| 85 | const auto *positionEvent = dynamic_cast<const InteractionPositionEvent *>(interactionEvent); |
| 86 | if (positionEvent == nullptr) |
| 87 | return; |
| 88 | |
| 89 | int timeStep = interactionEvent->GetSender()->GetTimeStep(this->GetDataNode()->GetData()); |
| 90 | vtkPolyData *polyData = m_Surface->GetVtkPolyData(timeStep); |
| 91 | |
| 92 | this->GetDataNode()->SetColor(1.0, 0.0, 0.0); |
| 93 | |
| 94 | // Colorize surface / wireframe dependent on distance from picked point |
| 95 | this->ColorizeSurface(polyData, timeStep, m_SurfaceColorizationCenter, COLORIZATION_GAUSS); |
| 96 | |
| 97 | RenderingManager::GetInstance()->RequestUpdateAll(); |
| 98 | } |
| 99 | |
| 100 | void mitk::SurfaceDeformationDataInteractor3D::DeselectObject(StateMachineAction *, InteractionEvent *interactionEvent) |
| 101 | { |
nothing calls this directly
no test coverage detected