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

Method DeselectObject

Modules/DataTypesExt/src/mitkAffineBaseDataInteractor3D.cpp:348–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346}
347
348void mitk::AffineBaseDataInteractor3D::DeselectObject(StateMachineAction *, InteractionEvent *)
349{
350 DataNode::Pointer node = this->GetDataNode();
351
352 if (node.IsNull())
353 return;
354
355 mitk::ColorProperty::Pointer selectedColor =
356 dynamic_cast<mitk::ColorProperty *>(node->GetProperty(deselectedColorPropertyName));
357 if (selectedColor.IsNotNull())
358 {
359 node->GetPropertyList()->SetProperty("color", selectedColor);
360 }
361
362 RenderingManager::GetInstance()->RequestUpdateAll();
363
364 return;
365}
366
367void mitk::AffineBaseDataInteractor3D::InitTranslate(StateMachineAction *, InteractionEvent *interactionEvent)
368{

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