#include "PostGraphWidgetSphereCallBack.h" #include #include #include namespace Interface { void PostGraphWidgetSphereCallBack::Execute(vtkObject * caller, unsigned long eventId, void * callData) { Q_UNUSED(eventId); Q_UNUSED(callData); vtkSphereWidget* widget = vtkSphereWidget::SafeDownCast(caller); if (widget == nullptr)return; double origin[3] = { 0,0,0 }; double radius = 0.0; widget->GetCenter(origin); radius = widget->GetRadius(); emit sigValueChange(origin, radius); } }