Re: [Paraview] Creating Plugins
Reproduced the problem on OS X 10.5.6 with latest Xcode tools and ParaView from CVS (probably pulled yesterday). Removing the space between '//' and 'ETX' resolves the hang. Tried to work through the code but didn't get very far. At least it is reproducible. _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer Dayton, Ohio On Dec 30, 2008, at 4:57 AM, Benjamin Schindler wrote: Hi I appended a plugin which makes the wrapper hang here. Please note - I ripped tons of code out the filter which leaves it in an uncompilable state - but that's not the point. It makes the wrapper hang and that's it Cheers Benjamin Berk Geveci wrote: Hi Benjamin, I can't reproduce this. Can you provide an example plugin that demonstrates the problem? -berk On Mon, Dec 22, 2008 at 5:31 PM, Schindler Benjamin bschind...@student.ethz.ch wrote: Hi I think found the problem. When I have: //BTX something // ETX (note the space between the comment and the ETX) This has caused the hang here Cheers Benjamin -Ursprüngliche Nachricht- Von: Moreland, Kenneth [mailto:kmo...@sandia.gov] Gesendet: Mo 22.12.2008 17:42 An: Schindler Benjamin; Michael Jackson Cc: ParaView Betreff: Re: [Paraview] Creating Plugins Benjamin, I don't think any of the developers are aware of bug that causes the VTK wrapping parser to hang. Could you send us a piece of code that demonstrates the problem? -Ken On 12/19/08 6:33 AM, Benjamin Schindler bschind...@student.ethz.ch wrote: I just renamed the baseclass now (It is not inside a library so that's no issue) and the parser seems to accept this. Adding //btx //etx works but that's not really an ideal solution. IMHO, the grammar of the parser should be changed for such things to be possible. I'm using the svn version of paraview and the parser seems to hang but it doesn't report an error. I assume that's a bug which will be fixed pretty soon Thanks Benjamin Michael Jackson wrote: Not sure about the multiple inheritance issue but for methods that don't take vtk type primitives surround the method declaration with the following: //btx void SomeFunction(... ); //etx _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer Dayton, Ohio On Dec 19, 2008, at 7:25 AM, Benjamin Schindler wrote: Hi I'm trying to create a paraview plugin out of a filter I'm currently writing for my own viewer. I'm hitting several roadblocks with the parser: *** SYNTAX ERROR found in parsing the header blablabla I currently found the following issues: class Something; // Not allowed because it does not start with the vtk Prefix class vtkMyFilter: public vtkSomeFilterClass, public MyBaseClass // Probably same as above, but I'm not sure { void SomeFunction(Eigen::Vector3f arg); // I assume I can't take arguments that are not primitive types or don't have the vtk prefix but I'm not sure } Is there anything I can do about these issues? Thanks Benjamin ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview Kenneth Moreland *** Sandia National Laboratories *** *** *** *** email: kmo...@sandia.gov ** *** ** phone: (505) 844-8919 *** web: http://www.cs.unm.edu/~kmorel ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview test-plugin.zip___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Warning in Paraview :
How are you getting this error? What are the actions that you performed to get this error? Utkarsh On Tue, Dec 30, 2008 at 11:34 AM, Chaman Singh Verma csv...@gmail.com wrote: Hello, I get the following warning or error when I use Paraview: Internal state of frames has got messed up! What does it means ? csv ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] hyperstreamline visualization
Hi Pierre, The reason the filter does not show up is that it has the same name as an existing one. Try changing the name from CellDerivatives to CellDerivatives2. -berk On Thu, Dec 18, 2008 at 5:35 PM, Pierre JUILLARD pierre.juill...@gmail.com wrote: Well, I exactly took the one printed on http://www.paraview.org/Wiki/ExtendingParaView#Enable_Existing_VTK_Class Here it is. Thanks in advance for your help! Pierre 2008/12/18 Berk Geveci berk.gev...@kitware.com Can you post your xml file? -berk On Thu, Dec 18, 2008 at 7:08 AM, Pierre JUILLARD pierre.juill...@gmail.com wrote: I'm really sorry, I miss a key on my keyboard, and there was it, the mail already left... So, I wanted first pointing out a possible interesting feature: having two buttons when dealing with plug-ins: - select having the functionality of the current load one: selection of an XML file - a load or apply button to confirm the selection of the XML file and maybe achieving some controls: - is the file empty? - does it start with the ServerManagerConfiguration tag? - and so on... (well, the standard controls that allow the use of an XML file I guess...) Then, here is my main question: I'm not sure at all the loading worked correctly: Where am I supposed to find the loaded filter to apply it on an example? I went in the Filter tab and I couldn't see it anywhere... (see attached picture) I am of course not interest in the vtkCellDerivatives lcass: I know that it is availabe with the filter Compute Derivatives. It is just a test. Could you point me out where is the mistake? I have to say that I didn't use any GUI XML, as it is said being optional in the page: http://www.paraview.org/Wiki/Plugin_HowTo#Enabling_a_filter_in_VTK In addition, just for information: where does the name displayed in the Filter tab comes from? Is it the value of the SourceProxy tag \name attribute? In this case, are we forced to prepend vtk from the vtk class name to obtain it? It would indeed mean that we cannot have blank in the name. Concerning the wiki, I have also few questions. - First, once I have this working for HyperStreamLine, I guess that it may interest other users. Wouldn't it be interesting to have a section in the wiki where users could drop validated server manager configuration files for VTK classes that could then be downloaded by others? - Finally, I found the old page: http://www.paraview.org/Wiki/ExtendingParaView#Enable_Existing_VTK_Class more detailed than the new one. Shouldn't they be merged? Tell me if I can help on this topic. Cheers, Pierre 2008/12/18 Pierre JUILLARD pierre.juill...@gmail.com Hi all! I had a look on the wiki, and indeed, one can find information at the page you pointed me: http://www.paraview.org/Wiki/Plugin_HowTo#Enabling_a_filter_in_VTK but also at that one: http://www.paraview.org/Wiki/ExtendingParaView#Enable_Existing_VTK_Class Very interesting information are given, however, I think I am missing something. Just to try out, I copy/past the given Server Manager Configuration file in a xml, naming it vtkCellDerivatives.xml. I loaded it as it is indicated (using the Plugins Manager), as shown on the following picture. (By the way, I'm surprised that there is no confirmation of the correct loading. It may be intersting to have two buttons: - select having thefunctionality of the current load one: selection of an XML file - load or apply confirming the selection of the XL file and may achieveing some control: 2008/12/9 David E DeMarle dave.dema...@kitware.com On Tue, Dec 9, 2008 at 9:55 AM, Pierre JUILLARD pierre.juill...@gmail.com wrote: Hi ParaView user, Having stress tensor in VTK file, I would like to visualize them. Different solutions may exist: 1). For instance, evaluate the principal components (vectors) from stress tensor and use the 'stream tracer' filter to visualize each principal component individually. However, in the 'Calculator' filter, I see neither 'extract principal component' function, nor the possibility to interact with tensor at all: only the access to scalars and vectors is allowed. Could you confirm me this? 2). Another actually much more interesting way would be to use the Hyperstreamline method available in the VTK library (http://www.vtk.org/doc/release/5.2/html/a00565.html). Nonetheless, I don't see the equivalent filter in ParaView. Is there a way to 'activate' it simply in ParaView? Or should an external filter be developped (based on the existing VTK class)? I thank youfor your help! Regards Pierre ___
Re: [Paraview] Plot on a Contour surface
Try this: * Create a spreadsheet view * Turn on the visibility of the dataset you want to save * File - Export * Export to csv -berk On Tue, Dec 30, 2008 at 10:43 AM, Stephen Wornom stephen.wor...@sophia.inria.fr wrote: Berk Geveci wrote: I had some figuring this one out. Here is the pipeline: reader - contour - triangle strips - (extract selection) - clean to grid - extract surface I was hoping that it would work for a line as well in 3.4.0 but I did not succeed. If I do extract surface - connectivity filter - threshold filter + slice in z I get the attached figure. export x3d writes the coordinates to a file but I don't see the pressure values. Anyone know how to write the coordinates + corresponding pressure values? Stephen The purpose of each filter is: contour: extract the boundary triangle strips: combine the points of each line to create polylines. Otherwise, each line segment is a separate cell. extract selection: extract one of the polylines if there are more than one (optional) clean to grid: convert to unstructured grid and remove duplicate points extract surface: convert to polydata. This filter has the useful side effect of ordering points along the polyline so that the polyline has points 0, 1, 2, 3... instead of 0, 5, 3, 9. This is necessary for plotting Once you apply this pipeline, you can create a XY Plot view and plot any variable along the curve. I can't remember if this worked on 3.4. It definitely works with the development (cvs) version of ParaView. In the next version, there will probably be one filter that does everything I described here. -berk On Fri, Dec 5, 2008 at 5:26 PM, Berk Geveci berk.gev...@kitware.com wrote: I am guessing this is a 2D contour, correct? If yes, this is a feature I am supposed to work on for the next release. Can you send me an example file? -berk On Thu, Nov 20, 2008 at 11:16 AM, Sergio Di Bari diba...@tcd.ie wrote: Hi everybody, I'm having some problem with Paraview. I have a bubble growing and detaching from a surface...it is a very simple problem, I can plot the surface of the bubble making a contour filter where is constant the value of the phase...in this way I can see the shape of the bubble... What I'd like to do is to plot the value of some parameter (as the pressure of the temperature) along this contour. I'd like to do something like the filter command Plot Over Line but the problem is that I don't have a line but a contour of a bubble whit a shape that changes during the growth. Thanks a lot! Sergio -- Sergio Di Bari Department of Mechanical Manufacturing Engineering Parsons Building Trinity College Dublin Dublin 2 ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview -- stephen.wor...@sophia.inria.fr 2004 route des lucioles - BP93 Sophia Antipolis 06902 CEDEX Tel: 04 92 38 50 54 Fax: 04 97 15 53 51 ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Plot on a Contour surface
One useful thing I have been doing is to use the calculator before doing a 2D plot and creating a varible x = x_coord so that I can plot against a geometric coordinate instead of an int. It's weird that I have to do this and can not access the x variable directly ... 2008/12/29 Berk Geveci berk.gev...@kitware.com I had some figuring this one out. Here is the pipeline: reader - contour - triangle strips - (extract selection) - clean to grid - extract surface The purpose of each filter is: contour: extract the boundary triangle strips: combine the points of each line to create polylines. Otherwise, each line segment is a separate cell. extract selection: extract one of the polylines if there are more than one (optional) clean to grid: convert to unstructured grid and remove duplicate points extract surface: convert to polydata. This filter has the useful side effect of ordering points along the polyline so that the polyline has points 0, 1, 2, 3... instead of 0, 5, 3, 9. This is necessary for plotting Once you apply this pipeline, you can create a XY Plot view and plot any variable along the curve. I can't remember if this worked on 3.4. It definitely works with the development (cvs) version of ParaView. In the next version, there will probably be one filter that does everything I described here. -berk On Fri, Dec 5, 2008 at 5:26 PM, Berk Geveci berk.gev...@kitware.com wrote: I am guessing this is a 2D contour, correct? If yes, this is a feature I am supposed to work on for the next release. Can you send me an example file? -berk On Thu, Nov 20, 2008 at 11:16 AM, Sergio Di Bari diba...@tcd.ie wrote: Hi everybody, I'm having some problem with Paraview. I have a bubble growing and detaching from a surface...it is a very simple problem, I can plot the surface of the bubble making a contour filter where is constant the value of the phase...in this way I can see the shape of the bubble... What I'd like to do is to plot the value of some parameter (as the pressure of the temperature) along this contour. I'd like to do something like the filter command Plot Over Line but the problem is that I don't have a line but a contour of a bubble whit a shape that changes during the growth. Thanks a lot! Sergio -- Sergio Di Bari Department of Mechanical Manufacturing Engineering Parsons Building Trinity College Dublin Dublin 2 ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview