mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-24 09:31:40 +08:00
JKQTPlotter: useNonvisibleLineCompression is off by default
This commit is contained in:
parent
9b5549b8b5
commit
7f206882c1
@ -125,7 +125,7 @@ void JKQTPXYLineGraph::draw(JKQTPEnhancedPainter& painter) {
|
||||
//qDebug()<<"JKQTPXYLineGraph::draw(): vec_linesP.size()=="<<vec_linesP.size();
|
||||
|
||||
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);
|
||||
//qDebug()<<"JKQTPXYLineGraph::draw(): linesToDraw.size()=="<<linesToDraw.size()<<", clip: x="<<xmin<<".."<<xmax<<", y="<<ymin<<".."<<ymax;
|
||||
for (const auto &linesP : linesToDraw) {
|
||||
|
@ -268,7 +268,7 @@ void JKQTPSpecialLineHorizontalGraph::draw(JKQTPEnhancedPainter& painter) {
|
||||
|
||||
QList<QPolygonF> pl_fordrawing;
|
||||
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);
|
||||
}
|
||||
|
||||
@ -456,7 +456,7 @@ void JKQTPSpecialLineVerticalGraph::draw(JKQTPEnhancedPainter& painter) {
|
||||
|
||||
QList<QPolygonF> pl_fordrawing;
|
||||
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);
|
||||
}
|
||||
|
||||
|
@ -163,7 +163,7 @@ QPen JKQTPGraphLineStyleMixin::getLinePenForRects(JKQTPEnhancedPainter &painter,
|
||||
|
||||
|
||||
JKQTPGraphLinesCompressionMixin::JKQTPGraphLinesCompressionMixin():
|
||||
m_useNonvisibleLineCompression(true),
|
||||
m_useNonvisibleLineCompression(false),
|
||||
m_nonvisibleLineCompressionAgressiveness(1)
|
||||
{
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user