[vtkusers] Problem with 'vtkThreshold'

Nour Mestiri nourmestiri at yahoo.fr
Thu Nov 13 04:44:13 EST 2008


Hi,
I knew that i can resolve the problem using the 'SafeDownCast' function. How can i do this?
Thanks

--- En date de : Jeu 13.11.08, "Björn Zehner" <bjoern.zehner at ufz.de> a écrit :

De: "Björn Zehner" <bjoern.zehner at ufz.de>
Objet: Re: [vtkusers] Problem with 'vtkThreshold'
À: nourmestiri at yahoo.fr
Cc: "vtk" <vtkusers at vtk.org>
Date: Jeudi 13 Novembre 2008, 9h15


Hi,
sometimes I get this kind of error if an include is missing. In your case that
would be #include "vtkDataObject.h"
Kind regards,
Bjoern

----- Ursprüngliche Nachricht -----
Von: Nour Mestiri <nourmestiri at yahoo.fr>
Datum: Mittwoch, 12. November 2008, 18:55
Betreff: [vtkusers] Problem with 'vtkThreshold'
An: vtk <vtkusers at vtk.org>






> Hi all vtk users.
> I have a problem with 'vtkThreshold' class.
> I want to use the output of a 'vtkThreshold ' as the input of a 'GeometryFilter'.
> I do this:
> vtkThreshold *thresholdEdgels = vtkThreshold::New();
> ...
> ...
> vtkGeometryFilter *gf = vtkGeometryFilter::New();
> gf->SetInput(thresholdEdgels->GetOutput());
 
> When i this this code, i have this error:
> cannot convert parameter 1 from 'class vtkUnstructuredGrid *' to 'class vtkDataObject *'
 
> How should i do to rectify this?
> Thanks a lot


> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: 
> http://www.vtk.org/Wiki/VTK_FAQFollow this link to 
> subscribe/unsubscribe:http://www.vtk.org/mailman/listinfo/vtkusers

------------------------------------------------------------------------- 
Dr. Bjoern Zehner 
UFZ Centre for Environmental Research Leipzig-Halle 
Permoserstrasse 15 
04318 Leipzig 
Germany 
http://www.ufz.de/index.php?en=5673 
Tel: ++49 (341) 235 1979 
Fax: ++49 (341) 235 1939




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081113/0b673983/attachment.htm>


More information about the vtkusers mailing list