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/PostGraphWidgetBoxCallBack.cpp

19 lines
586 B
C++

#include "PostGraphWidgetBoxCallBack.h"
#include <vtkBoxWidget2.h>
#include <vtkBoxRepresentation.h>
namespace Interface
{
void PostGraphWidgetBoxCallBack::Execute(vtkObject * caller, unsigned long eventId, void * callData)
{
vtkBoxWidget2* widget = vtkBoxWidget2::SafeDownCast(caller);
if (widget == nullptr)return;
vtkBoxRepresentation* rep = vtkBoxRepresentation::SafeDownCast(widget->GetRepresentation());
if (rep == nullptr)return;
double* bounds;
bounds = rep->GetBounds();
emit sigValueChange(bounds);
}
}