<HTML>
<HEAD>
<TITLE>Re: [Paraview] What part of the pipeline is producing the request for UPDATE_EXTENT?</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>I belive it is supposed to work that your SetVOI() method should call modified, which will in turn cause the pipeline to call RequestInformation() on the next update. Make sure that SetVOI() is actually calling Modified().<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 2/12/08 9:26 PM, "Mike Jackson" <imikejackson@gmail.com> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>Pretty sure that was where we were going to end up BUT as far as I<BR>
can tell, the order of execution is :<BR>
RequestInformation()<BR>
SetVOI() // From the GUI in ParaView<BR>
RequestData();<BR>
<BR>
So we never really get a chance to get the VOI until RequestData<BR>
fires.. Is that what you have seen?<BR>
<BR>
Mike<BR>
On Feb 12, 2008, at 11:21 PM, Kent Eschenberg wrote:<BR>
<BR>
> Mike,<BR>
><BR>
> I accomplished what you want with one of our custom readers. In my<BR>
> opinion the documentation for RequestInformation, RequestData,<BR>
> extents, etc. is so poor that it is useless.<BR>
><BR>
> At RequestInformation I read enough of the input to get the overall<BR>
> input array size; apply the user-selected VOI; and return the<BR>
> desired subset as the whole extent. At RequestData I read the rest.<BR>
> I just don't bother letting VTK/ParaView manage the selection of<BR>
> the VOI. This has worked for 2.6.1 through 3.2.1.<BR>
><BR>
> Kent<BR>
> Pittsburgh Supercomputing Center<BR>
><BR>
> Mike Jackson wrote:<BR>
>> I can do that but I don't think it will work.<BR>
>> In paraview, I have managed to set an auto-generated UI for the<BR>
>> VOI. Now, the user opens our file, RequestInformation is run (I<BR>
>> can put some sane defaults for the VOI) and things are ok so far.<BR>
>> Now the user clicks "Apply" and then SetVOI is called with the<BR>
>> values from the GUI and then RequestData() is called after that.<BR>
>> So where do I update WHOLE_EXTENT? Or just take the values from<BR>
>> the VOI, create a vtkImageObject from that, and then just<BR>
>> ShallowCopy to the output object?<BR>
>> I'm a bit confused at this point. If our case is NOT a standard<BR>
>> use case for the pipeline than I guess I can look more seriously<BR>
>> into developing a full blown Plugin for our data file.<BR>
>> Mike<BR>
<BR>
<BR>
_______________________________________________<BR>
ParaView mailing list<BR>
ParaView@paraview.org<BR>
<a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
</SPAN></FONT>
</BODY>
</HTML>