Kaynağa Gözat

Smooth chart lines on Windows

On linux and mac, the default multisample should do the smoothing.
Julien Finet 13 yıl önce
ebeveyn
işleme
ebb3b0cb17

+ 3 - 0
Libs/Visualization/VTK/Widgets/ctkVTKChartView.cpp

@@ -83,6 +83,9 @@ void ctkVTKChartViewPrivate::init()
   //q->GetRenderWindow()->SetMultiSamples(0);
   //vtkOpenGLContextDevice2D::SafeDownCast(this->ContextView->GetContext()->GetDevice())
   //                                       ->SetStringRendererToQt();
+#ifdef Q_WS_WIN
+  q->GetRenderWindow()->SetLineSmoothing(true);
+#endif
   this->Chart->SetActionToButton(vtkChart::PAN, vtkContextMouseEvent::MIDDLE_BUTTON);
   this->Chart->SetActionToButton(vtkChart::SELECT, vtkContextMouseEvent::RIGHT_BUTTON);
 }