| 218 | } |
| 219 | |
| 220 | void mitk::SurfaceDeformationDataInteractor3D::ScaleRadius(StateMachineAction *, InteractionEvent *interactionEvent) |
| 221 | { |
| 222 | const auto *wheelEvent = dynamic_cast<const MouseWheelEvent *>(interactionEvent); |
| 223 | if (wheelEvent == nullptr) |
| 224 | return; |
| 225 | |
| 226 | m_GaussSigma += (double)(wheelEvent->GetWheelDelta()) / 20; |
| 227 | if (m_GaussSigma < 10.0) |
| 228 | { |
| 229 | m_GaussSigma = 10.0; |
| 230 | } |
| 231 | else if (m_GaussSigma > 128.0) |
| 232 | { |
| 233 | m_GaussSigma = 128.0; |
| 234 | } |
| 235 | |
| 236 | int timeStep = interactionEvent->GetSender()->GetTimeStep(this->GetDataNode()->GetData()); |
| 237 | vtkPolyData *polyData = m_Surface->GetVtkPolyData(timeStep); |
| 238 | |
| 239 | // Colorize surface / wireframe dependent on sigma and distance from picked point |
| 240 | this->ColorizeSurface(polyData, timeStep, m_SurfaceColorizationCenter, COLORIZATION_GAUSS); |
| 241 | |
| 242 | RenderingManager::GetInstance()->RequestUpdateAll(); |
| 243 | } |
| 244 | |
| 245 | void mitk::SurfaceDeformationDataInteractor3D::ColorizeSurface( |
| 246 | vtkPolyData *polyData, int timeStep, const Point3D &pickedPoint, int mode, double scalar) |
nothing calls this directly
no test coverage detected