Commit 0760f8fa authored by Purves, Murray's avatar Purves, Murray
Browse files

#20 WIP Moving chart point data series to use new version

parent abaf373c
Pipeline #15621 passed with stages
in 7 minutes and 54 seconds
...@@ -13,9 +13,11 @@ VTK_MODULE_INIT(vtkRenderingFreeType) ...@@ -13,9 +13,11 @@ VTK_MODULE_INIT(vtkRenderingFreeType)
#include "vtkPlot.h" #include "vtkPlot.h"
#include "vtkTable.h" #include "vtkTable.h"
#include "radixvtkerrorbars.hh" #include "radixwidgets/vtkPlotPointsErrorBars.hh"
#include "radixwidgets/vtkchartwidget.hh" #include "radixwidgets/vtkchartwidget.hh"
#include "radixvtkerrorbars.hh"
vtkChartMainWindow::vtkChartMainWindow(QWidget* parent) vtkChartMainWindow::vtkChartMainWindow(QWidget* parent)
: QMainWindow(parent) : QMainWindow(parent)
{ {
...@@ -65,10 +67,12 @@ vtkChartMainWindow::vtkChartMainWindow(QWidget* parent) ...@@ -65,10 +67,12 @@ vtkChartMainWindow::vtkChartMainWindow(QWidget* parent)
line->SetInputData(table, 0, 2); // x-axis and sin line->SetInputData(table, 0, 2); // x-axis and sin
line->SetColor(0, 255, 0, 255); line->SetColor(0, 255, 0, 255);
line->SetWidth(5.0); line->SetWidth(5.0);
line = vtkChartWidget->chartXY()->AddPlot(vtkChart::POINTS);
line->SetInputData(table, 0, 3); // x-axis and sum vtkPlotPointsErrorBars* points = vtkPlotPointsErrorBars::New();
line->SetColor(255, 0, 255, 255); vtkChartWidget->chartXY()->AddPlot(points);
line->SetWidth(2.0); points->SetInputData(table, 0, 3); // x-axis and sum
points->SetColor(255, 0, 255, 255);
points->SetWidth(2.0);
} }
vtkChartMainWindow::~vtkChartMainWindow() {} vtkChartMainWindow::~vtkChartMainWindow() {}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment