<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Giancarlo</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I think you could reset the scalar values if you
get the output of vtkAxes. Something like ...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>set s [[[axes GetOutput] GetCellData]
GetScalars]</FONT></DIV>
<DIV><FONT face=Arial size=2>for {set i 0} {$i < 3} {incr i} {</FONT></DIV>
<DIV><FONT face=Arial size=2> $s SetScalar $i
WhateverValueYouLike</FONT></DIV>
<DIV><FONT face=Arial size=2>}</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I'm not sure whether vtkAxes uses point or cell
data but for point data the approach would be similar.</FONT></DIV>
<DIV><FONT face=Arial size=2>Hope this helps</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Malcolm</FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A href="mailto:david_pont@hotmail.com" title=david_pont@hotmail.com>David
Pont</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A href="mailto:amati@ira.cnr.it"
title=amati@ira.cnr.it>amati@ira.cnr.it</A> ; <A
href="mailto:vtkusers@public.kitware.com"
title=vtkusers@public.kitware.com>vtkusers@public.kitware.com</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, May 06, 2002 11:48 PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [vtkusers] VtkAxes
Color</DIV>
<DIV><BR></DIV>
<DIV>
<DIV>
<P><BR><BR></P>Hi Giancarlo,</DIV>
<DIV> 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.</DIV>
<DIV> </DIV>
<DIV> regards</DIV>
<DIV> Dave Pont</DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV></DIV>>From: Giancarlo Amati <AMATI@IRA.CNR.IT>
<DIV></DIV>>To: <A
href="mailto:vtkusers@public.kitware.com">vtkusers@public.kitware.com</A>
<DIV></DIV>>Subject: [vtkusers] VtkAxes Color
<DIV></DIV>>Date: Mon, 29 Apr 2002 08:43:26 +0200 (CEST)
<DIV></DIV>>
<DIV></DIV>>Hello Everybody,
<DIV></DIV>>
<DIV></DIV>>Using VtkAxes I can create XYZ Axes where my Y axes is yellow
while the
<DIV></DIV>>others are black. How can I change that colors and assing to
every one a
<DIV></DIV>>different color? Is it possible using vtkAxes?
<DIV></DIV>>
<DIV></DIV>>Bye & Thank a lot
<DIV></DIV>>Giancarlo
<DIV></DIV>>
<DIV></DIV>>--
<DIV></DIV>>----------------------------------------
<DIV></DIV>>dott. Giancarlo Amati |
<DIV></DIV>>(amati@ira.cnr.it) |
<DIV></DIV>> |
<DIV></DIV>>National Research Council |
<DIV></DIV>>RadioAstronomical Institute |
<DIV></DIV>>office phone n. +39 051 6399405 |
<DIV></DIV>>via Gobetti 101 - Bologna (Italy) |
<DIV></DIV>>----------------------------------------
<DIV></DIV>>
<DIV></DIV>>_______________________________________________
<DIV></DIV>>This is the private VTK discussion list.
<DIV></DIV>>Please keep messages on-topic. Check the FAQ at:
<DIV></DIV>>Follow this link to subscribe/unsubscribe:
<DIV></DIV>>http://public.kitware.com/mailman/listinfo/vtkusers
<DIV></DIV></DIV><BR clear=all>
<HR>
MSN Photos is the easiest way to share and print your photos: <A
href="http://g.msn.com/1HM104201/43">Click
Here</A><BR>_______________________________________________ This is the
private VTK discussion list. Please keep messages on-topic. Check the FAQ at:
<HTTP: vtkfaq cgi-bin public.kitware.com>Follow this link to
subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers
</BLOCKQUOTE></BODY></HTML>