[vtkusers] multiple vtkScalars in one dataset use lookuptable problem?

Dominik Szczerba domi at vision.ee.ethz.ch
Sun Apr 22 09:28:23 EDT 2007


In future, please share your solutions with others too.
Dominik

On Sunday 22 April 2007 15:24, g00dioa g00dioa wrote:
> Thanks,
>
> i find the way
>
> ->GetPointData()->SetActiveScalars("Pressure")
>
> Thank you again
>
> 2007/4/22, Dominik Szczerba <domi at vision.ee.ethz.ch>:
> > Study SetActiveScalars, SetColorArray and
> > SetScalarModeToUseCell/Point/FieldData.
> > Dominik
> >
> > On Sunday 22 April 2007 13:58, g00dioa g00dioa wrote:
> > > Hi,all
> > > I use a dataset with multiple vtkScalars example "pressure" "density"
> > > or others.
> > > now I want to show color map which i select to show.but it always show
> >
> > the
> >
> > > first scalars.
> > >
> > > i try to use
> > >
> > > mapper.SetScalarRange(dataset.GetPointData
> > > ().GetScalars("density").GetRange());
> > >
> > > but it dosn't work.the range set to "density" but the color also show
> > > "pressure".
> > >
> > > Thanks in advance
> >
> > --
> > Dominik Szczerba, PhD
> > Computer Vision Lab CH-8092 Zurich
> > http://www.vision.ee.ethz.ch/~domi
> > _______________________________________________
> > 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

-- 
Dominik Szczerba, PhD
Computer Vision Lab CH-8092 Zurich
http://www.vision.ee.ethz.ch/~domi



More information about the vtkusers mailing list