You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AppFlowPost/PostGraphAdaptor/PostGraphWidgetSphereCallBa...

23 lines
647 B
C++

#include "PostGraphWidgetSphereCallBack.h"
#include <vtkSphereWidget.h>
#include <vtkWidgetRepresentation.h>
#include <vtkSphereRepresentation.h>
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);
}
}