How to hide properties in the properties panel?

<anton.piccardo-selg <at> stfc.ac.uk>
2015-03-03 21:11:26 GMT

Hi,
I have been working on some ParaView plugin filters recently. I need to pass information to them and I do so by
defining properties in the config xml file. I set the properties programmatically -- this works well. The
properties are listed on the properties panel though, hence I was wondering if there is a way to make
certain properties invisible on the panel? Is there a special flag with which I can hide some properties,
such that the user will not be aware of their existence?
Many thanks and best regards,
Anton

Mismatched image size returned from ViewPort image render

Jordan Deyton <deytonjh <at> ornl.gov>
2015-03-03 20:32:23 GMT

ParaView gurus,
I am working on a project that uses the JSON RPC protocols provided by
ParaViewWeb. I've noticed that the image quality for ViewPorts seems bad
regardless of what is specified in the call to viewport.image.render
(docs here:
http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/api/protocols.ParaViewWebViewPortImageDelivery
).
After decoding the returned image from the Base64 encoding, the JPEG
image comes out as 636x420, while the quality is listed as 100 and the
original size is 1440x850.
The JSON object passed to viewport.image.render looks like
{"args":[{
"localtime":1425413914878,
"view":-1,
"size":[1440,850],
"quality":100}]
}
While the returned object from that RPC call looks like
{
"image": "very long encoded image text here",
"localTime": 0,
"stale": false,
"size": [1440,850],

Clipping issue ParaView 4.3.1

Lester Anderson <arctica1963 <at> gmail.com>
2015-03-03 18:42:26 GMT

Hello,

I have loaded a 3D data cube and that all looks fine, but when I try to clip the data, the clip ends up being offset from the model itself. The data origin when loaded looks fine; have tried X, Y and Z clips and all end up offset.

Origin: 305853.291 2040975 -5000

Normal: 1 0 0

Resetting the origin does not seem to affect the clip position, so I am not sure what is wrong with the data to cause this. See pic attached.

Any ideas would be helpful

Thanks

<div><div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>Hello,<br><br>
</div>I have loaded a 3D data cube and that all looks fine, but when I try to clip the data, the clip ends up being offset from the model itself. The data origin when loaded looks fine; have tried X, Y and Z clips and all end up offset.<br><br>
</div>Origin: 305853.291&nbsp; 2040975&nbsp; -5000<br>
</div>Normal:&nbsp; 1&nbsp; 0&nbsp; 0<br><br>
</div>Resetting the origin does not seem to affect the clip position, so I am not sure what is wrong with the data to cause this. See pic attached.<br><br>
</div>Any ideas would be helpful<br><br>
</div>Thanks<br>
</div></div>

Superbuilds and clusters

Scott, W Alan <wascott <at> sandia.gov>
2015-03-03 18:09:54 GMT

I am trying to use the superbuild to create pvserver on a cluster. It appears to be running in parallel, but isn’t remote rendering. The issue i believe is that the Superbuild isn’t building with Mesa. I have done an ldd for mesa in the lib/paraview4-3
directory, and when I turn on Show Annotation, Remote Rendering says no.

I am turning on ENABLE_mesa (-DENABLE_mesa:BOOL=ON). Should I be using osmesa instead? Any ideas what I am doing wrong?

Thanks!!

Alan

<div>
<span>
<div>I am trying to use the superbuild to create pvserver on a cluster.&nbsp; It appears to be running in parallel, but isn&rsquo;t remote rendering.&nbsp; The issue i believe is that the Superbuild isn&rsquo;t building with Mesa.&nbsp;&nbsp; I have done an ldd for mesa in the lib/paraview4-3
directory, and when I turn on Show Annotation, Remote Rendering says no.</div>
<div>&nbsp;</div>
<div>I am turning on ENABLE_mesa (-DENABLE_mesa:BOOL=ON).&nbsp; Should I be using osmesa instead?&nbsp; Any ideas what I am doing wrong?</div>
<div>&nbsp;</div>
<div>Thanks!!</div>
<div>&nbsp;</div>
<div>Alan</div>
<div>&nbsp;</div>
</span>
</div>

Find Data at first timestep to use as selection

Favre Jean <jfavre <at> cscs.ch>
2015-03-03 15:25:36 GMT

Hi there

I have particle data, which I read with the H5PartReader plugin
I need to extract the particles whose distances from an x axis offset are within a given threshold on the first timestep, and then follow only these as time goes on.

the first thing is trivial. I use a python calculator to compute the distance as in

What I cannot make work is the 'Freeze Selection' which is supposed to freeze the currently selected elements by IDs. The Extract Selection input text correctly show

Type: Id Selection
Elements; points
process ID Index

but the selection is always an empty set.

Has anyone gotten that [Freeze selection] to work?

-----------------
Jean/CSCS

<div>
<div>Hi there<br><br>
I have particle data, which I read with the H5PartReader plugin<br>
I need to extract the particles whose distances from an x axis offset are within a given threshold on the first timestep, and then follow only these as time goes on.<br><br>
the first thing is trivial. I use a python calculator to compute the distance as in<br><br><div>pythonCalculator1 = PythonCalculator()<br>
pythonCalculator1.Expression = 'abs(inputs[0].Points[:,0]-1900)'&nbsp; # x axis offset is 1900<br>
pythonCalculator1.ArrayName = 'diff'<br><br>
then I use FindData with <br><br>
diff &lt;= 200&nbsp;&nbsp; # 200 is the threshold.<br><br>
that also works fine.<br><br>
What I cannot make work is the 'Freeze Selection' which is supposed to freeze the currently selected elements by IDs. The Extract Selection input text correctly show<br><br>
Type: Id Selection<br>
Elements; points<br>
process ID Index<br><br>
but the selection is always an empty set.<br><br>
Has anyone gotten that [Freeze selection] to work?<br><br><div class="BodyFragment"><span>
<div class="PlainText">-----------------<br>
Jean/CSCS</div>
</span></div>
</div>
</div>
</div>

<div><div dir="ltr">I am using ubuntu 12.04 LTS and paraview 4.3.1<div>I am using a CGNS file generated by FLUENT 6.3, I import the data file and everything is ok, except the ExtractLocation filter does not work.</div>
<div>The input is a slice of the imported MultiBlock dataset</div>
<div><br></div>
<div>I have tried convert the slice from cell data to point data and use the result point data as ExtractLocation's input, it does not work;</div>
<div>I have tried different mode of ExtractLocation, it does not work</div>
<div>I tried use CGNS reader as ExtractLocation's input, it does not work</div>
<div>I doubted if it is because my point is at the corner of the slice plane. And the float point is not accurate enough, so I tried</div>
<div>&gt;&gt;&gt;el.Location = [el.Input.GetDataInformation().DataInformation.GetBounds()[i] for i in [1,3,5]]</div>
<div>It still does not work</div>
<div><br></div>
<div>Finally, I used python shell to run&nbsp;</div>
<div>&gt;&gt;&gt;UpdatePipeline()</div>
<div>it works, and the data information refreshed. I do not know why, it seems the apply button does not work.</div>
<div><br></div>
<div>I do not know if this is a bug or feature?</div>
<div>
<br clear="all"><div><div class="gmail_signature">Di CHENG<br><br>Institute of Mechanics, Chinese Academy of Sciences<br>No.15 Beisihuanxi Road, Beijing (100190)<br>P. R. China<br>E-mail: <a href="mailto:chengdi <at> imech.ac.cn" target="_blank">chengdi <at> imech.ac.cn</a><br>Tel.: +86-15801594911<br>
</div></div>
<div class="gmail_signature"><br></div>
</div>
</div></div>

Please keep the discussion to the mailing list so others can
benefit-from/contribute-to the conversion.

the code I send is for the programmable filter!!!

if you are using a python script these are the lines to use
(generated with python trace in ParaView):
the code in the Script variable of the programmable filter is always
very ugly. you can put the source in a file extra file and use the
execfile() function of python to call it.

Opacity functions

Colin McAuliffe <cjm2176 <at> columbia.edu>
2015-03-03 00:03:00 GMT

Hi all, I would like to make some areas appear transparent depending on a threshold value of a damage parameter. This is no problem if the plot is colored by the damage parameter. However, I am wondering if it is possible to have the opacity set by the damage parameter while the plot is colored by some other field. Is this sort of thing possible to do in paraview? Thanks, Colin

<div><div dir="ltr">Hi all, I would like to make some areas appear transparent depending on a threshold value of a damage parameter. This is no problem if the plot is colored by the damage parameter. However, I am wondering if it is possible to have the opacity set by the damage parameter while the plot is colored by some other field. Is this sort of thing possible to do in paraview? Thanks, Colin</div></div>

Anti-Aliasing in SaveScreenshot

Niklas Karcher <niklas.karcher <at> dlr.de>
2015-03-02 15:11:21 GMT

Hi,
I am using the pvbatch tool to generate plots. I ran into an issue where
the SaveScreenshot method used in the pvbatch python script apparently
does not use any anti-aliasing (see Python.png attachment).
If I use the SaveScreenshot method inside of Paraview from the menu the
result is anti-aliased. (see AA.png)
How do I activate the anti-aliasing inside of my python script that is
run by pvbatch?
Thx for your help
Niklas

Hi,
I am using the pvbatch tool to generate plots. I ran into an issue where
the SaveScreenshot method used in the pvbatch python script apparently
does not use any anti-aliasing (see Python.png attachment).
If I use the SaveScreenshot method inside of Paraview from the menu the
result is anti-aliased. (see AA.png)
How do I activate the anti-aliasing inside of my python script that is
run by pvbatch?
Thx for your help
Niklas