<div dir="ltr"><div><div><div><div><div>Cory, thanks for mentioning the TIFFReader proxy. I tried to modify my previously attached code such that the NPoints property links to a NPointsInfo property. Plus, I have removed the call "this->SetNPoints(nset);" inside vtkTestProperty::RequestData as suggested by Utkarsh. The NPoints property is still showing the default "42", though, and not initialized or updated from the number of points of the input dataset. I am obviously missing another important step in addition to changing the xml definitions, but which one?<br><br></div>Here is the detailed modification of TestProperty.xml compared to the earlier attachment:<br></div>replace<br>"<IntVectorProperty name="NPoints"<br>                        command="SetNPoints"<br>                        number_of_elements="1"<br>                        default_values="42"><br>  </IntVectorProperty>"<br></div>with:<br>"<IntVectorProperty name="NPoints"<br>                        command="SetNPoints"<br>                        information_property="NPointsInfo"<br>                        number_of_elements="1"<br>                        default_values="42"><br>  </IntVectorProperty><br>  <IntVectorProperty name="NPointsInfo"<br>                        command="GetNPoints"<br>                        information_only="1"><br>    <SimpleIntInformationHelper /><br>  </IntVectorProperty>"<br><br></div>Thank you<br></div>Corinna<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 14, 2016 at 5:24 PM, Cory Quammen <span dir="ltr"><<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Corinna,<br>
<br>
Take a look at the TIFFReader SourceProxy in<br>
ParaViewCore/ServerManager/SMApplication/Resources/readers.xml. It has<br>
a CustomDataSpacing property that enables you to set voxel spacing,<br>
and has an associated information property CustomDataSpacingInfo that<br>
should initially populate the spacing property when the reader is<br>
created.<br>
<br>
HTH,<br>
Cory<br>
<div class="HOEnZb"><div class="h5"><br>
On Thu, Jul 14, 2016 at 11:17 AM, Utkarsh Ayachit<br>
<<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>> wrote:<br>
>> I'll check the meaning of MTime.<br>
><br>
> See the implementation of vtkSetMacro() in vtkSetGet.h. Every time the<br>
> value changes, it call this->Modified() which updates the MTime. Since<br>
> VTK is a demand-driven pipeline, changes to MTime is what tells the<br>
> pipeline that the algorithm has been modified and needs reexecution.<br>
> If one modifies the MTime in RequestData() (the method called by the<br>
> pipeline to process the input to produce output), the pipeline thinks<br>
> the filter is always dirty and that can cause unexpected side effects.<br>
><br>
><br>
>> I'd need something similar to an image resize filter. The output size should<br>
>> be identical to the input size, when the filter is first attached to the<br>
>> input. The output size should be shown in the UI and the user should be able<br>
>> to enter a different output size.<br>
><br>
> This is possible. Let me see if I can find you a simple example for<br>
> the same. I'll get back to you.<br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Cory Quammen<br>
R&D Engineer<br>
Kitware, Inc.<br>
</font></span></blockquote></div><br></div>