Add fusion input getter function
This commit is contained in:
@@ -299,6 +299,7 @@ void DicomImageView::dragLeaveEvent(QDragLeaveEvent *) {
|
||||
|
||||
//Fusion about -------------------------------------------------------------
|
||||
bool DicomImageView::isFusion() {
|
||||
if (!mImageViewer) return false;
|
||||
return mImageViewer->GetFusion();
|
||||
|
||||
}
|
||||
@@ -332,6 +333,10 @@ void DicomImageView::setFusionInput(DicomImageView *overlay) {
|
||||
|
||||
}
|
||||
|
||||
DicomImageView * DicomImageView::getFusionInput(){
|
||||
return mOverlayView;
|
||||
}
|
||||
|
||||
void DicomImageView::setFusionOpacity(double percent) {
|
||||
if (isFusion()) {
|
||||
mImageViewer->IncreFusionOpacity(percent);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#ifndef OMEGAV_DICOM_IMAGE_VIEW_H
|
||||
#ifndef OMEGAV_DICOM_IMAGE_VIEW_H
|
||||
#define OMEGAV_DICOM_IMAGE_VIEW_H
|
||||
|
||||
#include <QFrame>
|
||||
@@ -87,6 +87,8 @@ public:
|
||||
|
||||
void setFusionInput(DicomImageView *overlay);
|
||||
|
||||
DicomImageView * getFusionInput();
|
||||
|
||||
void unloadFusion();
|
||||
|
||||
bool checkFusion(DicomImageView *overlap);
|
||||
|
||||
Reference in New Issue
Block a user