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

Method SelectObject

Modules/DataTypesExt/src/mitkAffineBaseDataInteractor3D.cpp:330–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330void mitk::AffineBaseDataInteractor3D::SelectObject(StateMachineAction *, InteractionEvent *)
331{
332 DataNode::Pointer node = this->GetDataNode();
333
334 if (node.IsNull())
335 return;
336
337 mitk::ColorProperty::Pointer selectedColor =
338 dynamic_cast<mitk::ColorProperty *>(node->GetProperty(selectedColorPropertyName));
339 if (selectedColor.IsNotNull())
340 {
341 node->GetPropertyList()->SetProperty("color", selectedColor);
342 }
343 RenderingManager::GetInstance()->RequestUpdateAll();
344
345 return;
346}
347
348void mitk::AffineBaseDataInteractor3D::DeselectObject(StateMachineAction *, InteractionEvent *)
349{

Callers

nothing calls this directly

Calls 7

IsNotNullMethod · 0.80
GetDataNodeMethod · 0.45
IsNullMethod · 0.45
GetPropertyMethod · 0.45
SetPropertyMethod · 0.45
GetPropertyListMethod · 0.45
RequestUpdateAllMethod · 0.45

Tested by

no test coverage detected