fix: fix measure value change after view resize
This commit is contained in:
@@ -93,7 +93,6 @@ EllipseAnnotationActor::EllipseAnnotationActor() {
|
|||||||
//BaseDataPoints->SetPoint(1, 512, 512, 0);
|
//BaseDataPoints->SetPoint(1, 512, 512, 0);
|
||||||
|
|
||||||
renderPoints->SetNumberOfPoints(GRANULARITY + 1);
|
renderPoints->SetNumberOfPoints(GRANULARITY + 1);
|
||||||
BaseDataPoints->Modified();
|
|
||||||
controlP_lt->AddObserver(DraggableActorEvents::DragEvent, this, &EllipseAnnotationActor::controlPointCb);
|
controlP_lt->AddObserver(DraggableActorEvents::DragEvent, this, &EllipseAnnotationActor::controlPointCb);
|
||||||
controlP_rt->AddObserver(DraggableActorEvents::DragEvent, this, &EllipseAnnotationActor::controlPointCb);
|
controlP_rt->AddObserver(DraggableActorEvents::DragEvent, this, &EllipseAnnotationActor::controlPointCb);
|
||||||
controlP_lb->AddObserver(DraggableActorEvents::DragEvent, this, &EllipseAnnotationActor::controlPointCb);
|
controlP_lb->AddObserver(DraggableActorEvents::DragEvent, this, &EllipseAnnotationActor::controlPointCb);
|
||||||
|
|||||||
@@ -65,8 +65,6 @@ private:
|
|||||||
QString mUnitcm2 ;
|
QString mUnitcm2 ;
|
||||||
QString mAreaName;
|
QString mAreaName;
|
||||||
|
|
||||||
QString mRenderTime;
|
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
void vtkValueCalcTemplate(vtkImageData *image, int sliceNumber, double *pt1, double *pt2, double *normals, QString &message);
|
void vtkValueCalcTemplate(vtkImageData *image, int sliceNumber, double *pt1, double *pt2, double *normals, QString &message);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -81,7 +81,6 @@ protected:
|
|||||||
|
|
||||||
vtkTextProperty *textProperty;
|
vtkTextProperty *textProperty;
|
||||||
bool measured;
|
bool measured;
|
||||||
QString mRenderTime;
|
|
||||||
QString mUnitmm ;
|
QString mUnitmm ;
|
||||||
QString mUnitcm ;
|
QString mUnitcm ;
|
||||||
QString mUnitmm2;
|
QString mUnitmm2;
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ void RoundAnnotationActor::BuildShape() {
|
|||||||
double p_rb[3] = {0, 0, 0};
|
double p_rb[3] = {0, 0, 0};
|
||||||
double* disp_rb = controlP_rb->GetRenderPosition();
|
double* disp_rb = controlP_rb->GetRenderPosition();
|
||||||
MapScreenPointToWorld(disp_rb[0], disp_rb[1], this->Renderer, p_rb);
|
MapScreenPointToWorld(disp_rb[0], disp_rb[1], this->Renderer, p_rb);
|
||||||
// analyzePixel(p_lt,p_rb);
|
|
||||||
}
|
}
|
||||||
double *rp = renderPoints->GetPoint(0);
|
double *rp = renderPoints->GetPoint(0);
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,6 @@ private:
|
|||||||
QString mUnitmm ;
|
QString mUnitmm ;
|
||||||
QString mUnitcm ;
|
QString mUnitcm ;
|
||||||
QString mDiameterName;
|
QString mDiameterName;
|
||||||
QString mRenderTime;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* OMEGAV_ROUNDANNOTATIONACTOR_H */
|
#endif /* OMEGAV_ROUNDANNOTATIONACTOR_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user