[vtk-developers] vtkLookupTable::Build

Miller, James V (CRD) millerjv at crd.ge.com
Tue Dec 18 08:56:43 EST 2001


I added a ForceBuild() method to vtkLookupTable that always rebuilds the table. I also added a
GetIndex(float) method that tells you what table entry will used for a particular scalar value.


-----Original Message-----
From: John Biddiscombe [mailto:jbiddiscombe at skippingmouse.co.uk]
Sent: Tuesday, December 18, 2001 3:05 AM
To: Miller, James V (CRD); Vtk Developers (E-mail)
Subject: Re: [vtk-developers] vtkLookupTable::Build


I've got a version of LookupTable on my system ehere I've added a
"InsertTime" variable as well as a build time variable.

if you do
SetHueRange(...)
SetSaturationRange(....)
etc
then Build
Then SetTableValue(...) directly for your fixed values (eg 0 transparent in
my case)

you later have to say
lut->ClearInsertionState()
before Build will work again.

I didn't check it in because it might introduce problems with some. I'll
happily do so if all are OK with it.

JB
(If there's a better solution, please tell)



----- Original Message -----
From: "Miller, James V (CRD)" <millerjv at crd.ge.com>
To: "Miller, James V (CRD)" <millerjv at crd.ge.com>; "Vtk Developers (E-mail)"
<vtk-developers at public.kitware.com>
Sent: Monday, December 17, 2001 11:33 PM
Subject: RE: [vtk-developers] vtkLookupTable::Build


> Just dug through the legacy system.  Looks like this "feature" was in the
legacy system as well :)
>
> -----Original Message-----
> From: Miller, James V (CRD)
> Sent: Monday, December 17, 2001 3:21 PM
> To: Vtk Developers (E-mail)
> Subject: [vtk-developers] vtkLookupTable::Build
>
>
> There is logic in vtkLookupTable::Build() that prohibits a lookup table
from recalculating its colors
> if SetTableValue has been called. So its impossible to get a lookup table
to recalculate if someone
> has every modified the lookup table directly.
>
> Searching back into the cvs log, it looks like this is way LookupTable has
acted since it was called
> vlLookupTable back in 1994.
>
> Is this the desired behavior (now)?
>
> I have an app where I want to have the lookup table calculate the
appropriate colors, then I want to
> modify a few of them.  Later on, I would to reset the values to the
initial state.
>
>
> Jim Miller
> _____________________________________
> Visualization & Computer Vision
> GE Corporate Research & Development
> Bldg. KW, Room C218B
> P.O. Box 8, Schenectady NY 12301
>
> millerjv at crd.ge.com < mailto:millerjv at crd.ge.com
<mailto:millerjv at crd.ge.com> >
> (518) 387-4005, Dial Comm: 8*833-4005,
> Cell: (518) 505-7065, Fax: (518) 387-6981
>
>
>
>
>



More information about the vtk-developers mailing list