Remove TestOutPut from ActorDraggableInteractorStyle.
This commit is contained in:
@@ -27,13 +27,6 @@ vtkStandardNewMacro(ActorDraggableInteractorStyle)
|
|||||||
|
|
||||||
ActorDraggableInteractorStyle::ActorDraggableInteractorStyle() {
|
ActorDraggableInteractorStyle::ActorDraggableInteractorStyle() {
|
||||||
this->AddObserver(vtkCommand::InteractionEvent, this, &ActorDraggableInteractorStyle::DispatchEvent);
|
this->AddObserver(vtkCommand::InteractionEvent, this, &ActorDraggableInteractorStyle::DispatchEvent);
|
||||||
#ifdef _DEBUG
|
|
||||||
this->AddObserver(DraggableStyleEvents::EndDollyEvent, this, &ActorDraggableInteractorStyle::TestOutPut);
|
|
||||||
this->AddObserver(vtkCommand::EventIds::EndPanEvent, this, &ActorDraggableInteractorStyle::TestOutPut);
|
|
||||||
this->AddObserver(vtkCommand::EventIds::EndRotateEvent, this, &ActorDraggableInteractorStyle::TestOutPut);
|
|
||||||
this->AddObserver(vtkCommand::EventIds::EndWindowLevelEvent, this, &ActorDraggableInteractorStyle::TestOutPut);
|
|
||||||
this->AddObserver(DraggableStyleEvents::SlicedEvent, this, &ActorDraggableInteractorStyle::TestOutPut);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ActorDraggableInteractorStyle::~ActorDraggableInteractorStyle() {
|
ActorDraggableInteractorStyle::~ActorDraggableInteractorStyle() {
|
||||||
|
|||||||
@@ -209,44 +209,6 @@ private:
|
|||||||
int ScalarStartPosition[2] = {0, 0};
|
int ScalarStartPosition[2] = {0, 0};
|
||||||
int ScalarCurrentPosition[2] = {0, 0};
|
int ScalarCurrentPosition[2] = {0, 0};
|
||||||
double ConsumedOpacity = 0;
|
double ConsumedOpacity = 0;
|
||||||
|
|
||||||
void TestOutPut(vtkObject *, unsigned long eventid, void *calldata) {
|
|
||||||
switch (eventid) {
|
|
||||||
case DraggableStyleEvents::SlicedEvent: {
|
|
||||||
int *r = (int *) calldata;
|
|
||||||
|
|
||||||
printf("Sliced, current slice number:%d \r\n", r[0]);
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case DraggableStyleEvents::EndDollyEvent: {
|
|
||||||
double *d = (double *) calldata;
|
|
||||||
|
|
||||||
printf("EndDolly, scale param:%f,%f \r\n", d[0], d[1]);
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case vtkCommand::EventIds::EndPanEvent: {
|
|
||||||
double *d = (double *) calldata;
|
|
||||||
|
|
||||||
printf("EndPan, last focalpoint:%f,%f,%f;current focalpoint:%f,%f,%f \r\n", d[0], d[1], d[2], d[3],
|
|
||||||
d[4], d[5]);
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case vtkCommand::EventIds::EndWindowLevelEvent: {
|
|
||||||
double *d = (double *) calldata;
|
|
||||||
|
|
||||||
printf("EndWindowLevel, scale param:%f,%f \r\n", d[0], d[1]);
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
default:
|
|
||||||
|
|
||||||
printf("current event :%s", vtkCommand::GetStringFromEventId(eventid));
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif //OMEGAV_ACTORDRAGGABLEINTERACTORSTYLE_H
|
#endif //OMEGAV_ACTORDRAGGABLEINTERACTORSTYLE_H
|
||||||
|
|||||||
Reference in New Issue
Block a user