[vtkusers] Deprecated method for vtkThreshold
Bill Lorensen
bill.lorensen at gmail.com
Mon Aug 10 13:42:14 EDT 2009
Brian,
Thanks. Actually, I used:
threshold->SetInputArrayToProcess(0, 0, 0,
vtkDataObject::FIELD_ASSOCIATION_CELLS,
vtkDataSetAttributes::SCALARS);
since I wanted to mimic the way the program used to work.
If I had received an error message like:
vtkThreshold (0x932a7e0): You have used one of the following deprecated methods.
SetAttributeMode(VTK_ATTRIBUTE_MODE_USE_CELL_DATA) or
SetAttributeMode(2).
To achieve the same results use:
SetInputArrayToProcess(0, 0, 0,
vtkDataObject::FIELD_ASSOCIATION_CELLS::SCALARS).
instead of the one I received,
vtkThreshold (0x90db1b8): You have set the attribute mode on
vtkThreshold. This method is deprecated, please use
SetInputArrayToProcess instead.
I could have solved the problem myself.
This is one of my gripes about deprecation. If it must be done, then
please help the customer fix the problem.
Bill
On Mon, Aug 10, 2009 at 11:23 AM, Wylie, Brian<bnwylie at sandia.gov> wrote:
> Odd... My mailer did something weird with the code line...
>
> Should be.. >>> threshold->SetInputArrayToProcess(0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_CELLS, "foo");
>
>
> Brian Wylie - Org 1424
> Sandia National Laboratories
> MS 1323 - Building CSRI/242
> (505)844-2238 FAX(505)284-2518
> _______ __
> /_ __(_) /_____ _____
> / / / / __/ __ `/ __ \
> / / / / /_/ /_/ / / / /
> /_/ /_/\__/\__,_/_/ /_/
> Informatics Toolkit
>
> -----Original Message-----
> From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf Of Wylie, Brian
> Sent: Monday, August 10, 2009 9:20 AM
> To: Bill Lorensen; VTK Users
> Subject: Re: [vtkusers] Deprecated method for vtkThreshold
>
> Hi Bill,
>
> Here's my guess...
>
> If the array you want to threshold on is called "foo" and it's an attribute on the cells.
>
> threshold->SetInputArrayToProcess(0, 0, 0,
> threshold->vtkDataObject::FIELD_ASSOCIATION_CELLS, "foo");
>
>
> Brian Wylie - Org 1424
> Sandia National Laboratories
> MS 1323 - Building CSRI/242
> (505)844-2238 FAX(505)284-2518
> _______ __
> /_ __(_) /_____ _____
> / / / / __/ __ `/ __ \
> / / / / /_/ /_/ / / / /
> /_/ /_/\__/\__,_/_/ /_/
> Informatics Toolkit
>
> -----Original Message-----
> From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf Of Bill Lorensen
> Sent: Saturday, August 08, 2009 1:50 PM
> To: VTK Users
> Subject: [vtkusers] Deprecated method for vtkThreshold
>
> I have a program that used to work in prior versions of vtk. Now when I run it, I get the unhelpful message:
>
> vtkThreshold (0x90db1b8): You have set the attribute mode on vtkThreshold. This method is deprecated, please use SetInputArrayToProcess instead.
>
> The method I use is:
> SetAttributeModeToUseCellData() applied to an instance of vtkThreshold.
>
> It would be nice if the deprecation warning would tell me exactly how to get this formerly valid program working again.
>
> Thanks,
>
> Bill
> _______________________________________________
> 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
>
>
>
More information about the vtkusers
mailing list