[Paraview] Change a property of multiple data objects simultaneously?

2017-05-04 Thread David Doria
Hi,

Say I have opened 10 individual vtp files. Now I decide that I want to
change a property for all of them (for example, the Point Size, the
Opacity, etc.). Is there a way to do this without clicking on one, changing
the property, clicking on the next, changing the property, etc. etc.? If I
select multiple data objects and then change a property it seems to only
get applied to the last one in the selection.

Any ideas?

Thanks!

David
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Displaying frame rate?

2017-04-27 Thread David Doria
Awesome, thanks! It is strange that "Show Annotation" doesn't show up in
the list in the Render View tab - I had to search "annotation" to see it.

David

On Thu, Apr 27, 2017 at 10:19 AM, Cory Quammen 
wrote:

> Yes. Settings -> Render View tab -> Show Annotation
>
> HTH,
> Cory
>
> On Thu, Apr 27, 2017 at 11:03 AM, David Doria 
> wrote:
> > Hello,
> >
> > Is it possible to display the framerate that Paraview is achieving? I'd
> like
> > to profile a few hardware setups a little more quantitatively than "it
> feels
> > smooth or not", but on the actual types of operations I will be doing
> rather
> > than some arbitrary benchmark suite.
> >
> > Thanks!
> >
> > David
> >
> > ___
> > 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
> >
> > Search the list archives at: http://markmail.org/search/?q=ParaView
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/paraview
> >
>
>
>
> --
> Cory Quammen
> Staff R&D Engineer
> Kitware, Inc.
>
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] Displaying frame rate?

2017-04-27 Thread David Doria
Hello,

Is it possible to display the framerate that Paraview is achieving? I'd
like to profile a few hardware setups a little more quantitatively than "it
feels smooth or not", but on the actual types of operations I will be doing
rather than some arbitrary benchmark suite.

Thanks!

David
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] CellCenters filter produces non-deterministic result

2017-03-08 Thread David Doria
On Tue, Mar 7, 2017 at 8:10 PM, Andy Bauer  wrote:

> Hi David,
>
> I'm not sure how it works with structured grids but with vtkUniformGrids
> (i.e. vtkImageData with blanking) the VTK readers and writers really just
> produce vtkImageData and the blanking is ignored. It may be the same with
> the XML structured grid files. My suggestion would be to look at the
> vtkImageDataToUniformGrid class in VTK and try doing a similar thing in
> ParaView using the Python Programmable filter.
>
> Cheers,
> Andy
>
> On Tue, Mar 7, 2017 at 10:22 AM, David Doria  wrote:
>
>> On Mon, Mar 6, 2017 at 11:14 AM, Andy Bauer 
>> wrote:
>>
>>> Thanks for the bug report!
>>>
>>> I think the stackoverflow issue is probably also related to blanking. I
>>> added to your bug report with two other (likely) related issues.
>>>
>>> As a side note, I think if blanking was used instead of ghost cells this
>>> may work properly.
>>>
>>> Thanks,
>>> Andy
>>>
>>> On Mon, Mar 6, 2017 at 8:45 AM, David Doria 
>>> wrote:
>>>
>>>> On Sun, Mar 5, 2017 at 7:05 PM, Andy Bauer 
>>>> wrote:
>>>>
>>>>> Hi David,
>>>>>
>>>>> This looks like it has to do with blanking (i.e. in PV 5.2 if I don't
>>>>> load the vtkGhostType array it has the proper bounds). Would you mind
>>>>> putting in a bug report on Gitlab (https://gitlab.kitware.com/pa
>>>>> raview/paraview)?
>>>>>
>>>>> Thanks,
>>>>> Andy
>>>>>
>>>>
>>>> Done:
>>>> https://gitlab.kitware.com/paraview/paraview/issues/17244
>>>>
>>>> Here is another presumed bug that seems to also have to do with
>>>> blanking: http://stackoverflow.com/questions/42543340/cell-l
>>>> abels-in-selection-display-inspector-dont-work-when-any-cell
>>>> s-are-ghosted - not trying to pollute this thread but do you think
>>>> that behavior could be helpful to understand the Cell Centers issue?
>>>>
>>>> Thanks,
>>>>
>>>> David
>>>>
>>>
>>>
>> Hi Andy,
>>
>> The file was created with something like this:
>>
>> https://gist.github.com/daviddoria/8bf981aa593b7cefcd9114588e4766db
>>
>> Does calling
>>
>> structuredGrid->BlankPoint(0);
>>
>> not count as "using blanking"? Can you point me to the "right way" to do
>> this if this is not the current best practice?
>>
>> Thanks!
>>
>> David
>>
>
>
I created a uniform grid:

https://gist.github.com/daviddoria/99fa99c52aa07ee78b7e7412e74d592f
https://drive.google.com/open?id=0B8yIfGqnlfSoNTNKWWtua1pEUTA

Using the vtkXMLImageDataWriter seemed to write the same type of
vtkGhostType array (shown in the cell data in Paraview), but Paraview
doesn't seem to respect the blanking - all 8 voxels are drawn.

Any other ideas?

David
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] CellCenters filter produces non-deterministic result

2017-03-07 Thread David Doria
On Mon, Mar 6, 2017 at 11:14 AM, Andy Bauer  wrote:

> Thanks for the bug report!
>
> I think the stackoverflow issue is probably also related to blanking. I
> added to your bug report with two other (likely) related issues.
>
> As a side note, I think if blanking was used instead of ghost cells this
> may work properly.
>
> Thanks,
> Andy
>
> On Mon, Mar 6, 2017 at 8:45 AM, David Doria  wrote:
>
>> On Sun, Mar 5, 2017 at 7:05 PM, Andy Bauer 
>> wrote:
>>
>>> Hi David,
>>>
>>> This looks like it has to do with blanking (i.e. in PV 5.2 if I don't
>>> load the vtkGhostType array it has the proper bounds). Would you mind
>>> putting in a bug report on Gitlab (https://gitlab.kitware.com/pa
>>> raview/paraview)?
>>>
>>> Thanks,
>>> Andy
>>>
>>
>> Done:
>> https://gitlab.kitware.com/paraview/paraview/issues/17244
>>
>> Here is another presumed bug that seems to also have to do with blanking:
>> http://stackoverflow.com/questions/42543340/cell-
>> labels-in-selection-display-inspector-dont-work-when-any-
>> cells-are-ghosted - not trying to pollute this thread but do you think
>> that behavior could be helpful to understand the Cell Centers issue?
>>
>> Thanks,
>>
>> David
>>
>
>
Hi Andy,

The file was created with something like this:

https://gist.github.com/daviddoria/8bf981aa593b7cefcd9114588e4766db

Does calling

structuredGrid->BlankPoint(0);

not count as "using blanking"? Can you point me to the "right way" to do
this if this is not the current best practice?

Thanks!

David
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] CellCenters filter produces non-deterministic result

2017-03-06 Thread David Doria
On Sun, Mar 5, 2017 at 7:05 PM, Andy Bauer  wrote:

> Hi David,
>
> This looks like it has to do with blanking (i.e. in PV 5.2 if I don't load
> the vtkGhostType array it has the proper bounds). Would you mind putting in
> a bug report on Gitlab (https://gitlab.kitware.com/paraview/paraview)?
>
> Thanks,
> Andy
>

Done:
https://gitlab.kitware.com/paraview/paraview/issues/17244

Here is another presumed bug that seems to also have to do with blanking:
http://stackoverflow.com/questions/42543340/cell-labels-in-selection-display-inspector-dont-work-when-any-cells-are-ghosted
-
not trying to pollute this thread but do you think that behavior could be
helpful to understand the Cell Centers issue?

Thanks,

David
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] CellCenters filter produces non-deterministic result

2017-03-05 Thread David Doria
With this file
, when I
apply a Cell Centers filter sometimes it works (see attached works.jpg) and
sometimes it produces garbage output (note the Y-range) (see attached
broken.jpg)

Can anyone explain why this is?

Thanks,

David

(See the same question here for inline images:
http://stackoverflow.com/questions/42543496/cellcenters-filter-non-deterministic-result
)
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] VTK Code to Paraview

2012-10-24 Thread David Doria
On Tue, Oct 23, 2012 at 3:50 PM, Fabiano Papaiz wrote:

> Hi Everybody, (sorry my english)
>
> I am new in paraview and have some experience with VTK with python (some
> codes that parse a DICOM Medical images and rendering as
> volume/isosurface).
>
> My basic question is: how can i use the output generated by my VTK code
> and input in a paraview to be render? (Is this possible?)
>
> Below an piece of my python code:
>
>reader = vtk.vtkDICOMImageReader()
>reader.SetDirectoryName(dirDicom)
>reader.Update()
>
>contour = vtk.vtk.vtkMarchingCubes()
>contour.SetInput( reader.GetOutput() )
>contour.ComputeNormalsOn()
>contour.SetValue( 0, 1250 )
>
>mapper = vtk.vtkPolyDataMapper()
>mapper.SetInput( contour.GetOutput() )
>mapper.ScalarVisibilityOff()
>
>actorBone = vtk.vtkLODActor()
>actorBone.SetNumberOfCloudPoints( 100 )
>actorBone.SetMapper( mapper )
>actorBone.GetProperty().SetColor( 1, 1, 1 )
>actorBone.GetProperty().SetOpacity( 0.7 )
>##
>## HERE,  Instead of use a vtkRenderWindow I want show in paraview.
>

The way you have set those properties at the end (the color/opacity), they
cannot be exported and viewed in Paraview. Since your 'contour' filter
produces a vtkPolyData, you can use vtkXMLPolyDataWriter to write it to a
vtp file which can then be opened with Paraview. I'd suggest you do that,
then setup the properties (color/opacity) in Paraview.

David
___
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] Save state doesn't save widget layout

2012-10-08 Thread David Doria
I often adjust the data panel to be a reasonably square aspect ratio
before producing screenshots of my data. Consider a data set with 2
different arrays that can be used to color the data. If I setup the
window and set the zoom of the data to how I want it and take a
screenshot with the data colored by Array1, is there a way to really
save the state of everything so that I can open it later, change to
color the data by Array2, and produce another screenshot with the
points in exactly the same positions? Currently the "save state" seems
to just re-open the files I had open, but not put the panels back to
how I had adjusted them.

