[vtkusers] Set the Color of each line in vtkChartParallelCoordinates
Matthias Eggert
besessener at gmx.net
Mon Nov 21 14:35:58 EST 2011
Marcus D. Hanwell <marcus.hanwell <at> kitware.com> writes:
>
> On Sat, Oct 15, 2011 at 3:22 PM, HansAusBremen <hansausbremen <at> gmx.net>
wrote:
> > Thanks,
> >
> > but after updating to vtk-5.8 these functions still don't exist.
> > So I had 2 hours of compiling for nothing?
> >
> > Can somebody please help.
> >
> > vtkPlot does NOT have the functions, but in the examples they are used:
> >
> >> SelectColorArray()
> >> SetLookupTable()
> >> SetScalarVisibility()
> >>
> In C++ code you would need to do a vtkPlotPoints::SafeDowncast in
> order to access those methods as they are not in the base class.
>
> http://www.vtk.org/doc/nightly/html/classvtkPlotPoints.html
>
> Marcus
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
Hi,
I tried your solutions, but I think I still don't get it. When I try:
vtkSmartPointer<vtkLookupTable> lookupTable =
vtkSmartPointer<vtkLookupTable>::New();
lookupTable->SetTableRange(0.0, 10.0);
lookupTable->Build();
vtkPlotPoints* tmp = vtkPlotPoints::SafeDownCast(chart);
tmp->SetLookupTable(lookupTable);
tmp->SelectColorArray("Category_ids");
I just get a Run-Time exception. You don't have any c++ example do you?
Furthermore, a little different from the original topic, how do I access the
lines, that have been selected? I just don't get it. Sorry for my stupidity^^
Kind regards,
Matthias
More information about the vtkusers
mailing list