[Paraview] Adding time information to a .vts file

2012-06-27 Thread Rakesh Hammond
Hi,

Is it possible to record time information of a simulation into a .vts
file?  I would like the time of the simulation to be displayed on the
screen as I loop through my simulation.

I have done this by writing a .pvd file, but just wondered if this can be
recorded into a .vts file instead?  I will be grateful if some one could
give me a small example or point me towards some documentation.

Rakesh
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] Scaling Vector Arrow

2012-06-27 Thread Magician
Hi all,


I want to visualize velocity fields with Glyph filter.

We can apply scaling factor to Glyph filter.
I'd like to fix shaft radius and tip size, and scale only
shaft length with velocity magnitude.
But if I apply scaling factor, both length and radius are scaled.

Is there a way to do it?


Magician
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] VTK XML Schema

2012-06-27 Thread Andy Bauer
I don't know of any documentation though it might exist for the XML schema.
You may want to look at PyEVTK (https://bitbucket.org/pauloh/pyevtk) though
as I've used that for structured grids (vtkImageData if I remember
correctly) and it worked. It is supposed to support unstructured grids as
well but I haven't tried that.

Andy

On Wed, Jun 27, 2012 at 11:35 AM, Dray, Colan colan.d...@alcoa.com wrote:

 I am trying to write VTK XML (specifically UnstructuredGrid) files by
 hand. I've seen many different attributes for each XML tag, but I am unable
 to find a listing of available choices and what they mean. Is there some
 documentation out there that I am missing? I would prefer documentation for
 all of the VTK XML file types, but just UnstructuredGrid would still be
 immensely helpful.

 Thanks!
 -Colan

 ___
 Powered by www.kitware.com

 Visit other Kitware open-source projects at
 http://www.kitware.com/opensource/opensource.html

 Please keep messages on-topic and check the ParaView Wiki at:
 http://paraview.org/Wiki/ParaView

 Follow this link to subscribe/unsubscribe:
 http://www.paraview.org/mailman/listinfo/paraview

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] Plugin StringVectorProperty Array - string length display issue

2012-06-27 Thread Alex Rattner

Hi all,

In a paraview plugin I am developing, I have a StringVectorProperty 
ArraySelection item in the GUI. The xml for this item is below. When the 
Get ArrayName function (GetFeatureFXArrayName) returns a char array of 
26 characters or fewer, the display is fine. However, when the name is 
27 chars or longer, it shows up blank in the selection window. Is there 
a way to increase the maximum name length (hopefully just an xml property).


Thank you,
Alex

StringVectorProperty
name=FeatureFXArrayInfo
information_only=1
label=Feature Effects
ArraySelectionInformationHelper attribute_name=FeatureFX/
/StringVectorProperty

StringVectorProperty
name=FeatureFXStatus
command=SetFeatureFXStatus
number_of_elements=1
repeat_command=1
immediate_update=1
number_of_elements_per_command=2
element_types=2 0
information_property=FeatureFXArrayInfo
animateable=1
ArraySelectionDomain name=array_list
RequiredProperties
Property name=FeatureFXArrayInfo
function=ArrayList/
/RequiredProperties
/ArraySelectionDomain
/StringVectorProperty
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] trouble with Append Attributes

2012-06-27 Thread Tom Schoenemann
Hi all,

I'm trying to display statistical values in color on a surface.  The stat 
values are in voxels, originally, but are translated from a NIFTI format file 
to a .vtk format.  I've got a binary version of the object (1's where the 
object is, 0's everywhere else). Through comments on this list, I've figured 
out that if I use the calculator to create a copy of the binary scalar values 
(and rename them as something else, e.g., surface), and then use Append 
Attributes to combine the stat data scalars with the surface scalars (from the 
binary image), I can then use Contour to make the surface (using the surface 
scalars) and then color this surface with the stat data scalars.  So far so 
good. 

Here is my problem: When I do Append Attributes, the stat data scalars all get 
changed to a range of 0 to 1, even though the stat data file that was used in 
Append Attributes claims to have values of: [0, 128.619].  So, what is going 
on?  Why is Append Attributes not appending attributes without changing their 
values??

