岩心图片属性
This commit is contained in:
parent
60ccf0d0ec
commit
e529fa69a0
|
|
@ -204,7 +204,7 @@ void TransparentDraggableImage::setRange(double left_Low, double right_Hight)
|
|||
}
|
||||
|
||||
// 设置矩形范围
|
||||
void TransparentDraggableImage::setRange(double left_Low, double right_Hight,double leftPercentage, double widthPercentage)
|
||||
void TransparentDraggableImage::setRange(double left_Low, double right_Hight,double leftPercentage, double widthPercentage, int flag)
|
||||
{
|
||||
if(left_Low >= right_Hight) return;
|
||||
// qDebug() << "left_Low" << left_Low <<
|
||||
|
|
@ -214,6 +214,17 @@ void TransparentDraggableImage::setRange(double left_Low, double right_Hight,dou
|
|||
// 百分比转换实际距离
|
||||
double left;
|
||||
double width;
|
||||
// todo 现在大小判断有问题 这里只是绘图的判断 应该在上一层保存的时候做判断
|
||||
// if(flag == 0)
|
||||
// {
|
||||
// if(leftPercentage + widthPercentage > 100){
|
||||
// leftPercentage = 100 - widthPercentage;
|
||||
// }
|
||||
// }
|
||||
// else if(flag == 1)
|
||||
// {
|
||||
// }
|
||||
|
||||
left = (leftPercentage/100) * mPlot->yAxis->range().upper;
|
||||
width = (widthPercentage/100) * mPlot->yAxis->range().upper;
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,8 @@ public:
|
|||
|
||||
// 设置矩形范围
|
||||
void setRange(double left_Low, double right_Hight);
|
||||
void setRange(double left_Low, double right_Hight,double left, double width);
|
||||
// flag=0边距修改 1宽度修改
|
||||
void setRange(double left_Low, double right_Hight,double left, double width, int flag = 0);
|
||||
// 获取当前范围
|
||||
QCPRange getRange();
|
||||
QString getMResult();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user