[vtkusers] can vtkAxes colors be changed?
Nigel Nunn
nNunn at ausport.gov.au
Tue May 28 16:51:39 EDT 2002
Hi David,
> I was wondering if anyone knew how to change the colors of the vtkAxes
> class. I use a vtkAxes->vtkTubeFilter->vtkPolyDataMapper->vtkActor
> pipeline. Changing the actor's color has no effect (it is still red
> on the x-axis, yellow on the y-axis., and green on the z-axis)
> Does anyone have any better ideas?
Looking in file (Vtk4) vtkAxes.cxx Version: $Revision: 1.37 $
you can find this going on:
newScalars->InsertNextValue(0.0);
newScalars->InsertNextValue(0.25);
newScalars->InsertNextValue(0.5);
To change colors, how about GetScalars() and SetValue(i, c[i]) ??
Nigel
**********************************************************************
This message is intended for the addressee named and may contain
confidential and privileged information. If you are not the intended
recipient please note that any form of distribution, copying or use of
this communication or the information in it is strictly prohibited and
may be unlawful. If you receive this message in error, please delete it
and notify the sender.
Keep up to date with what's happening in Australian sport.
Visit http://www.ausport.gov.au
**********************************************************************
More information about the vtkusers
mailing list