[vtkusers] Re: Change color of axes

Goodwin Lawlor goodwin.lawlor at ucd.ie
Tue Jan 18 18:58:18 EST 2005


Change the values of the point data scalars to a number between 0 and 1.

The default is 0 0 0.25 0.25 0.5 0.5 (there are six scalars for the 6
points... 2 for each line)

0 =  red
0.25 = yellow
0.5 = green
(1.0 = blue)

These values are indexes into the default lookup table.

So to change the green axis to blue:

vtkAxes axes
    axes Update

set scalars [[[axes GetOuput] GetPointData] GetScalars]

$scalars SetTuple1 4 1.0
$scalars SetTuple1 5 1.0

hth

Goodwin

"Kanghong Li" <kli at issi-hsv.com> wrote in message
news:000501c4fdb3$2802c520$7b01a8c0 at SUN...
> How can we change the defaut colors (red(x), yellow(y), green(z)) of the
> vtkaxes? Thanks.
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>






More information about the vtkusers mailing list