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)
#include "vtkPlot.h"
#include "vtkTable.h"
#include "radixvtkerrorbars.hh"
#include "radixwidgets/vtkPlotPointsErrorBars.hh"
#include "radixwidgets/vtkchartwidget.hh"
#include "radixvtkerrorbars.hh"
vtkChartMainWindow::vtkChartMainWindow(QWidget* parent)
: QMainWindow(parent)
{
......@@ -65,10 +67,12 @@ vtkChartMainWindow::vtkChartMainWindow(QWidget* parent)
line->SetInputData(table, 0, 2); // x-axis and sin
line->SetColor(0, 255, 0, 255);
line->SetWidth(5.0);
line = vtkChartWidget->chartXY()->AddPlot(vtkChart::POINTS);
line->SetInputData(table, 0, 3); // x-axis and sum
line->SetColor(255, 0, 255, 255);
line->SetWidth(2.0);
vtkPlotPointsErrorBars* points = vtkPlotPointsErrorBars::New();
vtkChartWidget->chartXY()->AddPlot(points);
points->SetInputData(table, 0, 3); // x-axis and sum
points->SetColor(255, 0, 255, 255);
points->SetWidth(2.0);
}
vtkChartMainWindow::~vtkChartMainWindow() {}
......
Markdown is supported
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