[vtkusers] VtkAxes Color
Malcolm Drummond
malcolm at geovision.co.za
Tue May 7 06:36:27 EDT 2002
Hi Giancarlo
I think you could reset the scalar values if you get the output of vtkAxes. Something like ...
set s [[[axes GetOutput] GetCellData] GetScalars]
for {set i 0} {$i < 3} {incr i} {
$s SetScalar $i WhateverValueYouLike
}
I'm not sure whether vtkAxes uses point or cell data but for point data the approach would be similar.
Hope this helps
Malcolm
----- Original Message -----
From: David Pont
To: amati at ira.cnr.it ; vtkusers at public.kitware.com
Sent: Monday, May 06, 2002 11:48 PM
Subject: Re: [vtkusers] VtkAxes Color
Hi Giancarlo,
my solution to this was to create 3 instances of vtkAxes, turn on the X, Y and Z axis respectively (and turn off the others), see SetXAxisVisibility etc, then colour the resulting actors as I desired. It seems a bit heavy handed, but it works and I dont know of a better way.
regards
Dave Pont
>From: Giancarlo Amati
>To: vtkusers at public.kitware.com
>Subject: [vtkusers] VtkAxes Color
>Date: Mon, 29 Apr 2002 08:43:26 +0200 (CEST)
>
>Hello Everybody,
>
>Using VtkAxes I can create XYZ Axes where my Y axes is yellow while the
>others are black. How can I change that colors and assing to every one a
>different color? Is it possible using vtkAxes?
>
>Bye & Thank a lot
>Giancarlo
>
>--
>----------------------------------------
>dott. Giancarlo Amati |
>(amati at ira.cnr.it) |
> |
>National Research Council |
>RadioAstronomical Institute |
>office phone n. +39 051 6399405 |
>via Gobetti 101 - Bologna (Italy) |
>----------------------------------------
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers
------------------------------------------------------------------------------
MSN Photos is the easiest way to share and print your photos: Click Here
_______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020507/f9e69c19/attachment.htm>
More information about the vtkusers
mailing list