[vtkusers] Coloring Glyphs

Beau Sapach beau.sapach at ualberta.ca
Fri Nov 18 15:41:04 EST 2005


Yup, that worked!  Now... how can I set the color lookuptable?  I've tried
using setlookuptable in the mapper but that hasn't made a difference....

Beau

-----Original Message-----
From: Bruno da Silva de Oliveira [mailto:bruno at esss.com.br] 
Sent: Friday, November 18, 2005 11:52 AM
To: Beau Sapach
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] Coloring Glyphs

Try to set the range in the mapper.

HTH,

Beau Sapach wrote:

> Hello everyone,
>
> I'm using vtkGlyph3D to represent every point of an image with an 
> arrow. The image has vector data attached to it which I'm using to 
> orient and scale the arrows, this all works no-problem. When I choose 
> to color the arrows using SetColorModeToColorByVector() then all the 
> arrows stay blue, all the time. Even if I choose to color by scalar, 
> again everything is blue. I can verify that the range of scalar data 
> is between 0 and 2000, and the vector data is obviously there because 
> orientation and scaling looks correct.
>
> Is there any trick to coloring glyphs? Something that I'm missing? All 
> the point data attached to the image is shorts, that is vtkShortArray. 
> Does that matter??? Oh, and is there a way of specifying which 
> lookuptable to use with the glyph filter?
>
> Beau
>
>------------------------------------------------------------------------
>
>_______________________________________________
>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
>  
>

-- 
Bruno da Silva de Oliveira
bruno at esss.com.br
ESSS - Engineering Simulation and Scientific Software
http://www.esss.com.br





More information about the vtkusers mailing list