[vtkusers] vtkContourFilter and SelectInputScalars(String)
Randall Hand
randall.hand at gmail.com
Tue May 3 12:43:59 EDT 2005
You have to find out the "port ID's" for the input data (only way I've found
so far is digging through source), and do things like this:
filter->SetInputArrayToProcess(id, 0, 0, 0, "fieldname");
Look in the constructor for the class.. Seems that the ContourFilter only
supports 1 port: port 0 is the Scalar Field.
I went through this for the vtkGlyph3D class last week, it supports 4 ports:
port - Data
0 Scalars to use for scaling
1 Vector for aligning glyphs
2 Normals
3 Scalars to use for color
On 5/3/05, Jon Blower <jdb at mail.nerc-essc.ac.uk> wrote:
>
> Hi all,
>
> Further to my earlier post of today, I have converted some code to use
> vtkContourFilter instead of the now-deprecated vtkKitwareContourFilter.
> However, the code used the .SelectInputScalars(String) method of
> vtkKitwareContourFilter, which is not present in vtkContourFilter. I've
> had
> a quick look and I can't find an obvious replacement. Is there another
> method I can use instead of SelectInputScalars() to tell the contourFilter
> which dataset to use out of a file?
>
> Thanks in advance,
> Jon
>
> --------------------------------------------------------------
> Dr Jon Blower Tel: +44 118 378 5213 (direct line)
> Technical Director Tel: +44 118 378 8741 (ESSC)
> Reading e-Science Centre Fax: +44 118 378 6413
> ESSC Email: jdb at mail.nerc-essc.ac.uk
> University of Reading
> 3 Earley Gate
> Reading RG6 6AL, UK
> --------------------------------------------------------------
>
> _______________________________________________
> 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
>
--
Randall Hand
http://www.yeraze.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050503/b0d855da/attachment.htm>
More information about the vtkusers
mailing list