[vtkusers] Re: correct way to determine vtkStreamTracerReasonForTermination?

Goodwin Lawlor goodwin.lawlor at ucd.ie
Tue Aug 10 11:54:30 EDT 2004


Hi Tom,

This came up on the list last April. Here's the last of the thread:
http://public.kitware.com/pipermail/vtkusers/2004-April/073493.html


The synopsis went something like: the Get****() fuctions are for accessing
properties of a class not the outputs, which the ReasonForTermination array
is. The output is accessed through GetOutput() so its updated correctly.
There's new pipeline coming soon that should take care of the complexity of
having more than just a data object in the ouput.


hth

Goodwin


"tom fogal" <tfogal at apollo.sr.unh.edu> wrote in message
news:200408101517.i7AFHtsp031001 at apollo.sr.unh.edu...
> Hi all, I've been looking in to determining what causes my stream lines
> to end when they do, and vtkStreamTracer seems to have an enum
> specifically for this purpose -- ReasonForTermination. I am a little
> concerned because it seems to be very difficult to access, and so I'm
> starting to believe that I'm not accessing it in the right way.
>
> I would expect some sort of GetReasonForTermination() function that
> returns one of the valid values in the enum, but I can't seem to find
> one. From looking at the code, it seems like I need to get the output's
> cell data, and from that I can extract a vtkDataArray* which is really
> a vtkIntArray*. Then the first element (err, tuple) of that Array will
> be the ReasonForTermination.
>
> I feel like I'm doing things the wrong way, that I am missing some
> blatant interface. Has anyone used this information before? Could you
> clarify or redirect me towards what I should be doing to get this data?
>
> Thanks!
>
> -tom
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>






More information about the vtkusers mailing list