From 0bbd319204b89f4b6460283926af94976da787c2 Mon Sep 17 00:00:00 2001 From: kradchen Date: Fri, 18 Jul 2025 15:05:46 +0800 Subject: [PATCH] fix: fix measure value change after view resize --- src/src/Rendering/Measure/EllipseAnnotationActor.cpp | 1 - src/src/Rendering/Measure/EllipseAnnotationActor.h | 2 -- src/src/Rendering/Measure/OpenPolyAnnotationActor.h | 1 - src/src/Rendering/Measure/RoundAnnotationActor.cpp | 1 - src/src/Rendering/Measure/RoundAnnotationActor.h | 1 - 5 files changed, 6 deletions(-) diff --git a/src/src/Rendering/Measure/EllipseAnnotationActor.cpp b/src/src/Rendering/Measure/EllipseAnnotationActor.cpp index 9741e19..66efba4 100644 --- a/src/src/Rendering/Measure/EllipseAnnotationActor.cpp +++ b/src/src/Rendering/Measure/EllipseAnnotationActor.cpp @@ -93,7 +93,6 @@ EllipseAnnotationActor::EllipseAnnotationActor() { //BaseDataPoints->SetPoint(1, 512, 512, 0); renderPoints->SetNumberOfPoints(GRANULARITY + 1); - BaseDataPoints->Modified(); controlP_lt->AddObserver(DraggableActorEvents::DragEvent, this, &EllipseAnnotationActor::controlPointCb); controlP_rt->AddObserver(DraggableActorEvents::DragEvent, this, &EllipseAnnotationActor::controlPointCb); controlP_lb->AddObserver(DraggableActorEvents::DragEvent, this, &EllipseAnnotationActor::controlPointCb); diff --git a/src/src/Rendering/Measure/EllipseAnnotationActor.h b/src/src/Rendering/Measure/EllipseAnnotationActor.h index f6d6da8..3586e69 100644 --- a/src/src/Rendering/Measure/EllipseAnnotationActor.h +++ b/src/src/Rendering/Measure/EllipseAnnotationActor.h @@ -65,8 +65,6 @@ private: QString mUnitcm2 ; QString mAreaName; - QString mRenderTime; - template void vtkValueCalcTemplate(vtkImageData *image, int sliceNumber, double *pt1, double *pt2, double *normals, QString &message); }; diff --git a/src/src/Rendering/Measure/OpenPolyAnnotationActor.h b/src/src/Rendering/Measure/OpenPolyAnnotationActor.h index 6d5cc88..a960cab 100644 --- a/src/src/Rendering/Measure/OpenPolyAnnotationActor.h +++ b/src/src/Rendering/Measure/OpenPolyAnnotationActor.h @@ -81,7 +81,6 @@ protected: vtkTextProperty *textProperty; bool measured; - QString mRenderTime; QString mUnitmm ; QString mUnitcm ; QString mUnitmm2; diff --git a/src/src/Rendering/Measure/RoundAnnotationActor.cpp b/src/src/Rendering/Measure/RoundAnnotationActor.cpp index b5823dd..1844a85 100644 --- a/src/src/Rendering/Measure/RoundAnnotationActor.cpp +++ b/src/src/Rendering/Measure/RoundAnnotationActor.cpp @@ -50,7 +50,6 @@ void RoundAnnotationActor::BuildShape() { double p_rb[3] = {0, 0, 0}; double* disp_rb = controlP_rb->GetRenderPosition(); MapScreenPointToWorld(disp_rb[0], disp_rb[1], this->Renderer, p_rb); - // analyzePixel(p_lt,p_rb); } double *rp = renderPoints->GetPoint(0); diff --git a/src/src/Rendering/Measure/RoundAnnotationActor.h b/src/src/Rendering/Measure/RoundAnnotationActor.h index 9102214..90b692b 100644 --- a/src/src/Rendering/Measure/RoundAnnotationActor.h +++ b/src/src/Rendering/Measure/RoundAnnotationActor.h @@ -61,7 +61,6 @@ private: QString mUnitmm ; QString mUnitcm ; QString mDiameterName; - QString mRenderTime; }; #endif /* OMEGAV_ROUNDANNOTATIONACTOR_H */