Any ideas?

-Tom


_
P. Thomas Schoenemann

Associate Professor
Department of Anthropology
Indiana University
Bloomington, IN  47405
Phone: 812-855-8800
E-mail: t...@indiana.edu

Open Research Scan Archive (ORSA) Co-Director
Consulting Scholar
Museum of Archaeology and Anthropology
University of Pennsylvania

Homepage: http://mypage.iu.edu/~toms/









___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] trouble with Append Attributes

2012-06-27 Thread Tom Schoenemann
Sorry - scratch that. The Append Attributes item DOES claim to have the right 
values.  According to the Information tab, there are 2 data arrays: One with 
scalars representing the stat data, and the other called surface which ranges 
from 0 to 1 and was created by the calculator step (see my last note).  
However, when I make a Contour out of this item, telling it to use surface to 
do this, it does indeed make a surface, but it inexplicably changes the stat 
data scalars to a completely new range of [127.863, 128.063].  Note that the 
Append Attributes item claims to have this same array with [0, 128.619].  

Any ideas? As far as I can tell, Contour inexplicably changes the stat data 
scalar values to a new range.  ???  Is this a bug, or am I doing something 
wrong? 

-Tom

On Jun 27, 2012, at 10:36 PM, Tom Schoenemann wrote:

 Hi all,
 
 I'm trying to display statistical values in color on a surface.  The stat 
 values are in voxels, originally, but are translated from a NIFTI format file 
 to a .vtk format.  I've got a binary version of the object (1's where the 
 object is, 0's everywhere else). Through comments on this list, I've figured 
 out that if I use the calculator to create a copy of the binary scalar values 
 (and rename them as something else, e.g., surface), and then use Append 
 Attributes to combine the stat data scalars with the surface scalars (from 
 the binary image), I can then use Contour to make the surface (using the 
 surface scalars) and then color this surface with the stat data scalars.  
 So far so good. 
 
 Here is my problem: When I do Append Attributes, the stat data scalars all 
 get changed to a range of 0 to 1, even though the stat data file that was 
 used in Append Attributes claims to have values of: [0, 128.619].  So, what 
 is going on?  Why is Append Attributes not appending attributes without 
 changing their values??
 
 Any ideas?
 
 -Tom
 
 
 _
 P. Thomas Schoenemann
 
 Associate Professor
 Department of Anthropology
 Indiana University
 Bloomington, IN  47405
 Phone: 812-855-8800
 E-mail: t...@indiana.edu
 
 Open Research Scan Archive (ORSA) Co-Director
 Consulting Scholar
 Museum of Archaeology and Anthropology
 University of Pennsylvania
 
 Homepage: http://mypage.iu.edu/~toms/
 
 
 
 
 
 
 
 
 
 ___
 Powered by www.kitware.com
 
 Visit other Kitware open-source projects at 
 http://www.kitware.com/opensource/opensource.html
 
 Please keep messages on-topic and check the ParaView Wiki at: 
 http://paraview.org/Wiki/ParaView
 
 Follow this link to subscribe/unsubscribe:
 http://www.paraview.org/mailman/listinfo/paraview

_
P. Thomas Schoenemann

Associate Professor
Department of Anthropology
Indiana University
Bloomington, IN  47405
Phone: 812-855-8800
E-mail: t...@indiana.edu

Open Research Scan Archive (ORSA) Co-Director
Consulting Scholar
Museum of Archaeology and Anthropology
University of Pennsylvania

Homepage: http://mypage.iu.edu/~toms/









___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] trouble with Append Attributes

2012-06-27 Thread Tom Schoenemann
I've narrowed it down a bit further. It appears that Contour inexplicably 
rescales ALL the data arrays, even though only one is used to create the 
surface.  When I change the Isosurfaces data range (before applying the 
Contour) to different values (adding different values, adding ranges, etc.), 
this changes the range of the other data array after I apply.  I don't want 
this other array touched.  I'm not sure why this would be the default so I'm 
suspecting a bug?? Perhaps I'm missing something?  