The result of this is that if I have multiple screenshots of different
things and at a later date I want to change one of them, I have to
reproduce all of them so that they are from the same viewpoint/zoom as
the new one.

This doesn't seem like it would be that uncommon of a thing to want to
do - can anyone share how they handle this? Or is there a "File->Save
layout" or similar somewhere that I am missing?

Thanks,

David
___
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] Warning: Replacing existing representation for key: Point Sprite

2012-08-17 Thread David Doria
I built master from yesterday, and now when I load a png file, I get
this warning in the Output Messages dialog:

Warning: In 
/home/doriad/src/ParaView/ParaViewCore/ClientServerCore/Rendering/vtkCompositeRepresentation.cxx,
line 83
vtkPVCompositeRepresentation (0x11cac720): Replacing existing
representation for key: Point Sprite

Is anyone else seeing this?

Thanks,

David
___
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] Paraview binary format

2012-08-17 Thread David Doria
On Fri, Aug 17, 2012 at 7:21 AM, Kharche, Sanjay
 wrote:
>
> Dear All
>
> I am new to ParaView. I need to write binary files from my C code for viz
> with ParaView. So far, I assign values to a M x N 2D array, and write legacy
> VTK files - that works fine. I used code as pasted below to see if I can get
> the binary output (which uses a simple fwrite) working, but was unable to
> viz the data in the binary output. Can someone suggest how to write ParaView
> raw binary files (hopefully with minimal headers), and how to viz them
> interactively using the GUI.
>
> thanks
> Sanjay

Why don't you construct VTK objects and use a VTK writer to write the file?

Something like this:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/XMLStructuredGridWriter

It seems like you are reinventing the wheel a little bit by actually
formatting the file to VTK file format specifications manually.

David
___
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] Errors when using find_package(ParaView REQUIRED)

2012-08-10 Thread David Doria
On Tue, Dec 13, 2011 at 4:51 PM, David Doria  wrote:
> On Tue, Dec 13, 2011 at 3:31 PM, Utkarsh Ayachit
>  wrote:
>> Oh, are you using FIND_PACKAGE(VTK) and FIND_PACKAGE(ParaView) in the
>> source? Bet that's what causing the problem. I'm not sure that's going
>> to work. Try just using ParaView OR VTK.
>
> That certainly works. The only problem I have with that is I have to do a
>
> if(buildPlugin)
>  use(Paraview)
> else
>  use(VTK)
> endif()
>
> in my root CMakeLists.txt. It would seem nicer to do
>
> if(buildPlugin)
>  add_subdirectory(Plugin)
> endif()
>
> and in the Plugin/CMakeLists.txt do
>
> use(ParaView)
>
> Is there a pattern more similar to this that would only use one of them?
>
> Thanks,
>
> David

I just ran into this again, and found this old thread. Is there a way
to find_package(VTK) at the root project level, and then optionally
find_package(Paraview) in a subdirectory? The idea is a structure like
this: https://github.com/daviddoria/PointSetSurfaceReconstruction

Thanks,

David
___
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] Cmake complaint with git clone of ParaView

2012-06-06 Thread David Doria
On Tue, Jun 5, 2012 at 10:10 PM, William Sherman  wrote:
> Hello,
>
> Earlier this evening I did a "git clone" copy of ParaView from
> git://paraview.org/ParaView.git, and CMake is giving my the
> following errors:
>
>                 CMake Error at CMake/VTKModules.cmake:3 (include):
>                   include could not find load file:
>                     vtkDependentOption
>                 Call Stack (most recent call first):
>                   CMakeLists.txt:148 (include)
>
>
>                 CMake Error at CMake/VTKModules.cmake:361
> (VTK_DEPENDENT_OPTION):
>                   Unknown CMake command "VTK_DEPENDENT_OPTION".
>                 Call Stack (most recent call first):
>                   CMakeLists.txt:148 (include)
>
> I did a Google search, but no obvious answer appeared.
>
> Note: I also got this warning:
>
>                CMake Warning at CMakeLists.txt:120 (MESSAGE):
>                   Warning: You are using Qt 4.7.4.  Officially supported
> version is Qt 4.8
>
> Of course, that was after it complained about a lack of Qt, and
> mentioned version 4.7, so I spent an hour compiling Qt version 4.7.4
> (if only CMake had told me it wanted an even more recent version!)
>
>        Thanks for the help,
>        Bill

After git clone, you need a 'git submodule update --init', or you can
'git clone --recursive':

http://www.paraview.org/Wiki/ParaView/Git/Download

David
___
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] .vtp file not readable

2012-06-04 Thread David Doria
On Mon, Jun 4, 2012 at 9:41 AM, Tuan Ha Tran wrote:

> Thank you all for your reply.
> I don't quite understand where the problem is from. The .vtp file is
> readable, but I have to choose the vtkReader for it (there is a window of
> readers' list appears and I chose "Legacy VTK files"), so, for me, this is
> perhaps the problem of paraView or something like that. Because with .vtp
> file, it can't find the right reader to use. So why there is that error
> "No reader found for /home/thtran/myfile.vtp" with python shell and
> JavaScript Terminal (I'm sorry, I didn't mention that I used the full path
> to the file)
>

I believe if the file data does not match the file extension, Paraview
gives you the option to tell it what the file actually contains. Like I
said, if you choose Legacy VTK and it works, then the file should have
actually been named .vtk instead of .vtp.

David
___
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] .vtp file not readable

2012-06-04 Thread David Doria
On Mon, Jun 4, 2012 at 4:09 AM, Tuan Ha Tran wrote:

> Hi everybody,
> I have a problem in opening a .vtp file.
> When I opened from ParaView GUI, I managed to open it by choosing
> "Legacy VTK Files" (but this file is not marked as "vtkImageData" to be
> used with my filter)
> But when I used Python Shell and JavaScript Terminal then my .vtp file
> is marked "File not readable. No reader found for '/myfile.vtp'.
> I wondered if anybody have any idea what happened?
> Thank you in advance
>

Sounds like the contents of the file are not actually in vtp format (i.e.
written with vtkXMLPolyDataWriter). Maybe you used vtkPolyDataWriter to
write a .vtp instead of .vtk? Or if you are storing vtkImageData, you
should have probably used vtkXMLImageDataWriter to write a .vti.

David
___
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] Thresholding an image

2012-06-04 Thread David Doria
On Thu, May 31, 2012 at 4:08 PM, David Doria  wrote:

> I am trying to look for the pixels in an image whose magnitude are
> above a certain value. I loaded the image, then tried to use the
> Threshold filter. The tooltip says "Requires an attribute array with 1
> component."
>
> Question 1) Would it make sense to allow this filter to operate on one
> of the channels of the image instead of having to extract it manually?
>
> To generate this attribute array, I used the Calculator filter to make
> an array called AbsX with abs(MetaImage_X). Then I applied a Threshold
> filter to this new array. The values in this array are in [0 512].
> When I leave the Lower Threshold all the way down and the Upper
> Threshold all the way up, I can view the image just fine. In the
> Display tab, the Color By is set to AbsX, like I want. However, as
> soon as I move the Lower Threshold slider, the image disappears. When
> I look in the Display tab, the only option for Color By is now Solid
> Color.
>
> Question 2) Why would the Color By options change based on the
> threshold that is set? (I'd also ask why the image is disappearing,
> but I think it might have to do with the coloring).
>
> If I then try to glyph the output of the threshold filter (to draw
> spheres or something at the location of the pixels that remain), the
> Scalars option of the glyphs shows my AbsX array, but it is not
> enabled. The only choice is under Vectors, and it is my MetaImage
> array.
>
> Question 3) Why can I not glyph the AbsX array?
>
> Sorry for the long winded question, but hopefully someone can shed
> some light on these issues!
>
> Thanks,
>
> David
>

Any thoughts on this? Is it just impossible, or am I missing something?

David
___
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] Thresholding an image

2012-05-31 Thread David Doria
I am trying to look for the pixels in an image whose magnitude are
above a certain value. I loaded the image, then tried to use the
Threshold filter. The tooltip says "Requires an attribute array with 1
component."

Question 1) Would it make sense to allow this filter to operate on one
of the channels of the image instead of having to extract it manually?

To generate this attribute array, I used the Calculator filter to make
an array called AbsX with abs(MetaImage_X). Then I applied a Threshold
filter to this new array. The values in this array are in [0 512].
When I leave the Lower Threshold all the way down and the Upper
Threshold all the way up, I can view the image just fine. In the
Display tab, the Color By is set to AbsX, like I want. However, as
soon as I move the Lower Threshold slider, the image disappears. When
I look in the Display tab, the only option for Color By is now Solid
Color.

Question 2) Why would the Color By options change based on the
threshold that is set? (I'd also ask why the image is disappearing,
but I think it might have to do with the coloring).

If I then try to glyph the output of the threshold filter (to draw
spheres or something at the location of the pixels that remain), the
Scalars option of the glyphs shows my AbsX array, but it is not
enabled. The only choice is under Vectors, and it is my MetaImage
array.

Question 3) Why can I not glyph the AbsX array?

Sorry for the long winded question, but hopefully someone can shed
some light on these issues!

Thanks,

David
___
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] How to exchange *vtk file to *grd or *xyz file

2012-05-03 Thread David Doria
On Tue, May 1, 2012 at 5:11 AM, Magician  wrote:
> Hi,
> I'm from Japan too. :)
>
>
> Almost all users may be trying to do postprocessing
> all data on ParaView.
> So I think it's pretty difficult to get informations
> about converters from VTK.
>
> If you want to convert VTK to other format,
> this document might help you.
>> http://paraview.org/Wiki/Data_formats
>
> VTK format is open and easy to read.
> How to try to convert yourself?
>
>
> Magician

You can convert between any two compatible VTK formats using something
like this:

http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ConvertFile

David
___
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] 3D Hole filling Plugin

2012-04-23 Thread David Doria
On Sat, Apr 21, 2012 at 2:14 PM, Abdullahi Sanusi  wrote:
> Hi All,
> Please how can a I fill holes in my Polydata.  I worked through the
> vtkHoleFillFilter documentation and tried to create ParaView plugin to fill
> the in my data but it did not work for me as expected. I get back the same
> input data as my output (no difference). I am doing something wrong. Pardon
> me if this question has been answered because I am still new using VTK. Here
> is my code:

