JKQTPlotter: useNonvisibleLineCompression is off by default

This commit is contained in:
jkriege2 2022-09-01 22:21:24 +02:00
parent 9b5549b8b5
commit 7f206882c1
3 changed files with 4 additions and 4 deletions

View File

@ -125,7 +125,7 @@ void JKQTPXYLineGraph::draw(JKQTPEnhancedPainter& painter) {
//qDebug()<<"JKQTPXYLineGraph::draw(): vec_linesP.size()=="<<vec_linesP.size(); //qDebug()<<"JKQTPXYLineGraph::draw(): vec_linesP.size()=="<<vec_linesP.size();
QList<QPolygonF> linesToDraw; QList<QPolygonF> linesToDraw;
if (getUseNonvisibleLineCompression()) linesToDraw=JKQTPClipPolyLines(JKQTPSimplifyPolyLines(vec_linesP, p.widthF()*getNonvisibleLineCompressionAgressiveness()), cliprect); if (getUseNonvisibleLineCompression()) linesToDraw=JKQTPClipPolyLines(JKQTPSimplifyPolyLines(vec_linesP, getNonvisibleLineCompressionAgressiveness()), cliprect);
else linesToDraw=JKQTPClipPolyLines(vec_linesP, cliprect); else linesToDraw=JKQTPClipPolyLines(vec_linesP, cliprect);
//qDebug()<<"JKQTPXYLineGraph::draw(): linesToDraw.size()=="<<linesToDraw.size()<<", clip: x="<<xmin<<".."<<xmax<<", y="<<ymin<<".."<<ymax; //qDebug()<<"JKQTPXYLineGraph::draw(): linesToDraw.size()=="<<linesToDraw.size()<<", clip: x="<<xmin<<".."<<xmax<<", y="<<ymin<<".."<<ymax;
for (const auto &linesP : linesToDraw) { for (const auto &linesP : linesToDraw) {

View File

@ -268,7 +268,7 @@ void JKQTPSpecialLineHorizontalGraph::draw(JKQTPEnhancedPainter& painter) {
QList<QPolygonF> pl_fordrawing; QList<QPolygonF> pl_fordrawing;
if (isHighlighted() || getDrawLine()) { if (isHighlighted() || getDrawLine()) {
if (getUseNonvisibleLineCompression()) pl_fordrawing=JKQTPClipPolyLine(JKQTPSimplifyPolyLines(pl, p.widthF()*getNonvisibleLineCompressionAgressiveness()), cliprect); if (getUseNonvisibleLineCompression()) pl_fordrawing=JKQTPClipPolyLine(JKQTPSimplifyPolyLines(pl, getNonvisibleLineCompressionAgressiveness()), cliprect);
else pl_fordrawing=JKQTPClipPolyLine(pl, cliprect); else pl_fordrawing=JKQTPClipPolyLine(pl, cliprect);
} }
@ -456,7 +456,7 @@ void JKQTPSpecialLineVerticalGraph::draw(JKQTPEnhancedPainter& painter) {
QList<QPolygonF> pl_fordrawing; QList<QPolygonF> pl_fordrawing;
if (isHighlighted() || getDrawLine()) { if (isHighlighted() || getDrawLine()) {
if (getUseNonvisibleLineCompression()) pl_fordrawing=JKQTPClipPolyLine(JKQTPSimplifyPolyLines(pl, p.widthF()*getNonvisibleLineCompressionAgressiveness()), cliprect); if (getUseNonvisibleLineCompression()) pl_fordrawing=JKQTPClipPolyLine(JKQTPSimplifyPolyLines(pl, getNonvisibleLineCompressionAgressiveness()), cliprect);
else pl_fordrawing=JKQTPClipPolyLine(pl, cliprect); else pl_fordrawing=JKQTPClipPolyLine(pl, cliprect);
} }

View File

@ -163,7 +163,7 @@ QPen JKQTPGraphLineStyleMixin::getLinePenForRects(JKQTPEnhancedPainter &painter,
JKQTPGraphLinesCompressionMixin::JKQTPGraphLinesCompressionMixin(): JKQTPGraphLinesCompressionMixin::JKQTPGraphLinesCompressionMixin():
m_useNonvisibleLineCompression(true), m_useNonvisibleLineCompression(false),
m_nonvisibleLineCompressionAgressiveness(1) m_nonvisibleLineCompressionAgressiveness(1)
{ {