Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LEFEBVREJP email
radix
Commits
0760f8fa
Commit
0760f8fa
authored
Sep 12, 2018
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
radixwidgets/examples/radixvtkerrorbars.cc
View file @
0760f8fa
...
...
@@ -13,9 +13,11 @@ VTK_MODULE_INIT(vtkRenderingFreeType)
#include
"vtkPlot.h"
#include
"vtkTable.h"
#include
"radix
vtke
rror
b
ars.hh"
#include
"radix
widgets/vtkPlotPointsE
rror
B
ars.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
()
{}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment