[vtkusers] Lookup-Tabels and their range

Darshan Pai darshanpai at gmail.com
Fri Mar 5 15:09:38 EST 2010


You can also use vtkColorTransferFunction and use AddRGBPoint function
directly against the scalar value

Regards
Darshan

On Thu, Mar 4, 2010 at 5:21 PM, David E DeMarle <dave.demarle at kitware.com>wrote:

> You have complete control over the lookup table.
> See:
> vtkLookupTable::SetNumberOfTableValues()
> and
> vtkLookupTable::SetTableValue (vtkIdType indx, double r, double g,
> double b, double a=1.0)
>
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 28 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-371-3971 x109
>
>
>
> On Thu, Mar 4, 2010 at 4:56 PM, Sebastian Gatzka
> <sebastian.gatzka at stud.tu-darmstadt.de> wrote:
> > Hello world.
> >
> >
> >
> > Me again. Can I assign different scalar intervals to discrete lookup
> table
> > entries?
> >
> > The example is rather simple:
> >
> > I want the lookup-table to display scalars ranging from 1 to 10 in white,
> > from 11 to 15 in blue and from 16 to 22 in green.
> >
> > (Actual intervals and colors may vary!)
> >
> >
> >
> > Any ideas?
> >
> >
> >
> > Sebastian
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100305/6d09d405/attachment.htm>


More information about the vtkusers mailing list