[vtkusers] Coloring Glyphs

Beau Sapach beau.sapach at ualberta.ca
Fri Nov 18 11:55:40 EST 2005


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20051118/37e439ec/attachment.htm>


More information about the vtkusers mailing list