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