[vtkusers] Glyphs: color by one scalar, scale by another

Craig N. Scott craig.scott at csiro.au
Thu Oct 14 20:01:50 EDT 2004


Thanks Frank. Unfortunately, I have to be able to do both scale and
color with just scalar data or just vector data. However, I have been
able to do what I want using vtkProgrammableGlyphFilter. I had to copy
the data set for one of the scalars and store it, but it looks like the
only solution that I can see.


On Fri, 2004-10-15 at 00:33, Frank Conradie wrote:
> Hi Craig
> 
> As far as I'm aware, you will have to use scalars for the one and vectors
> for the other value, e.g:
> 
> glyphs.SetColorModeToColorByScalar()
> glyphs.SetScaleModeToScaleByVector()
> 
> Frank Conradie
> Rossland, BC, Canada
> 
> 
> ----- Original Message -----
> From: "Craig N. Scott" <craig.scott at csiro.au>
> To: <vtkusers at vtk.org>
> Sent: Wednesday, October 13, 2004 6:51 PM
> Subject: [vtkusers] Glyphs: color by one scalar, scale by another
> 
> 
> > Hi all. Anyone know if it is possible to have the color and scaling of
> > vtkGlyph3D's controlled by *different* scalars? I need the "radius"
> > scalar to control the size of a sphere glyph, but I need each sphere
> > colored according to a different scalar, like "velocity".
> >
> > I eventually need to do this with vectors instead of scalars too, but I
> > am assuming the solution to the above would be similar for vectors.
> >
> > Any suggestions appreciated. Thanks in advance.
> >
> > --
> > Dr Craig Scott, CSIRO (CMIS)
> > Melbourne, Australia
> >
> > Computers are easy to reboot. Attitudes are much harder.
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq>
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
-- 
Craig Scott, CSIRO (CMIS)
Ph:  +613 9545 8096

Computers are easy to reboot. Attitudes are much harder.



More information about the vtkusers mailing list