MCPcopy Create free account
hub / github.com/MITK/MITK / SelectObject

Method SelectObject

Modules/DataTypesExt/src/mitkSurfaceDeformationDataInteractor3D.cpp:83–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void 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
100void mitk::SurfaceDeformationDataInteractor3D::DeselectObject(StateMachineAction *, InteractionEvent *interactionEvent)
101{

Callers

nothing calls this directly

Calls 8

ColorizeSurfaceMethod · 0.95
GetSenderMethod · 0.80
GetTimeStepMethod · 0.45
GetDataMethod · 0.45
GetDataNodeMethod · 0.45
GetVtkPolyDataMethod · 0.45
SetColorMethod · 0.45
RequestUpdateAllMethod · 0.45

Tested by

no test coverage detected