Since vtkFillHolesFilter is an existing VTK filter, I believe you can
use an XML-only method to make this into a plugin:

http://www.cmake.org/Wiki/ParaView/Plugin_HowTo#Enabling_an_existing_VTK_filter

David
___
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] Writer plugin C++ code example

2012-03-25 Thread David Doria
On Sun, Mar 25, 2012 at 3:43 AM, Nicholas Yue  wrote:
> Hi,
>
>    I checked out from the git repository of paraview and build with
> PARAVIEW_INSTALL_DEVELOPMENT=ON
>
>    While looking at the plugins directory
>
> /Paraview_git/Examples/Plugins/Writer
>
>    I can see the directory contains the XML files for writer plugin but no
> C++ code to illustrate how one should write the plugins in C++
>
>    On closer examination, the CMakeLists talks about building "reader"
>
>    My interest is to write geometry information out for rendering using and
> external software e.g. RenderMan.
>
>    Any pointers or URL I can start looking at ?
>
> Regards
>
> --
> Nicholas Yue

Have you seen these pages?

http://www.itk.org/Wiki/ParaView/Plugin_HowTo
http://www.itk.org/Wiki/ParaView/User_Created_Plugins

David
___
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] I: 3D point cloud with color

2012-03-02 Thread David Doria
Andrew,

I may have missed something in the discussion, but you typically do
not want to set colors via SetVectors as you mentioned (
p->GetPointData()->SetVectors(rgb); )

My understanding is that whatever is set with SetVectors will be
transformed when the data set is transformed. I.e. if you rotate the
data set, the colors will change (not typically what you'd want).

I think you should prefer
p->GetPointData()->SetScalars(rgb);

David
___
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] 3D point cloud with color

2012-02-22 Thread David Doria
>> I have been working with 3D stereo reconstruction. So, I have huge 3d point 
>> clouds co-registered with color in this format [X Y Z R G B] (the first 
>> three vector columns specify the location of the single point and the last 
>> three one its color in RGB space). I have been trying to display the data in 
>> Paraview without success.
>>
>>
>>
>> I use the “table to points” filter to show the 3D coordinates but then I do 
>> not know  how to specify the color of each single point using its RGB 
>> components. Can you please help me out?

If you're more comfortable in c++ you could use VTK to parse the file,
construct a polydata, and then write a vtp file. Here are the examples
you'd need:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/InfoVis/ReadDelimitedFile
http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/WriteVTP

Then Paraview can easily read this vtp file.

David
___
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] Structured grid point blanking

2012-02-13 Thread David Doria
On Fri, Feb 10, 2012 at 6:16 PM, George Zagaris
 wrote:
> Hi David,
>
> The issue is that the mapper ( i.e., vtkPVGeometryFilter which invokes
> vtkDataSetSurfaceFilter ) does not take into account blanking.
>
> I have a patch for vtkDataSetSurfaceFilter that adds such a check. In
> vtkDataSetSurfaceFilter::ExecuteFaceQuads you can add the
> following if-statement:
>
> void vtkDataSetSurfaceFilter::ExecuteFaceQuads(...)
> {
>
> 
>
>  // Old method for creating quads (needed for cell data.).
>  for (ic = ext[cA2]; ic < ext[cA2+1]; ++ic)
>    {
>    for (ib = ext[bA2]; ib < ext[bA2+1]; ++ib)
>      {
>      outPtId = outStartPtId + (ib-ext[bA2]) + (ic-ext[cA2])*cOutInc;
>      inId = inStartCellId + (ib-ext[bA2])*qInc[bAxis] +
> (ic-ext[cA2])*qInc[cAxis];
>
>      if( grid->IsCellVisible(inId) ) // This is the If-statement to
> check for blanking
>        {
>        outId = outPolys->InsertNextCell(4);
>        outPolys->InsertCellPoint(outPtId);
>        outPolys->InsertCellPoint(outPtId+cOutInc);
>        outPolys->InsertCellPoint(outPtId+cOutInc+1);
>        outPolys->InsertCellPoint(outPtId+1);
>        // Copy cell data.
>        outCD->CopyData(inCD,inId,outId);
>        this->RecordOrigCellId(outId, inId);
>        }
>
>      }
>    }
>
> ...
>
> }
>
> Alternatively, the out-of-the-box approach is to add a flags array to
> the point data of the vtkStructuredGrid instance and use vtkThreshold
> to display the corresponding subset.
>
> Hope this helps.
>
> Best,
> George


Thanks George,

I can't imagine when you would not want to respect blanking? Could you
push that patch to VTK Gerrit?

David
___
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] Structured grid point blanking

2012-02-10 Thread David Doria
I am trying to blank a point in a vtkStructuredGrid. Using the below
code, I write out some points to a vts file. All of the points are on
a plane except for one. With or without manually creating a visibility
array, Paraview seems to display all of the points, including the one
that is supposedly blanked.

The goal in both examples below is to ignore the point that is off of
the plane, but in both cases it is displayed anyway. Can anyone
explain this or point out where I'm going wrong?

Without a manual visibility array:

#include 
#include 
#include 
#include 
#include 
#include 

int main(int, char *[])
{
  // Create a grid
  vtkSmartPointer structuredGrid =
vtkSmartPointer::New();

  vtkSmartPointer points =
vtkSmartPointer::New();

  unsigned int gridSize = 8;
  unsigned int counter = 0;
  // Create a 5x5 grid of points
  for(unsigned int j = 0; j < gridSize; j++)
{
for(unsigned int i = 0; i < gridSize; i++)
  {
  if(i == 3 && j == 3) // Make one point higher than the rest
{
points->InsertNextPoint(i, j, 2);
std::cout << "The different point is number " << counter << std::endl;
}
  else
{
points->InsertNextPoint(i, j, 0); // Make most of the points
the same height
}
  counter++;
  }
}

  bool blanking = structuredGrid->GetPointBlanking();
  std::cout << "blanking: " << blanking << std::endl;

  std::cout << "blanking: " << structuredGrid->GetPointBlanking() << std::endl;

  // Specify the dimensions of the grid
  structuredGrid->SetDimensions(gridSize,gridSize,1);

  structuredGrid->SetPoints(points);

  structuredGrid->BlankPoint(27);
  structuredGrid->Modified();

  // Create a mapper and actor
  vtkSmartPointer writer =
vtkSmartPointer::New();
  writer->SetInputConnection(structuredGrid->GetProducerPort());
  writer->SetFileName("test.vts");
  writer->Write();
  return EXIT_SUCCESS;
}

With a manual visibility array:

#include 
#include 
#include 
#include 
#include 
#include 
#include 

int main(int, char *[])
{
  // Create a grid
  vtkSmartPointer structuredGrid =
    vtkSmartPointer::New();

  vtkSmartPointer points =
    vtkSmartPointer::New();

  unsigned int gridSize = 8;
  unsigned int counter = 0;
  // Create a 5x5 grid of points
  for(unsigned int j = 0; j < gridSize; j++)
    {
    for(unsigned int i = 0; i < gridSize; i++)
      {
      if(i == 3 && j == 3) // Make one point higher than the rest
        {
        points->InsertNextPoint(i, j, 2);
        std::cout << "The different point is number " << counter << std::endl;
        }
      else
        {
        points->InsertNextPoint(i, j, 0); // Make most of the points
the same height
        }
      counter++;
      }
    }

  bool blanking = structuredGrid->GetPointBlanking();
  std::cout << "blanking: " << blanking << std::endl;

  vtkSmartPointer visibilityArray =
vtkSmartPointer::New();
  visibilityArray->SetNumberOfTuples(points->GetNumberOfPoints());
  structuredGrid->SetPointVisibilityArray(visibilityArray);

  for(vtkIdType pointId = 0; pointId < points->GetNumberOfPoints(); ++pointId)
    {
    visibilityArray->SetValue(pointId, 0);
    }
  visibilityArray->SetValue(27, 1);
  std::cout << "blanking: " << structuredGrid->GetPointBlanking() << std::endl;

  // Specify the dimensions of the grid
  structuredGrid->SetDimensions(gridSize,gridSize,1);

  structuredGrid->SetPoints(points);

  structuredGrid->BlankPoint(27);
  structuredGrid->Modified();

  // Create a mapper and actor
  vtkSmartPointer writer =
    vtkSmartPointer::New();
  writer->SetInputConnection(structuredGrid->GetProducerPort());
  writer->SetFileName("test2.vts");
  writer->Write();
  return EXIT_SUCCESS;
}

Thanks,

David
___
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] ParaView Digest, Vol 94, Issue 1

2012-02-01 Thread David Doria
On Wed, Feb 1, 2012 at 4:04 PM, Abdullahi Sanusi  wrote:
> Hi All,
> I am new to ParaView and VTK/ITK and I want to use them for my thesis. I
> have compiled ParaView and VTK from source on my Windows machine
> successfully and currently working through the examples. Now I want to do
> image registration on two images and interactive select some feature points
> for comparison. Please, I need some advice on how to achieve these base on
> your experience.
> I will be very thankful.
> Ibrahim.

I wrote a program similar to Matlab's cpselect that allows you to
select 2D or 3D control points. Here it is:

http://www.insight-journal.org/browse/publication/836

David
___
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] Thresholding by array magnitude doesn't work

2012-01-31 Thread David Doria
I have a PointData array called colors with typical triples, each component
from 0 - 255.

When I apply a Threshold Filter to the automatically created
"Colors_Magnitude" scalars, even with Lower Threshold set to 0 and Upper
Threshold set to 200,000, no points are passed through the filter (the
output has 0 points).

Can anyone explain this behavior? I am using git master.

Thanks,

David
___
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] Calculator filter doesn't see a PointData vector

2012-01-30 Thread David Doria
On Mon, Jan 30, 2012 at 1:59 PM, David Doria  wrote:
> I have a data set that has a 308D vector associated with the PointData:
>
> descriptors->SetNumberOfComponents(308);
> descriptors->SetName("Descriptors");
> descriptors->SetNumberOfTuples(polyData->GetNumberOfPoints());
> ...
> polyData->GetPointData()->AddArray(descriptors);
>
> I want to apply a Calculator filter to filter the points by their
> descriptor magnitude. In the Calculator filter, I choose
>
> Attribute mode: PointData
>
> Then if I click the "Vectors" drop down box, I see two other vectors
> (colors and coords), but not "Descriptors". If I click on the
> "Scalars" drop down box, I see 308 entries for a single dimension of
> the descriptor vector with their index appended after an underscore
> (ie. Descriptors_0 ...Descriptors_307), but not the whole vector. Is
> there a way to apply a norm(Descriptors) operation in the Calculator
> filter with this data set?

I found the Auto Convert Properties which lets me threshold the magnitudes
directly in the Threshold filter (this is nice!). However, it still seems
like you should be able to use the magnitude in a calculator filter.
___
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] Calculator filter doesn't see a PointData vector

2012-01-30 Thread David Doria
I have a data set that has a 308D vector associated with the PointData:

descriptors->SetNumberOfComponents(308);
descriptors->SetName("Descriptors");
descriptors->SetNumberOfTuples(polyData->GetNumberOfPoints());
...
polyData->GetPointData()->AddArray(descriptors);

I want to apply a Calculator filter to filter the points by their
descriptor magnitude. In the Calculator filter, I choose

Attribute mode: PointData

Then if I click the "Vectors" drop down box, I see two other vectors
(colors and coords), but not "Descriptors". If I click on the
"Scalars" drop down box, I see 308 entries for a single dimension of
the descriptor vector with their index appended after an underscore
(ie. Descriptors_0 ...Descriptors_307), but not the whole vector. Is
there a way to apply a norm(Descriptors) operation in the Calculator
filter with this data set?

Thanks,

David
___
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] Errors when using find_package(ParaView REQUIRED)

2011-12-13 Thread David Doria
On Tue, Dec 13, 2011 at 3:31 PM, Utkarsh Ayachit
 wrote:
> Oh, are you using FIND_PACKAGE(VTK) and FIND_PACKAGE(ParaView) in the
> source? Bet that's what causing the problem. I'm not sure that's going
> to work. Try just using ParaView OR VTK.

That certainly works. The only problem I have with that is I have to do a

if(buildPlugin)
 use(Paraview)
else
 use(VTK)
endif()

in my root CMakeLists.txt. It would seem nicer to do

if(buildPlugin)
 add_subdirectory(Plugin)
endif()

and in the Plugin/CMakeLists.txt do

use(ParaView)

Is there a pattern more similar to this that would only use one of them?

Thanks,

David
___
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] Errors when using find_package(ParaView REQUIRED)

2011-12-13 Thread David Doria
On Tue, Dec 13, 2011 at 2:53 PM, Utkarsh Ayachit
 wrote:
> By stable version, I meant a recent version :) (I forgot CMake doesn't
> do the odd-even version number magic anymore).
>
> Utkarsh

Hm, turning on BUILD_EXAMPLES didn't seem to do anything. I also just
tried with cmake git master (cmake version 2.8.6.20111213-g3c101) and
I get the same errors. Each time I started with a fresh build
directory.

The code I am trying to configure is here:
https://github.com/daviddoria/PointSetProcessing

Any more thoughts?

David
___
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] Errors when using find_package(ParaView REQUIRED)

2011-12-13 Thread David Doria
On Tue, Dec 13, 2011 at 2:37 PM, Utkarsh Ayachit
 wrote:
> what cmake version are you using?

CMake 2.8.5
___
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] Errors when using find_package(ParaView REQUIRED)

2011-12-13 Thread David Doria
I few months ago, I would do this:

FIND_PACKAGE(ParaView REQUIRED)
INCLUDE(${PARAVIEW_USE_FILE})

before building my plugins:

ADD_PARAVIEW_PLUGIN(PointSetOutlierRemoval "1.0"
  SERVER_MANAGER_XML vtkPointSetOutlierRemoval.xml
  SERVER_MANAGER_SOURCES ${PointSetProcessingDir}/vtkPointSetOutlierRemoval.cxx
  )

However, when I tried with the current VTK and ParaView, I get
hundreds of errors like this:

/home/doriad/build/Projects/src/PointSetProcessing/> make
CMake Error at /home/doriad/build/ParaView/ParaViewTargets.cmake:16
(ADD_LIBRARY):
  add_library cannot create imported target "vtkhdf5" because another target
  with the same name already exists.
Call Stack (most recent call first):
  /home/doriad/build/ParaView/ParaViewConfig.cmake:58 (INCLUDE)
  ParaViewPlugins/CMakeLists.txt:1 (FIND_PACKAGE)

Has something changed that has led to a new process for this?
Thanks,

David
___
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] Paraview super slow in KDE?

2011-11-28 Thread David Doria
This weekend I switched from gnome to KDE (Ubuntu 11.10). The first
thing I noticed this morning is that Paraview is SUPER slow. When I
open a vtp file, even before I click "apply", it spends 10 seconds of
cpu at 100%. If I move the scroll bar in the "information" panel,
again before "apply" has even been clicked, it spends 10 seconds with
the cpu at 100%.

Any thoughts on what could cause this? I built git master yesterday.

Thanks,

David
___
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] Images displayed incorrectly

2011-09-11 Thread David Doria
I have a png file (and the same data in an mha file) that is not
opening correctly in ParaView.

You will find the png and mha here:
http://daviddoria.com/Uploads/ParaView/

You will also find a screenshot (bad.jpg) of what I see when I open
them in ParaView. You will find a screenshot of what it looks like in
a normal image editor in good.jpg.

Any thoughts?

Thanks,

David
___
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] Highlighting pixels in an image

2011-09-02 Thread David Doria
On Wed, Oct 27, 2010 at 1:57 PM, David Doria  wrote:
> On Wed, Oct 27, 2010 at 12:40 PM, Utkarsh Ayachit
>  wrote:
>> Ah you're talking of 2D view. Yup, that's a missing feature. Can you
>> add a bug to the bug tracker please? You should see the points in 3D
>> view, however.
>>
>> Utkarsh
>
> You're right, it works as expected in the 3D view.
>
> I added the bug here:
> http://paraview.org/Bug/view.php?id=11372
>
> Thanks,
>
> David
>

I see that this bug is marked as "expired" - am I the only one that
would want to do this? The problem seems to also go the opposite way -
the selection tools are not available when in an image view. It seems
very reasonable to be able to select a group of pixels from a meta
image and inspect their values - is there any way to do this?

Thanks,

David
___
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] unregister timer errors

2011-08-30 Thread David Doria
When I click the "Split Horizontal" button and then click "Spreadsheet
View", I get:

"Application asked to unregister timer 0x780e which is not
registered in this thread. Fix application."

in the "Output Messages". Everything seems to continue working
properly once I "Close" the Output Messages.

Any idea why this would happen? It does not happen with all views,
only the spreadsheet.

Thanks,

David
___
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] git update instructions

2011-08-16 Thread David Doria
On Mon, Aug 15, 2011 at 6:48 PM, Tim Gallagher  wrote:
> Or, you can do it in one step (and alias it back to git submodule update, if 
> you would really like to):
>
> git submodule update --init
>
> This will update all modules and init any that are new.
>
> Tim

Ok, I just added --init to the command that was already there:
http://www.vtk.org/Wiki/ParaView/Git/Download#Update

Everyone agree?

David
___
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] git update instructions

2011-08-15 Thread David Doria
I have not updated ParaView in a while. I followed the instructions here:
http://www.vtk.org/Wiki/ParaView/Git/Download

and did a 'git pull origin master' followed by a 'git submodule
update'. However, when I then configure, I get:

 CMake Error at CMake/ParaViewCommon.cmake:520 (ADD_SUBDIRECTORY):
   The source directory

 /home/doriad/src/ParaView/Utilities/protobuf

   does not contain a CMakeLists.txt file.

I'm assuming this is because when I first cloned ParaView the protobuf
submodule did not exist? Should an extra command be added to that wiki
page so that new submodules are found?

Thanks,

David
___
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] Displaying a flat polygon with multiple vertices

2011-07-13 Thread David Doria
I have created a polygon with many vertices using vtkPolygon, then put it in
a vtkPolyData, and then saved it as a vtp file (attached). When I open it in
Paraview, it looks very "broken" (seems like backfaces are showing, things
are overlapping that shouldn't be, etc). If I run the TriangleFilter on it,
it looks fine. Is there something wrong with how I created the data? Or is
Paraview just not able to handle displaying something like this?

Thanks,

David


polygonClockwise.vtp
Description: Binary data
___
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] Thickness of highlight lines?

2011-06-15 Thread David Doria
On Tue, Jun 14, 2011 at 10:11 PM, Utkarsh Ayachit <
utkarsh.ayac...@kitware.com> wrote:

> Try:
>
> GetDisplayProperties(FindSource("Sphere1"))
>

Thanks Utkarsh! If anyone else is interested, this is all it took:

dp = GetDisplayProperties(FindSource("Sphere1")) dp.SelectionLineWidth = 5

http://www.paraview.org/Wiki/ParaView/PythonRecipes/HighlighThickness

David
___
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] Thickness of highlight lines?

2011-06-14 Thread David Doria
On Fri, Jun 10, 2011 at 8:57 AM, Utkarsh Ayachit
 wrote:
> I am not sure it's exposed in the GUI, but you can change the
> "SelectionLineWidth" property on the selected representation from
> Python.
>
> Utkarsh

That will work. I created a sphere source, then tried this in the python shell:

>>> GetSources()
{('Sphere1', '71'): }

>>> dp = GetDisplayProperties('Sphere1')

but I got:

Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/paraview/site-packages/paraview/simple.py", line 160,
in GetDisplayProperties
return GetRepresentation(proxy, view)
  File "/usr/lib/paraview/site-packages/paraview/simple.py", line 151,
in GetRepresentation
rep = servermanager.CreateRepresentation(proxy, view)
  File "/usr/lib/paraview/site-packages/paraview/servermanager.py",
line 2052, in CreateRepresentation
display = view.SMProxy.CreateDefaultRepresentation(aProxy.SMProxy, 0)
AttributeError: 'str' object has no attribute 'SMProxy'

Once we resolve this, would it just be

dp.Representation.SelectionLineWidth = 3

?

Thanks,

David
___
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] Thickness of highlight lines?

2011-06-09 Thread David Doria
Is there a way to change the thickness of the pink highlight line? I
see in the settings where to change the selection color, but not
thickness.

Thanks,

David
___
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] (no subject)

2011-04-30 Thread David Doria
On Fri, Apr 29, 2011 at 6:06 AM, Rentschler Martin <
martin.rentsch...@gmail.com> wrote:

> Hi,
>
> I want to access the PointData of a Source using a python script.
>
> So first I choose the Source by
>
> >>> bla=GetActiveSource()
>
> >>> bla
>
> 
>
> and then I would to access the data of that object, but
>
> >>> Arrays=SOLID25_h5part.PointArrays
>
> >>> Arrays
>
> ['Coords_0', 'Coords_1', 'Coords_2', 'SOLID25_h', 'SOLID25_index',
> 'SOLID25_normals_0', 'SOLID25_normals_1', 'SOLID25_normals_2',
> 'SOLID25_pressure', 'SOLID25_velocity_0', 'SOLID25_velocity_1',
> 'SOLID25_velocity_2', 'SOLID25_vmob_0', 'SOLID25_vmob_1', 'SOLID25_vmob_2',
> 'SOLID25_w']
>
>
> Only gives me the names of the arrays. How do I then access to the Values
> of for example 'Coords_0' ?
>
>
> Best regards
>
>
> Martin
>

Is this what you're looking for?

http://www.itk.org/Wiki/ParaView/Python_Scripting#Source_Proxies


David
___
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] Transform very very slow

2011-04-18 Thread David Doria
If I create a source (plane, sphere etc), I can move the scene around with
no problems. However, as soon as I apply a transform filter to the source,
when I try to adjust the transform it takes ~5 seconds to refresh and my cpu
hits 100% usage. If I adjust the transform with the text boxes (translate,
etc), it updates immediately.

This is Paraview 3.10.0 32bit included with Fedora 15.

Any ideas what could cause that?

David
___
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] Image color map

2011-03-16 Thread David Doria
>
> The image channel is displayed correctly in the prebuilt 3.10 for 32bit
> linux.
>
> David
>

I pulled again from master today and built and it works fine now. Very
strange.

David
___
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] Image color map

2011-03-11 Thread David Doria
On Thu, Mar 10, 2011 at 12:13 PM, David Doria  wrote:

> On Thu, Mar 10, 2011 at 12:11 PM, David E DeMarle <
> dave.dema...@kitware.com> wrote:
>
>> Try running paraview with -dr.
>> I once saw something similar happen where a user had something go
>> wrong in the app settings file.
>
>
> No change :(
>
> David
>

The image channel is displayed correctly in the prebuilt 3.10 for 32bit
linux.

David
___
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] 3.10 prebuilt error - libswscale

2011-03-11 Thread David Doria
On Fri, Mar 11, 2011 at 7:40 AM, David Doria  wrote:

> On Thu, Mar 10, 2011 at 9:24 PM, David Doria  wrote:
>
>> On Thu, Mar 10, 2011 at 9:01 PM, David Partyka > > wrote:
>>
>>> Also, is your linux distro infact 64bit? If so have you tried the 64bit
>>> binary instead?
>>>
>>
>> I am on 32bit Fedora 13.
>>
>> David
>>
>
> With 3.8.1 I get a different error:
>
> [doriad@localhost ~]$
> /home/doriad/bin/ParaView-3.8.1-Linux-i686/lib/paraview-3.8/paraview: error
> while loading shared libraries:
> /home/doriad/bin/ParaView-3.8.1-Linux-i686/lib/paraview-3.8/libavutil.so.49:
> cannot restore segment prot after reloc: Permission denied
>
> David
>

I got them both working. I noticed an warning that SELinux was complaining
about loading a library which requires text relocation.

I changed SELinux mode from Enforcing to Permissive and then 3.10 and 3.8
both loaded correctly.

David
___
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] 3.10 prebuilt error - libswscale

2011-03-11 Thread David Doria
On Thu, Mar 10, 2011 at 9:24 PM, David Doria  wrote:

> On Thu, Mar 10, 2011 at 9:01 PM, David Partyka 
> wrote:
>
>> Also, is your linux distro infact 64bit? If so have you tried the 64bit
>> binary instead?
>>
>
> I am on 32bit Fedora 13.
>
> David
>

With 3.8.1 I get a different error:

[doriad@localhost ~]$
/home/doriad/bin/ParaView-3.8.1-Linux-i686/lib/paraview-3.8/paraview: error
while loading shared libraries:
/home/doriad/bin/ParaView-3.8.1-Linux-i686/lib/paraview-3.8/libavutil.so.49:
cannot restore segment prot after reloc: Permission denied

David
___
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] 3.10 prebuilt error - libswscale

2011-03-10 Thread David Doria
On Thu, Mar 10, 2011 at 9:01 PM, David Partyka wrote:

> Also, is your linux distro infact 64bit? If so have you tried the 64bit
> binary instead?
>

I am on 32bit Fedora 13.

David
___
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] 3.10 prebuilt error - libswscale

2011-03-10 Thread David Doria
I wanted to see if an older version of Paraview would display my image
correctly. I downloaded 3.10 from here (linux x86 32bit:
http://paraview.org/paraview/resources/software.html). When I run it, I get:

[doriad@localhost ParaView-3.10.0-Linux-i686]$
/home/doriad/bin/ParaView-3.10.0-Linux-i686/lib/paraview-3.10/paraview:
error while loading shared libraries:
/home/doriad/bin/ParaView-3.10.0-Linux-i686/lib/paraview-3.10/libswscale.so.0:
cannot restore segment prot after reloc: Permission denied

Thoughts?

David
___
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] Image color map

2011-03-10 Thread David Doria
On Thu, Mar 10, 2011 at 12:11 PM, David E DeMarle
wrote:

> Try running paraview with -dr.
> I once saw something similar happen where a user had something go
> wrong in the app settings file.


No change :(

David
___
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] Image color map

2011-03-10 Thread David Doria
On Thu, Mar 10, 2011 at 11:50 AM, Hom Nath Gharti wrote:

> I could reproduce your figure if I rescale from 0 to 1. Therefore, If you
> plot the colorbar is it really scaled 0 to 7?
>

It indeed seems to be scaled 0 to 7. I have updated the screenshot to
include the color bar: http://rpi.edu/~doriad/Paraview_List/screenshot.jpg

David
___
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] Image color map

2011-03-10 Thread David Doria
On Thu, Mar 10, 2011 at 11:30 AM, Utkarsh Ayachit <
utkarsh.ayac...@kitware.com> wrote:

> I seem to see the different shades just fine. If you are talking about
> the shades being just red and blue, that's the default lookup table,
> change the lookup table to rainbow if that's what you are expecting by
> clicking "Edit color map".
>
> Utkarsh
>

Sorry, I should have attached a screenshot from the beginning:
http://rpi.edu/~doriad/Paraview_List/screenshot.jpg.

What you have attached is indeed what I am looking for.

Hom - Resolution is set to the default of 256.

Thanks,

David
___
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] Image color map

2011-03-10 Thread David Doria
When looking at this file:

http://www.rpi.edu/~doriad/Paraview_List/appended.mhd
http://www.rpi.edu/~doriad/Paraview_List/appended.raw

with Color by: MetaImage -> 3 (the 4th channel of the image), I only see two
colors, red and blue. If I look at the file in the spreadsheet view, the 4th
channel values vary continuously from 0 to 7. I have clicked Rescale to Data
Range with no change.

Can anyone reproduce this? Or am I just doing something wrong? I just pulled
from master.

Thanks,

David
___
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] Add a source as a plugin

2011-03-09 Thread David Doria
Is there something besides this:
https://github.com/daviddoria/vtkEllipsoidSource/blob/master/vtkEllipsoidSource.xml

that must be done to get a source to appear in the Sources menu? Sources
seem to be missing from http://www.vtk.org/Wiki/ParaView/Plugin_HowTo

Thanks,

David
___
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] Gradient of an image

2011-03-02 Thread David Doria
On Wed, Mar 2, 2011 at 4:32 PM, Jérôme  wrote:

> Hi David,
> I think that your image has a 3-components data array, such as RGB.
> ParaView "Gradient" filter is based on vtkImageGradient which expects
> a 1-component image. You can
> - convert your image in grey level with a third party software,
> - use the calculator to compute a norm of the input image,
> - enable the vtkImageMagnitude or vtkImageLuminance in ParaView (I
> already did it here: http://github.com/jeromevelut/Peavip, but it
> seems that vtkImageMagnitude needs some update...)
>
> HTH
> Jerome
>
>
Jerome,

That is great! Can you include it in the actual Paraview distribution?

FYI vtkImageMagnitude appears in the filters list, but vtkImageLuminance
seems to be absent. Also, when I run vtkImageMagnitude, I get:

Warning: In /home/doriad/src/ParaView/Servers/Filters/vtkTexturePainter.cxx,
line 179

vtkTexturePainter (0x8dee780): Failed to locate selected scalars. Will use
image scalars by default.


and then there is no output. The data is in an array called PNGImage of type
unsigned char with Data range [0,255],[0,255],[0,255].

Any thoughts? The file I'm trying it on is here:
http://daviddoria.com/Uploads/daveDepth.png if you want to try to reproduce.

David
___
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] Gradient of an image

2011-03-02 Thread David Doria
If I open a png file, the Gradient filter is grayed out. Is there a way to
compute the gradient of such an image file?

David
___
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] xyzc file to vtk

2011-01-12 Thread David Doria
>> Hi, I have an ascii file with 4 fileds:
>>
>> X Y Z C
>>
>> where X, Y, Z represent the coordinates of the point, and C represent the
>> component/value of the point (e.g. temperature, umidity, ecc.) I want to
>> convert this file in a vtk file. Is it possible? How can I do it? Thanks
>>
>> Luca

This should do what you want:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ParticleReader

This would too, but it is more manual:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/InfoVis/ReadDelimitedFile

David
___
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] Is there a detailed example for a reader plugin?

2011-01-07 Thread David Doria
2011/1/7 陈彬斌 :
> Hi
>     Firstly,thanks for the help to solving my last problem. It may be a easy
> process how to write a reader plugin, so I can only find some simple guide
> and examples.But I am still puzzled when writing the part of .cxx, so it
> will be very helpful if there is a detailed and completely  example.
>     where can I find it ?
>     Thanks.
> Jackie

Here is a complete example:
http://www.vtk.org/Wiki/ParaView/Examples/Plugins/Reader

There is also some explanation here:
http://www.kitware.com/products/html/WritingAParaViewReaderPlug-in.html

David
___
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] batch create thumbnails for multiple .vtk files?

2011-01-05 Thread David Doria
> This should do the trick:
> http://paraview.org/Wiki/Take_a_Screenshot_of_a_VTP_File
> (linked to from here: http://paraview.org/Wiki/Python_recipes (this
> could use some organizing) ).
>
> Or you probably don't need Paraview at all for this - why not use VTK 
> directly?
>
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/Screenshot
>
> David
>

This may also help:
http://paraview.org/Wiki/ParaView/Python/Load_Sequence

David
___
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] batch create thumbnails for multiple .vtk files?

2011-01-05 Thread David Doria
On Wed, Jan 5, 2011 at 4:49 AM, Rob Nugen
 wrote:
> When in the course of human events it becomes necessary for one person
> to visualize the .vtk files which have been collected from another,
> and to assume among the powers of the server that the separate and
> manual loading of each would cause undue stress upon the user, a
> decent respect to the opinions of the list requires that they should
> declare a script which impels the computer to do the visualization.
>
> That's my creative way of asking if anyone has written a script to go
> through thousands of .vtk files and create a screenshot of each.
> During this project, we've created and collected a great number of
> .vtk files, and want to essentially be able to make thumbnails of them
> all so we know which should be saved and which can be discarded.
>
> The optimal solution would allow specifying the camera angle to be run
> for each screenshot.
>
> Searching for "paraview 'save state'" (no outer quotes) seems to be in
> the right direction.  I found
> http://www.itk.org/Wiki/ParaView/Python_Scripting but I don't see that
> the same filters can be saved and applied to a different data set.
>
>  Thanks!
>  - Rob

This should do the trick:
http://paraview.org/Wiki/Take_a_Screenshot_of_a_VTP_File
(linked to from here: http://paraview.org/Wiki/Python_recipes (this
could use some organizing) ).

Or you probably don't need Paraview at all for this - why not use VTK directly?

http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/Screenshot

David
___
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] install TARGETS given no ARCHIVE DESTINATION

2010-12-14 Thread David Doria
On Tue, Dec 14, 2010 at 10:04 AM, Dave Partyka  wrote:
> Ah yes, you're doing a static build right? Let me see.

Correct. With BUILD_SHARED_LIBS OFF the error happens. With it ON, it
configures fine.

David
___
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] install TARGETS given no ARCHIVE DESTINATION

2010-12-14 Thread David Doria
Dave,

Any luck with this? I just did a fresh clone and still can't build.

David



On Thu, Dec 9, 2010 at 10:02 AM, Dave Partyka  wrote:
> Yes, I am looking into this right now.
>
> On Thu, Dec 9, 2010 at 9:53 AM, David Doria  wrote:
>>
>> I did a fresh clone this morning and I am getting this error when running
>> CMake:
>> git clone --recursive git://paraview.org/ParaView.git
>>
>>  CMake Error at VTK/Utilities/kwsys/CMakeLists.txt:896 (INSTALL):
>>   install TARGETS given no ARCHIVE DESTINATION for static library target
>>   "vtksys".
>>
>> Anyone else having this issue?
>>
>> David
>> ___
>> 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


Re: [Paraview] Converting an image from float to unsigned char

2010-12-10 Thread David Doria
On Fri, Dec 10, 2010 at 1:39 PM, Sven Buijssen
 wrote:
> Hi David,
>
> May I remind you of a thread you started last year? It shouldn't be too
> hard to adapt the python code presented in one of the answers to your
> current use case: http://markmail.org/message/x2qs2jn6ltaw5v6u
>
> Sven

Thanks Sven. Every time I use a programmable filter I think "I am
missing a built in function".

Could the PNGWriter be hooked up to a vtkImageCast easily?

David
___
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] Converting an image from float to unsigned char

2010-12-10 Thread David Doria
I have a mhd image of floats that I am trying to write as a PNG. Of
course the writer complains that the only allowable inputs are
unsigned char images. Is there a way to convert image types inside
ParaView (I would want to scale the floats to be in the range [0,255]
before casting)?

Thanks,

David
___
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] install TARGETS given no ARCHIVE DESTINATION

2010-12-09 Thread David Doria
I did a fresh clone this morning and I am getting this error when running CMake:
git clone --recursive git://paraview.org/ParaView.git

 CMake Error at VTK/Utilities/kwsys/CMakeLists.txt:896 (INSTALL):
   install TARGETS given no ARCHIVE DESTINATION for static library target
   "vtksys".

Anyone else having this issue?

David
___
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] How to add extra informations associated to a vtkPolyData ?

2010-12-07 Thread David Doria
On Tue, Dec 7, 2010 at 9:40 AM, David E DeMarle
 wrote:
> I would put it in FieldData instead of the Information vectors.
>
> The information vectors are best used internally to the pipeline and are not
> terribly easy to work with.
>
> FieldData (as opposed to CellData or PointData) is easy to work with (it's
> just an arbitrary collection of arbitrarily named, typed and sized arrays)
> and is meant to be the place where arbitrary, whole data set associated,
> information is kept.
>
> David E DeMarle

Here is an example of how to use the FieldData David referred to:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/FieldData

David
___
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 internals: vtkUnstructuredGrid versus vtkPolyData and vtkImageData

2010-11-28 Thread David Doria
On Sun, Nov 28, 2010 at 3:51 PM, Dan Lussier  wrote:
> I had a question about the nature of the underlying VTK data.
> In my work I am often visualizing particle data, which I currently have in
> XMDF files with Polyvertex topology.  When I load the files into PV, the
> data ends up being represented by a vtkUnstructuredGrid.  What is the
> difference between vtkUnstructuredGrid versus vtkPolyData?  I know that both
> inherit from abstract vtkPointSet so they are generally fairly
> interchangeable as most filters appear to require only a vtkPointSet.  Are
> there any filters that would take one but not the other?

vtkUnstructuredGrid allows you to have 3D (volumetric) cells, where
vtkPolyData only allow a maximum of 2D (polygonal) cells.

http://www.vtk.org/Wiki/VTK/Tutorials/3DDataTypes

> Some filters I am looking to use want a vtkPointSet input, but I have
> vtkImageData (via XMDF 3DCoRectMesh topology).  What would be the best way
> to make the conversion in Paraview?
> Many thanks.
> Dan Lussier

vtkImageDataGeometryFilter does this, but I don't see an interface for it in PV.

Here is an example of how to use it:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImageData/ImageDataGeometryFilter

and here is how to make an existing VTK filter accessible in ParaView:
http://www.vtk.org/Wiki/Plugin_HowTo#Enabling_an_existing_VTK_filter

Good luck,

David
___
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] combine rotate and zoom in and zoom out

2010-11-22 Thread David Doria
On Mon, Nov 22, 2010 at 10:25 AM, Xueli Wang  wrote:
> Hello everyone,
>
> I want to make a movie in Paraview. I can use "interpolate camera position"
> to zoom in and zoom out to the object. But I couldn't make nice rotation. I
> saw it was possible to do this by using "camera orbit". My question is
> whether is it possible to combine these two functions? Or is there a way to
> cat two movie file together...?
>
> Thanks!
>
> Xueli Wang

You can combine two video files back to back using mencoder:

mencoder -of mpeg -oac copy -ovc copy -o output.mpg file1.mpg file2.mpg

David
___
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] display thrid dimension of nc file

2010-11-19 Thread David Doria
On Fri, Nov 19, 2010 at 8:36 AM, Utkarsh Ayachit
 wrote:
>> Would anyone agree to a feature request of having the option of
>> changing the window type, exactly so you can open this type of file
>> and then just click "3d" without having to open a new window and close
>> the old one?
>
> You can right click on the top title bar of a view to get a "Convert
> To" menu which allows you to change the view type in place.
>
> Utkarsh
>

Ah, nice. It seems to change (disable) the visibility of the pipeline
objects though when switching from a 2D to 3D view.

(Sorry Xian, you're thread kind of got hijacked).

David
___
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] display thrid dimension of nc file

2010-11-19 Thread David Doria
On Fri, Nov 19, 2010 at 5:10 AM, Xian Sperber
 wrote:
> Dear list,
>
> As a newbie I have some problems to display the third dimension in paraview.
> I have opened a nc file which displays nicely although only in 2D. The third
> dimension is shown in the Object Inspector under variable but I don't know
> how to display it.
> Can somebody point me in the right direction, please.
>
> xian

What is an "nc" file?

If you click the "split window" button, you can then choose "3D
window". Then when you make the data visible in that window it will be
3d.

Would anyone agree to a feature request of having the option of
changing the window type, exactly so you can open this type of file
and then just click "3d" without having to open a new window and close
the old one?

David
___
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] calculating divergence of a velocity vector

2010-11-18 Thread David Doria
On Thu, Nov 18, 2010 at 1:36 AM, Mubashir Ali  wrote:

>
> Hello All,
>
> I have a 3D lid driven cavity data in ensight format. I did laminar
> unsteady state simulation with a Finite volume code named Code Saturne.
>
> I wish to calculate divergence of velocity vector i.e. DEL U = 0
>
> Does anyone have an idea how to do it. Your suggestions would be surely of
> great help for me.
>
> Kind Regards
>
> Mubashir Ali
>

In VTK there is a vtkImageDivergence filter:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageDivergence

It doesn't
look like there is an interface to this in Paraview. You can write one - it
is actually quite easy:
http://www.paraview.org/Wiki/Plugin_HowTo#Adding_a_new_VTK_filter

David
___
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] reading a stack of TIFF images

2010-11-17 Thread David Doria
On Wed, Nov 17, 2010 at 10:57 AM, Favre  Jean  wrote:
> Hi there
>
> this afternoon, I was asked to read a stack of TIFF images in ParaView. Well, 
> I search the archive mailing list, tried different things which led me 
> nowhere, and could not find a solution out of the box.
>
> I then worked on a Python script which now works very well for our purpose. I 
> thought I would post it since the question seems to come up every now and 
> then, and I am not aware of a solution posted on the net.
>
> I used a ProgrammableSource, with output type set to "vtkImageData"
>
> # I set my whole extend in the RequestInformation panel:
>
> self.GetImageDataOutput().SetWholeExtent(0,511,0,511,0,192)
>
> # and I filled in the Script text panel with:
>
> import vtk
> r = vtk.vtkTIFFReader()
> r.SetFilePrefix("/local/data/red_Z")
> r.SetFilePattern("%s%03d.tif")
> r.SetDataExtent(0,511,0,511,0,192)
> r.SetDataSpacing(1,1,0.001)
> r.Update()
> self.GetImageDataOutput().ShallowCopy(r.GetOutput())
>
>
> Got a nice picture of a neuron after that, so I hope some other people find 
> it useful.
>
> -
> Jean M. Favre

Jean,

I just tried allowing the TIFF reader to read a series of files. For
some reason it doesn't work though - my test files named 001.tif and
002.tif are not recognized as a series. Here are the relevant files:

http://gitorious.org/paraviewsandbox/paraviewsandbox/blobs/TIFFSeries/Servers/ServerManager/Resources/readers.xml
http://gitorious.org/paraviewsandbox/paraviewsandbox/blobs/TIFFSeries/Applications/ParaView/ParaViewReaders.xml

Can anyone see where I've gone wrong?

Thanks,

David
___
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] Possible bug in series reader?

2010-11-16 Thread David Doria
On Thu, Nov 11, 2010 at 3:23 PM, David Doria  wrote:
> Hi all,
>
> I have uploaded the files BestPatch_.mhd and BestPatch_0001.mhd
> and a "reference point image", BlankedCorrelation.mhd so you can see
> what I'm talking about more easily with the following steps.  They are
> available here:
> http://www.rpi.edu/~doriad/Paraview_List/MetaSeriesReader/
>
> Steps to reproduce:
> // Broken
> 1) Open the BlankedCorrelation image in Paraview.
> 2) Open the BestPatch_* images as a series.
> 3) Click "Next frame"
> 4) Observe that the second patch is in the same position as the first
> (this is incorrect, they are supposed to be in different positions)
>
> // Works properly
> 5) Delete the BestPatch_* from the pipeline
> 6) Open BestPatch_ and BestPatch_0001 separately.
> 7) Observe that they are in different positions (as they are supposed to be).
>
> Any thoughts as to the cause of this?
>
> Thanks,
>
> David

Any clues on this? Has anyone ever seen similar behavior with any of
the other series readers?

David
___
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] Possible bug in series reader?

2010-11-11 Thread David Doria
Hi all,

I have uploaded the files BestPatch_.mhd and BestPatch_0001.mhd
and a "reference point image", BlankedCorrelation.mhd so you can see
what I'm talking about more easily with the following steps.  They are
available here:
http://www.rpi.edu/~doriad/Paraview_List/MetaSeriesReader/

Steps to reproduce:
// Broken
1) Open the BlankedCorrelation image in Paraview.
2) Open the BestPatch_* images as a series.
3) Click "Next frame"
4) Observe that the second patch is in the same position as the first
(this is incorrect, they are supposed to be in different positions)

// Works properly
5) Delete the BestPatch_* from the pipeline
6) Open BestPatch_ and BestPatch_0001 separately.
7) Observe that they are in different positions (as they are supposed to be).

Any thoughts as to the cause of this?

Thanks,

David
___
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] Apply a transform to an ImageData

2010-11-08 Thread David Doria
On Mon, Nov 8, 2010 at 4:35 PM, Moreland, Kenneth  wrote:
> In general, this is not a great solution.  Clean to Grid converts to
> unstructured grid, and that provides a heck of a lot of overhead.
>
> A better solution would be to convert to a curvilinear grid.  An even better
> solution would be if the transform filter were smart enough to transform
> images.  Unfortunately, neither of these are implemented in ParaView,
> although either would be really easy to do.  I submitted a suggestion to
> ParaView UserVoice, so go vote for it if you want to transform images:
>
> http://paraview.uservoice.com/forums/11350-general/suggestions/1206709-transform-filter-should-work-on-all-types-of-data
>
> -Ken

You have my vote(s). Would you plan to use the vtkImageReslice filter?
If you have any thoughts/implementations, I'd be happy to be a second
pair of eyes.

David
___
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] Making a certain color in an image transparent

2010-11-08 Thread David Doria
On Mon, Nov 8, 2010 at 2:41 PM, David Pont  wrote:
> David,
>  I'm pretty sure I got TIFF files to display with transparency a while back. 
> The files were RGBA, ie included an alpha channel and I had masked out a 
> background. Can you pre-process your images and add an alpha channel with 0 
> where you want transparency? You should be able to find or make a test image 
> pretty fast to see if it works.
>
>  regards, Dave

Dave P,

That did the trick. I used the itkRGBAPixel type for my image then
wrote it as a TIFF and the transparency is as expected in ParaView.

Thanks,

David
___
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] Making a certain color in an image transparent

2010-11-08 Thread David Doria
I want to make one color of an image (a traditional 2D image) totally
transparent and leave the rest in tact. I have some mask files (white
and green pixels) and I want only the green pixels to be displayed in
ParaView. The white pixels should be transparent so I can see the
original image in that region (when I also have it opened in
ParaView).

I can do it in VTK using vtkImageMapToColors with a vtkLookupTable
(http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/Transparency) but is
it possible in ParaView?

Thanks,

David
___
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] Apply a transform to an ImageData

2010-11-08 Thread David Doria
On Mon, Nov 8, 2010 at 1:59 PM, Hom Nath Gharti  wrote:
> Applying first 'Clean to Grid' filter may work!

Great, that does it, thanks!

David
___
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] Apply a transform to an ImageData

2010-11-08 Thread David Doria
I want to transform an image (without moving the camera). The
vtkTransformFilter expects a vtkPointData, so this is why the
TransformFilter in ParaView doesn't work (is greyed out), but is there
another method to do this?

Thanks,

David
___
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] Rescale to Data Range every time step

2010-11-08 Thread David Doria
Using a file series reader, a sequence of images (mhd for example) can
be imported into a time series. When I step through the time steps, on
each image I often want to "Rescale to Data Range" on the color
property of the object (in the Display tab). Is there a way to do this
automatically every time step?

Thanks,

David
___
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] Converting a Double array to an UnsignedChar array

2010-11-07 Thread David Doria
Is there any way besides a programmable filter to convert a double
array to an unsigned char array? I am trying to color data (actual
colors, not mapped colors) by a double array (which is [0,255], just
happens to be type double).

Thanks,

David
___
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] Build failing

2010-11-07 Thread David Doria
Ah, I thought vtkCommunicator was a ParaView class. I made a fresh
clone (which got the updated submodule) and then it built fine.

Is there ever a reason to pull ParaView without also updating the
submodules? If not, can this be done automatically with a script? It
doesn't seem to make sense to allow ParaView to be pulled when it
would go into an invalid state (like it did for me, where the new
ParaView code depends on the new VTK code). Is there a way to get git
to work kind of work like a compiler - when a "high level" command is
issued (i.e. checkout paraview), it checks to see if anything that
paraview depends on has changed and updates it before updating
ParaView?

David

On Sun, Nov 7, 2010 at 11:37 AM, Utkarsh Ayachit
 wrote:
> Did you update the VTK submodule?
>
> Utkarsh
>
> On Sun, Nov 7, 2010 at 11:09 AM, David Doria  wrote:
>> Hi all,
>>
>> I pulled from git this morning and am getting this error when I try to build:
>>
>> /home/doriad/src/ParaView/Servers/Filters/vtkPVSynchronizedRenderWindows.cxx:
>> In member function ‘bool
>> vtkPVSynchronizedRenderWindows::SynchronizeSizeTemplate(T&) [with T =
>> unsigned int]’:
>> /home/doriad/src/ParaView/Servers/Filters/vtkPVSynchronizedRenderWindows.cxx:1248:
>>  instantiated from here
>> /home/doriad/src/ParaView/Servers/Filters/vtkPVSynchronizedRenderWindows.cxx:1178:
>> error: call of overloaded ‘Reduce(unsigned int*, unsigned int*, int,
>> vtkCommunicator::StandardOperations, int)’ is ambiguous
>> /home/doriad/src/ParaView/VTK/Parallel/vtkMultiProcessController.h:774:
>> note: candidates are: int vtkMultiProcessController::Reduce(const
>> int*, int*, vtkIdType, int, int) 
>>
>> I am on Fedora 13 with gcc 4.4.
>>
>> Thanks,
>>
>> David
>> ___
>> 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] Build failing

2010-11-07 Thread David Doria
Hi all,

I pulled from git this morning and am getting this error when I try to build:

/home/doriad/src/ParaView/Servers/Filters/vtkPVSynchronizedRenderWindows.cxx:
In member function ‘bool
vtkPVSynchronizedRenderWindows::SynchronizeSizeTemplate(T&) [with T =
unsigned int]’:
/home/doriad/src/ParaView/Servers/Filters/vtkPVSynchronizedRenderWindows.cxx:1248:
  instantiated from here
/home/doriad/src/ParaView/Servers/Filters/vtkPVSynchronizedRenderWindows.cxx:1178:
error: call of overloaded ‘Reduce(unsigned int*, unsigned int*, int,
vtkCommunicator::StandardOperations, int)’ is ambiguous
/home/doriad/src/ParaView/VTK/Parallel/vtkMultiProcessController.h:774:
note: candidates are: int vtkMultiProcessController::Reduce(const
int*, int*, vtkIdType, int, int) 

I am on Fedora 13 with gcc 4.4.

Thanks,

David
___
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] read png file in Paraview

2010-11-05 Thread David Doria
On Fri, Nov 5, 2010 at 6:04 AM, Xueli Wang  wrote:
> Hello everyone,
>
> I have a question over reading an image file into Paraview. I have a png
> file of world map in latlon projection. But the data I have is a global data
> which should be visualized on a globe. Does anyone know whether the latlon
> image file can be converted in a globe and plot the data on top of it? I
> tried this in Paraview, the image and the data appear in two different
> window...
>
> Thanks in advance!
> Xueli Wang

I think what you're seeing is that the default behavior is to open an
image in a 2D window. Try closing the window that opens when you open
the image, and then making the image data visible (with the little
eyeball in the pipeline inspector) when the focus is back in the
window with your other data.

David
___
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] OBJ reader, Points+normals

2010-11-03 Thread David Doria
On Wed, Nov 3, 2010 at 8:13 AM, D Haley  wrote:

> Dear List,
>
> I recently compiled paraview 3.8 in order to use the new wavefront/OBJ
> reader. I have a vector cloud in an OBJ file (point+attached vector) that I
> would like to visualise, and thought this might be a solution.
>
> However, I ran the OBJ reader, and the normals for the points are loaded,
> but the normals appear to not be recognised.
>
> The file contents look something like this:
> -
> # OBJ file, containing only points and normals
> #
>
> v 315 -62.3371 156.152
> vn -0.157145 0.722267 -0.673525
> v 315 -44.3808 162.142
> vn 0.146189 0.69951 -0.69951
> v 315 -53.3286 163.284
> vn 0.26163 0.694284 -0.670462
> v 315 -35.2797 162.731
> vn -0.103498 0.690928 -0.715477
> -
> and so on.
>
> There is a 1:1 correspondence between points and normals. However when
> using the as-given reader, applying the glyph filter with 2D arrow mode
> shows all the normals as pointing along the X axis with the same magnitude
> (scaling mode set to "vector").
>
> I tried hacking up the code in IO/vtkOBJReader.cxx , but to be honest I
> don't know what I am doing. I forced an unconditional call to
>
> std::cerr << "Forcing normals" << std::endl;
> output->GetPointData()->SetNormals(new_normals);
>
> directly after
>
> if(everything_ok)
> {
>
>
> but  this was unsuccesful, although the print statement is run.
>
> I checked that the vn lines are being parsed by using print statements, and
> it appears that they are. The points are also loaded just fine, and the
> visualisation output is correct.
>
> Any hints? I am unfamiliar with the VTK library unfortunately -- perhaps
> there is an alternate representation (not OBJ) that I can use to do this?
> Alternatively someone can suggest an easy patch to this?
>
> My next stop is to hack up an OpenGL tutorial...
>
>
> Thanks.
>

Can you save the imported file as a vtp file and upload it somewhere and
post a link to it? We can poke around to see if it has been imported
properly and you are just missing a step in Paraview or if it has not been
imported properly.

David
___
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] Highlighting pixels in an image

2010-10-27 Thread David Doria
On Wed, Oct 27, 2010 at 12:40 PM, Utkarsh Ayachit
 wrote:
> Ah you're talking of 2D view. Yup, that's a missing feature. Can you
> add a bug to the bug tracker please? You should see the points in 3D
> view, however.
>
> Utkarsh

You're right, it works as expected in the 3D view.

I added the bug here:
http://paraview.org/Bug/view.php?id=11372

Thanks,

David
___
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] Reading a mhd series

2010-10-27 Thread David Doria
On Wed, Oct 27, 2010 at 4:57 AM, Paul Edwards wrote:

> Hi David,
>
> Take a look at this thread: http://markmail.org/thread/ti5vy3crhvc2nqna
>
> Regards,
> Paul
>

So I have to write it myself? Is there any reason this isn't included for
all file types?

Thanks,

David
___
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] Highlighting pixels in an image

2010-10-26 Thread David Doria
Using the new sortable spreadsheet view (which is great!), it is very easy
to find the maximum value in an image. Is there a way to highlight the
pixels that are selected in the spreadsheet view (as you can highlight the
points that are selected if the data is a polydata, etc)?

Thanks,

David
___
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] Reading a mhd series

2010-10-26 Thread David Doria
When I have a collection of files named
name_00.vtp
name_01.vtp
...
Paraview lets me open the name_*.vpt file and it sets each one as a separate
time step.

However, if I read a name_*.mhd, it seems to not do the same thing - only
the first image in the series is displayed throughout. Is there a way to get
this to happen?

Thanks,

David
___
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] adjusting the glyph filter

2010-10-14 Thread David Doria
On Thu, Oct 14, 2010 at 12:52 AM, Rob Nugen
 wrote:
> Hello Paraviewers
>
> The Glyph Filter includes in its properties a glyph type "Arrow."
> Each arrow can have its radius and length (for both the tip and shaft)
> be drawn proportionally to the value of the vector it represents.
>
> I'm asked to slightly (?) adjust the glyph filter so that, for each
> individual arrow, its length is determined by the value of vector A,
> and its radius is determined by the value of vector B [and its color
> is determined by vector C [ and its opacity is determined by vector
> D]].
>
> I've been a programmer for many years, but have come to Paraview just
> this week.  I've been searching and stepping through some of the
> tutorials / examples, but so far nothing looks like what I'm trying to
> do.
>
> My question, for lovely veterans: at what level would this type of
> change need to occur?  Can it be done just through "Programmable
> Filters?" (So far, I don't think so).    Do I have to learn VTK and
> compile new filters from there?
>
> To sweeten the deal, I have a bit of a budget to get this done (by 21 
> October).
>
> my setup:
>
> I'm running ParaView universal binary on Mac OS X 10.6.4 (Snow Leopard)
> ParaView Version 3.8.1  32-bit
> Qt version 4.6.2

I don't have an answer, but while you're waiting for a better response
these might be working taking a look at:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/ScaleGlyphs
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Broken/Visualization/ProgrammableGlyphFilter

David
___
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] Glyphing ImageScalarsGradient as arrows

2010-10-08 Thread David Doria
On Fri, Oct 8, 2010 at 6:34 AM, Eric E. Monson  wrote:

> Hey David,
>
> Seems to be because it's a 2D vector. I converted it into 3D with the
> calculator and it seemed to work.
>
> -Eric
>
>
Thanks Eric. If anyone else is curious, the Calculator filter command is:

ImageScalarsGradient_X * iHat + ImageScalarsGradient_Y * jHat + 0 * kHat

David
___
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] Color of ImageData points

2010-10-06 Thread David Doria
If you open vase_1comp.vti from VTKData and set representation to points,
all of the points appear black. If you apply a glyph filter (2D vertex
glyphs) you can see some of the points of the vase are white. If you set the
Maximum Number of Points to 50,000 in the properties tab of the glyph
filter, you can pretty much see the vase (as white points). Is there a way
to see these white points without applying the glyph filter? Shouldn't this
be what you see as soon as you open the data set (it is displaying the
points when representation=points, so it might as well color them, right?)?

Thanks,

David
___
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] Glyphing ImageScalarsGradient as arrows

2010-10-06 Thread David Doria
Can someone tell me why I can't glyph the ImageScalarsGradient as
arrows in the attached dataset? I can color by the magnitude of the
ImageScalarsGradient, but the glyph filter shows nothing in the
"Vectors" drop down box.

Thanks,

David


test.vti
Description: Binary data
___
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] Reading NIfTI files

2010-09-28 Thread David Doria
On Tue, Sep 28, 2010 at 10:23 AM, David E DeMarle
 wrote:
> That format is readable through the AnalyzeNiftiReaderWriter plugin.

Great, thanks David and Dave.

David D.
___
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] Reading NIfTI files

2010-09-28 Thread David Doria
The data sets here:
http://nifti.nimh.nih.gov/nifti-1/data

are in nifti1 format.

According to this:
http://www.paraview.org/Wiki/Data_formats#The_full_list_of_file_formats
, paraview can read them. However, their extension (.img) is not in
the "Supported file types" list, and I don't see NIH/Analyze/Nifti as
an option in the "Open Data With..." dialog box.

Any thoughts on how to view these data sets?

Thanks,

David
___
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] vtkCurvature

2010-09-24 Thread David Doria
On Fri, Sep 24, 2010 at 9:31 AM, Natalie Happenhofer <
natalieh...@hotmail.com> wrote:

>  Hi everybody,
>
> I would like to implement a filter to ParaView which calculates the radius
> of curvature of streamlines.
>
> I've browsed a little and found that there is already a curvature filter,
> which calculates the Gaussian curvature and the mean curvature using
> vtkCurvatures. This is nearly what I need, but somehow, I cannot apply it to
> the streamlines, I get the error message
>
> *No points/cells to operate on*.
>
> Maybe you could point me to a source where the functionality of
> vtkCurvatures is explained in detail and the usage described.
>
> Thanks a lot,
> Natalie
>
>
Does this example help?
http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/Curvatures

David
___
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] Plugin that is a reader and a filter

2010-09-22 Thread David Doria
Sorry if I was not clear.

Ideally I'd want to do the following:

1) click on a PolyData in the pipeline

2) go to Filter->ReadAndApplyTransform.

3) It should then ask me which transform file I want to read (the
"reader" functionality" I mentioned). My vtkReadAndApplyTransform
would then read this transform file and apply it to the PolyData on
the input port (provided by step #1)

If that isn't possible, then Utkarshs suggestion of applying the
transform in side the reader would be fine. The reader would prompt
for a file name. I would give it foo.vtp, then I would internally
create foo.xform. I looked into subclassing vtkXMLPolyDataReader but
it doesn't seem to work the same as other VTK classes? Typically I
just implement RequestData, but vtkXMLPolyDataReader doesn't have a
RequestData (it is in vtkXMLReader). How/where would I do everything
vtkXMLPolyDataReader normally does and get a vtkPolyData object that I
could then transform?

Thanks,

David
___
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 that is a reader and a filter

2010-09-21 Thread David Doria
I want to make a plugin that will read a file (which contains a
transform) and apply it to the input of the plugin. Classically I have
had either:

   // for readers, lets me file->open to
select a file

or

   // for filters, to do something to the
selected object in the pipeline

For this plugin I want to do both. Is this possible?

I have attached my xml files. Could someone let me know how it needs
to be structured to achieve this?

Thanks,

David

  

  
  

  

  


  


  Set the object that the transform will be applied to.

  



  
  


  
  

___
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] vtkParsePreprocess.c missing

2010-08-21 Thread David Doria
On Sat, Aug 21, 2010 at 4:14 PM, pat marion  wrote:

> Did you try git submodule update?  (Might need 'git submodule init' first)
>
> Pat
>
>
Thanks Pat, 'git submodule update' did the trick. I added a section to the
wiki page:

http://www.paraview.org/Wiki/ParaView/Git#Typical_Users_Workflow

While it is nice to have all of the details, I think this should help people
who just want to stay current with ParaView but don't care about learning
git (and have no intention of editing/contributing code). Let me know if it
seems reasonable (and correct!).
 
Thanks,

David
___
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


  1   2   3   4   >