Change SameSeriesExceptSelf to EStudyEBoundsSeries.
This commit is contained in:
@@ -48,9 +48,10 @@ void ImageViewManager::smartDo(SmartDoCallback cb, DicomImageView *sourceView, v
|
||||
});
|
||||
break;
|
||||
}
|
||||
case DoScope::SameSeriesExceptSelf:{
|
||||
std::for_each(vList.begin(),vList.end(),[=](auto v){
|
||||
case DoScope::EStudyEBoundsSeries:{
|
||||
std::for_each(vList.begin(),vList.end(),[=](auto v) {
|
||||
if (v == sourceView) return;
|
||||
if (!v->HasSeries()) return;
|
||||
//check series
|
||||
auto series = sourceView->getSeriesInstance();
|
||||
if (v->getSeriesInstance()==series && v->GetSliceOrientation() == sourceView->GetSliceOrientation()){
|
||||
|
||||
@@ -50,7 +50,9 @@ public:
|
||||
enum DoScope{
|
||||
Current,
|
||||
SameSeries,
|
||||
SameSeriesExceptSelf,
|
||||
//Equal Study, Equal World Bounds series
|
||||
EStudyEBoundsSeries,
|
||||
EqualBoundsSeriesExceptSelf,
|
||||
AllExceptSelf,
|
||||
All
|
||||
};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "viewcontainerwidget.h"
|
||||
#include "viewcontainerwidget.h"
|
||||
#include "thumbnailImage.h"
|
||||
#include "DicomLoader.h"
|
||||
#include <QWidget>
|
||||
@@ -75,7 +75,7 @@ void ViewContainerWidget::Slot_SyncEvent(DicomImageView *view, int interactionMo
|
||||
v->SetSlice(r[0]);
|
||||
v->setScrollChangedType(scrollScope::TriggerType::USER_TRIGGER);
|
||||
}
|
||||
},view, calldata,ImageViewManager::SameSeriesExceptSelf);
|
||||
},view, calldata,ImageViewManager::EStudyEBoundsSeries);
|
||||
}
|
||||
if (SyncHelper::getSyncState() == MANUAL_SYNC)
|
||||
{
|
||||
@@ -87,7 +87,7 @@ void ViewContainerWidget::Slot_SyncEvent(DicomImageView *view, int interactionMo
|
||||
v->AddSlice(r[1]);
|
||||
v->setScrollChangedType(scrollScope::TriggerType::USER_TRIGGER);
|
||||
}
|
||||
},view, calldata,ImageViewManager::SameSeriesExceptSelf);
|
||||
},view, calldata,ImageViewManager::EStudyEBoundsSeries);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -101,7 +101,7 @@ void ViewContainerWidget::Slot_SyncEvent(DicomImageView *view, int interactionMo
|
||||
double vector[3] = { d[3] - d[0],d[4] - d[1],d[5] - d[2] };
|
||||
v->SetPanOffset(vector);
|
||||
}
|
||||
},view, calldata,ImageViewManager::SameSeriesExceptSelf);
|
||||
},view, calldata,ImageViewManager::EStudyEBoundsSeries);
|
||||
}
|
||||
break;
|
||||
case VTKIS_IMAGE_ZOOM:
|
||||
@@ -112,7 +112,7 @@ void ViewContainerWidget::Slot_SyncEvent(DicomImageView *view, int interactionMo
|
||||
double *d = (double *)callData;
|
||||
v->SetZoomScale(d[1]);
|
||||
}
|
||||
},view, calldata,ImageViewManager::SameSeriesExceptSelf);
|
||||
},view, calldata,ImageViewManager::EStudyEBoundsSeries);
|
||||
}
|
||||
break;
|
||||
case VTKIS_IMAGE_WINDOWLEVEL:
|
||||
@@ -123,7 +123,7 @@ void ViewContainerWidget::Slot_SyncEvent(DicomImageView *view, int interactionMo
|
||||
double *d = (double *)callData;
|
||||
v->SetWindowLevel(d[1], d[0]);
|
||||
}
|
||||
},view, calldata,ImageViewManager::SameSeriesExceptSelf);
|
||||
},view, calldata,ImageViewManager::EStudyEBoundsSeries);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user