In any case, is there actually a way to have Contour create a surface from one 
data array, but not fuss with the other data array (so that when I have the 
surface colored with this other array, the data don't get completely changed 
from real data to something else)?

-Tom

On Jun 27, 2012, at 10:50 PM, Tom Schoenemann wrote:

 Sorry - scratch that. The Append Attributes item DOES claim to have the right 
 values.  According to the Information tab, there are 2 data arrays: One with 
 scalars representing the stat data, and the other called surface which 
 ranges from 0 to 1 and was created by the calculator step (see my last note). 
  However, when I make a Contour out of this item, telling it to use surface 
 to do this, it does indeed make a surface, but it inexplicably changes the 
 stat data scalars to a completely new range of [127.863, 128.063].  Note that 
 the Append Attributes item claims to have this same array with [0, 128.619].  
 
 Any ideas? As far as I can tell, Contour inexplicably changes the stat data 
 scalar values to a new range.  ???  Is this a bug, or am I doing something 
 wrong? 
 
 -Tom
 
 On Jun 27, 2012, at 10:36 PM, Tom Schoenemann wrote:
 
 Hi all,
 
 I'm trying to display statistical values in color on a surface.  The stat 
 values are in voxels, originally, but are translated from a NIFTI format 
 file to a .vtk format.  I've got a binary version of the object (1's where 
 the object is, 0's everywhere else). Through comments on this list, I've 
 figured out that if I use the calculator to create a copy of the binary 
 scalar values (and rename them as something else, e.g., surface), and then 
 use Append Attributes to combine the stat data scalars with the surface 
 scalars (from the binary image), I can then use Contour to make the surface 
 (using the surface scalars) and then color this surface with the stat data 
 scalars.  So far so good. 
 
 Here is my problem: When I do Append Attributes, the stat data scalars all 
 get changed to a range of 0 to 1, even though the stat data file that was 
 used in Append Attributes claims to have values of: [0, 128.619].  So, what 
 is going on?  Why is Append Attributes not appending attributes without 
 changing their values??
 
 Any ideas?
 
 -Tom
 
 
 _
 P. Thomas Schoenemann
 
 Associate Professor
 Department of Anthropology
 Indiana University
 Bloomington, IN  47405
 Phone: 812-855-8800
 E-mail: t...@indiana.edu
 
 Open Research Scan Archive (ORSA) Co-Director
 Consulting Scholar
 Museum of Archaeology and Anthropology
 University of Pennsylvania
 
 Homepage: http://mypage.iu.edu/~toms/
 
 
 
 
 
 
 
 
 
 ___
 Powered by www.kitware.com
 
 Visit other Kitware open-source projects at 
 http://www.kitware.com/opensource/opensource.html
 
 Please keep messages on-topic and check the ParaView Wiki at: 
 http://paraview.org/Wiki/ParaView
 
 Follow this link to subscribe/unsubscribe:
 http://www.paraview.org/mailman/listinfo/paraview
 
 _
 P. Thomas Schoenemann
 
 Associate Professor
 Department of Anthropology
 Indiana University
 Bloomington, IN  47405
 Phone: 812-855-8800
 E-mail: t...@indiana.edu
 
 Open Research Scan Archive (ORSA) Co-Director
 Consulting Scholar
 Museum of Archaeology and Anthropology
 University of Pennsylvania
 
 Homepage: http://mypage.iu.edu/~toms/
 
 
 
 
 
 
 
 
 
 ___
 Powered by www.kitware.com
 
 Visit other Kitware open-source projects at 
 http://www.kitware.com/opensource/opensource.html
 
 Please keep messages on-topic and check the ParaView Wiki at: 
 http://paraview.org/Wiki/ParaView
 
 Follow this link to subscribe/unsubscribe:
 http://www.paraview.org/mailman/listinfo/paraview

_
P. Thomas Schoenemann

Associate Professor
Department of Anthropology
Indiana University
Bloomington, IN  47405
Phone: 812-855-8800
E-mail: t...@indiana.edu

Open Research Scan Archive (ORSA) Co-Director
Consulting Scholar
Museum of Archaeology and Anthropology
University of Pennsylvania

Homepage: http://mypage.iu.edu/~toms/









___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: