[Paraview] Use of glyph inside a C++ filter

2012-10-30 Thread Nehme Bilal
Hello, I am trying to use the glyph filter internally inside another C++ filter. To set a normal property, I just use the associated command as show below: vtkPVGlyphFilter* glyph = vtkPVGlyphFilter::New(); glyph->SetInput(tmpOutput); glyph->SetSource(disk->GetOutput()); glyph->SetScaleMode(1

Re: [Paraview] How to visualize the full Delaunay 3d triangulation

2012-09-10 Thread Nehme Bilal
Also try "Extract Cells by Region". On Mon, Sep 10, 2012 at 6:51 PM, David E DeMarle wrote: > Try extract edges filter. That and the shrink filter help see the mesh. > On Sep 10, 2012 6:10 PM, "William Oquendo" wrote: > >> Dear all, >> I have a (small and random) set of 3D points, and I am apply

Re: [Paraview] Delete selected points through

2012-08-01 Thread Nehme Bilal
"Selection Inspector" (view->Selection Inspector). On Wed, Aug 1, 2012 at 4:06 PM, Chris wrote: > > Hello thx, > > but where do I find "Invert Selection"? > > Am 01.08.2012 um 21:08 schrieb Nehme Bilal: > > Try the "Invert Selection" chec

Re: [Paraview] Delete selected points through

2012-08-01 Thread Nehme Bilal
Try the "Invert Selection" check box in selection inspector. Select the cells you want to delete, use "Invert selection" to select the cells you want to keep and then use Extract Selection filter to delete the cells. Nehme On Wed, Aug 1, 2012 at 2:50 PM, Chris wrote: > Hallo people, > > does so

Re: [Paraview] Import time steps using C++ reader

2012-08-01 Thread Nehme Bilal
012 at 10:57 AM, David E DeMarle wrote: > On Mon, Jul 30, 2012 at 4:43 PM, Nehme Bilal wrote: > > Hello, > > > > I am trying to make a C++ reader for a point set file containing time > steps. > > The output of the reader is a vtkPolyData. > > > > The file

[Paraview] Import time steps using C++ reader

2012-07-30 Thread Nehme Bilal
Hello, I am trying to make a C++ reader for a point set file containing time steps. The output of the reader is a vtkPolyData. The file format is similar to: x1,y1,z1,prop1,prop2,...,time I would like to import the field "time" as time steps, in order to animate using "snap to time steps" mode.

Re: [Paraview] Display objects with labels

2012-03-19 Thread Nehme Bilal
Hello Alexander, If your names or labels are points of cells properties, try using the "selection inspector" to display the labels. You just select everything and turn on labeling in the selection inspector gui. You can also select only the parts where you want to see the labels. If you don't want

Re: [Paraview] plugin signature mismatch

2012-03-08 Thread Nehme Bilal
Hello Matei, Using the new version of CMake should fix your problem. See discussion here: http://www.paraview.org/pipermail/paraview/2012-January/023713.html Delete cache before generating with the new CMake. Nehme On Wed, Mar 7, 2012 at 1:16 PM, Robert Maynard wrote: > The ParaView 3.14 releas

[Paraview] copy/pase of clip filter crashes ParaView (tested in 3.14)

2012-02-22 Thread Nehme Bilal
Hello, Just to let you know that copying and pasting of a clip filter causes a crash. I think it will be the same for all filters using a 3D widget. I implemented a copy/paste few years ago for ParaViewGeo (based on ParaView 3.4) and I think that it was able to copy the 3D widgets correctly. The

[Paraview] ParaView 3.12 pakaging

2012-01-20 Thread Nehme Bilal
Hello all, I am trying to create a distributable of ParaView 3.12 using CPack on windows as described here: http://paraview.org/Wiki/ParaView:Build_And_Install#Distributing_ParaView Everything is working correctly, but when someone install my distributable, a lot of dll's are missing including qt

Re: [Paraview] ParaView Binaries build config

2012-01-18 Thread Nehme Bilal
I deleted cache and configure again with CMake2.8.7 and I've got MSVC. Thanks Utkarsh ! On Wed, Jan 18, 2012 at 11:23 AM, Nehme Bilal wrote: > I am using CMake 2.8.3. > MESSAGE("CMAKE_CXX_COMPILER_ID =" ${CMAKE_CXX_COMPILER_ID}) > gives : CMAKE_CXX_COMPILER_ID = > >

Re: [Paraview] ParaView Binaries build config

2012-01-18 Thread Nehme Bilal
y printing out the CMAKE_CXX_COMPILER_ID > in your cmakelists.txt file for building the plugin. What does it say? > It should say something like MSVC. > > Utkarsh > > On Wed, Jan 18, 2012 at 10:40 AM, Nehme Bilal wrote: >> Thank you for your replays. >> >> I think I am usi

Re: [Paraview] ParaView Binaries build config

2012-01-18 Thread Nehme Bilal
> Best regards, > Bruno > > PS: I'm the guy that jump-started > http://code.google.com/p/unofficial-paraview-dev-install/ , so feel free to > give us feedback or even offer to help! > > On 17-01-2012 22:46, paraview-requ...@paraview.org wrote: >> >> Subje

[Paraview] ParaView Binaries build config

2012-01-17 Thread Nehme Bilal
Hello, We're looking for information about what tools were used to build ParaView 3.12.0. We usually find detailed information on ParaView wiki here: http://www.paraview.org/Wiki/ParaView_Binaries but it appears that the wiki was not updated since 3.10.0. Thank you, Nehmé Bilal _

Re: [Paraview] Displaying texts from pointdata

2011-10-26 Thread Nehme Bilal
The "Selection Inspector" of ParaView can probably do what you want: http://paraview.org/OnlineHelpCurrent/SelectionInspector.html Nehme On Sun, Aug 7, 2011 at 7:42 PM, ChiaWeng Boon wrote: > Hi, > > I would like to display the ID numbers of my bodies. They are saved > as a Point Data as follow

[Paraview] vtkODBCDatabase and Oracle

2011-10-14 Thread Nehme Bilal
Hello all, I am trying to create a ParaView reader (or source) that uses vtkODBCDatabase to connect and read data from an Oracle Database. I compiled ParaView with : VTK_USE_ODBC ON ODBC_INCLUDE_DIRECTORIES C:/Program Files (x86)/Microsoft SDKs/Windows/v7.0A/Include ODBC_LIBRARY C:/Program Files

Re: [Paraview] How to push a value to the ServerManager so it gets pushed down to the Server

2009-12-15 Thread Nehme Bilal
rying now. > > My code is in a publicly accessible git repo if you want to take a look at > the code. > > _ > Mike Jackson mike.jack...@bluequartz.net > > > On Dec 15, 2009, at 11:59 AM, Nehme

Re: [Paraview] How to push a value to the ServerManager so it gets pushed down to the Server

2009-12-15 Thread Nehme Bilal
ew source to look for "examples" besides grepping > through the sources for key words. > > _____ > Mike Jackson mike.jack...@bluequartz.net > > > On Dec 12, 2009, at 7:49 PM, Nehme Bilal wrote: > > If the elements you want to display i

Re: [Paraview] How to push a value to the ServerManager so it gets pushed down to the Server

2009-12-12 Thread Nehme Bilal
If the elements you want to display in you combobox are always the same, simply use: and then rename you combobox to "ActiveDimension" in qt designer. That's should be enough to do what you are looking for. If you want to fill dynamical

Re: [Paraview] Support for text visualization in Paraview

2009-12-03 Thread Nehme Bilal
Hi Marco, - select all your data using selection controls toolbar. - open selection inspector and scroll down to display style. - you will find "Cell Label" and "Point label" tabs. click on the one you want to display and then check "Visible". The problem here is that the labels will show up on a

Re: [Paraview] How PV detects valid file formats?

2009-11-09 Thread Nehme Bilal
Dave, Are you saying that can CanReadFile is called even before the file is selected ! ? Fred is saying that his file is not showing up at all, so if CanReadFile is called only after the file has is selected, his problem is not releated to CanReadFile. Nehme 2009/11/9 David E DeMarle : > In ge

Re: [Paraview] Select points and pass them to a plugin

2009-11-01 Thread Nehme Bilal
>Do the selected points stay ordered in the order they were selected? Hmm... I don't know. If you don't get a response from someone else, maybe you will have to try it ... Nehme 2009/11/1 David Doria : > On Sun, Nov 1, 2009 at 2:47 PM, Nehme Bilal wrote: >> Or maybe add

Re: [Paraview] Select points and pass them to a plugin

2009-11-01 Thread Nehme Bilal
Or maybe adding a property on each point in the original datasets to identify from which dataset it's comming from. Nehme 2009/11/1 David Doria : > On Sun, Nov 1, 2009 at 2:03 PM, Nehme Bilal wrote: >> If multi-selection doesn't work on separate data sets, probably >>

Re: [Paraview] Select points and pass them to a plugin

2009-11-01 Thread Nehme Bilal
If multi-selection doesn't work on separate data sets, probably appending the datasets to one dataset (see Append Dataset filter) will be the solution. Nehme 2009/11/1 David Doria : > On Sun, Nov 1, 2009 at 12:05 PM, Nehme Bilal wrote: >> >> 1) Am not sure but I think

Re: [Paraview] Select points and pass them to a plugin

2009-11-01 Thread Nehme Bilal
1) Am not sure but I think you can call Extract Selection filter internally to get the selection. 2) Select points on works with CTRL. Nehme 2009/11/1 David Doria : > I am trying to write a plugin as a Paraview interface to > vtkLandmarkTransform. The idea is to select three points in data set

Re: [Paraview] Reader plugin have same extension

2009-09-17 Thread Nehme Bilal
CanReadFile can sometime be accepted by more than one reader. A csv file for example. So CanReadFile is not always enough. Personally I create my own extension to avoid conflict and ask the users to change the extension of their file before opening it in Paraview. Probably letting the user choose

[Paraview] Writer custom object panel

2009-06-15 Thread Nehme Bilal
Hi All, Is it possible to create a custom object panel for a writer ? using pqLoadFromObjectPanel ? I tried it and my GUI is not showing up, so I am wondering if the reason is because writers doesn't support custom object panel. Thank you. Nehme ___ Pow

[Paraview] immediate_update for an information only property

2009-06-07 Thread Nehme Bilal
Hi all, I am trying to do a progress bar in a filter. I did the following steps: 1- add an information only property to my xml to pass the progress status to the client: 2 - connect this property to a slot in the client to update the progress bar value: this->curr

Re: [Paraview] python programmable filter

2009-05-10 Thread Nehme Bilal
Thank you Jean. What does //BTX and //ETX means ? how to know if a method is automaticlly or not ? Thanks, Nehme On Sun, 10 May 2009 08:10:09 +0200 (CEST) Jean Favre wrote: On 10, May 2009 03:38 AM, Nehme Bilal wrote: Hi, I am using vtkKdTree in a python programmable filter. I

[Paraview] python programmable filter

2009-05-09 Thread Nehme Bilal
Hi, I am using vtkKdTree in a python programmable filter. I would like to use: void vtkKdTree::FindPointsWithinRadius(double R, const double x[3], vtkIdList* result) but I don't know how to write it in python. I tried the following : coord = (687856,539156,269) result = vtk.vtkIdList() kd

Re: [Paraview] linking vtkSMStringVectorProperty to a SLOT

2009-04-10 Thread Nehme Bilal
ll elements and then fires the > modified event. > > Utkarsh > > On Thu, Apr 9, 2009 at 8:21 AM, Nehme Bilal wrote: >> Hi again, >> >> I found a way that seems to work, but I still have a problem. >> The StringVectorProperty I'm using look l

Re: [Paraview] linking vtkSMStringVectorProperty to a SLOT

2009-04-09 Thread Nehme Bilal
there a way around this ? Thanks 2009/4/9 Nehme Bilal : > Hi All, > > I have a StringVectorProperty that I'm trying to link to a Qt SLOT in > the client side of my plugin. I want the SLOT to be called when the > StringVectorProperty is modified. > Is that po

[Paraview] linking vtkSMStringVectorProperty to a SLOT

2009-04-09 Thread Nehme Bilal
Hi All, I have a StringVectorProperty that I'm trying to link to a Qt SLOT in the client side of my plugin. I want the SLOT to be called when the StringVectorProperty is modified. Is that possible ? Thanks you Nehme ___ Powered by www.kitware.com Visit

[Paraview] pqLoadFromObjectPanel and implicit_functions

2009-03-12 Thread Nehme Bilal
Hi, If I use an implicit_functions in a plugin, like Box, Plane or Sphere, it will provides it's own gui and add it to the existing gui of the plugin. But if I use a Qt designer gui, I can't access the gui of the implicit_functions and the 3D widgets will not show up in the 3D view ! Is there a wa

[Paraview] Clip filter and state files and memory leak

2009-02-13 Thread Nehme Bilal
Hello, I think there is some bugs in clip filter and probably other similar filters. (using proxy Properties) 1 - create a box source, apply a clip on it using a plane, save the state, disconnect or close paraview, load the state, try to change the clip type to box for example, no Box ! ( s

Re: [Paraview] Browsing server files from plugin

2009-02-11 Thread Nehme Bilal
Hi, to get the active server, look a this example: pqServer* PrismCore::getActiveServer() const { pqApplicationCore* core = pqApplicationCore::instance(); pqServerManagerSelection sels = *core->getSelectionModel()->selectedItems(); pqPipelineSource* source = 0; pqServer* server=0;

Re: [Paraview] Press Apply Button from Toolbar (Michael Geppert)

2009-02-02 Thread Nehme Bilal
Hi Michael, I think you need to look on: - pqProxy::setModifiedState(ModifiedState modified); - vtkSMProxy::Modified(); - vtkSMProperty::SetImmediateUpdate(); I did a similar copy/paste application but also you can copy and paste sources and readers on the root. I didn't try to add the auto-ap

Re: [Paraview] Adding custom chart view

2009-01-20 Thread Nehme Bilal
to the client side ? if yes, how to do that ? The custom view wiki page does not explain anything about the communication between the view and the server. Thanks, Nehme On Tue, 20 Jan 2009 12:09:05 -0500 "Nehme Bilal" wrote: Thanks Utkarsh and Moreland for your responses. I&#x

Re: [Paraview] Adding custom chart view

2009-01-20 Thread Nehme Bilal
view to create by default for the filter. On Tue, Jan 13, 2009 at 10:16 AM, Nehme Bilal wrote: Hello, I'm trying yo create a filter to plot a histogram or a curve. The output of this filter will look like the one used for histogram filter. I read the documentation on the wiki ab

[Paraview] Update all pipeline objects, paraview time

2009-01-16 Thread Nehme Bilal
- I am trying to add an action to paraview that cause a re apply for all pipeline objets. I tried: vtkSMProxyManager *pxm = vtkSMProxyManager::GetProxyManager(); pxm->UpdateRegisteredProxiesInOrder(0); but this didn't work. I also tried: vtkSMProxyManager *pxm = vtkSMProxyManager::GetProxyMa

[Paraview] Adding custom chart view

2009-01-13 Thread Nehme Bilal
Hello, I'm trying yo create a filter to plot a histogram or a curve. The output of this filter will look like the one used for histogram filter. I read the documentation on the wiki about how to create a custom view, and I think this is my start point. Is that true ? if yes, from witch class

Re: [Paraview] Object Panel <-> Model Communication

2009-01-04 Thread Nehme Bilal
property, I think adding a show="1" attribute to the property will make it show up. Clint Utkarsh Ayachit wrote: You will have to create a custom panel. Look at the custom panel example in Examples/Plugin. Utkarsh On Sat, Jan 3, 2009 at 4:29 PM, Nehme Bilal

Re: [Paraview] Object Panel <-> Model Communication

2009-01-03 Thread Nehme Bilal
Hi, I am trying to use "DoubleArrayInformationHelper" to get a vtkDoubleArray from server side and show it in my filter GUI. XML code: C++: vtkDoubleArray* GetVolumesArray() { return this->volumesArray; } The current code don't

Re: [Paraview] points and cells labels

2008-12-23 Thread Nehme Bilal
sentations, DataLabelRepresentation) representation proxy and connect it to the output of your filter. Then it will label all points/cells. Utkarsh On Mon, Dec 22, 2008 at 9:24 AM, Nehme Bilal wrote: Thanks Utkarsh for your response. that's what I already did. I used empty string on points where

Re: [Paraview] points and cells labels

2008-12-22 Thread Nehme Bilal
esentation) representation proxy and connect it to the output of your filter. Then it will label all points/cells. Utkarsh On Mon, Dec 22, 2008 at 9:24 AM, Nehme Bilal wrote: Thanks Utkarsh for your response. that's what I already did. I used empty string on points where I don&#x

Re: [Paraview] points and cells labels

2008-12-22 Thread Nehme Bilal
t; and then use the selection labeling mechanism to label with this string array. Utkarsh On Fri, Dec 19, 2008 at 6:04 PM, Nehme Bilal wrote: Hello, Is it possible to put labels on points or cells using a filter ? Inside my filter code, I want to do something like: myPoint->setLabel("

[Paraview] points and cells labels

2008-12-19 Thread Nehme Bilal
Hello, Is it possible to put labels on points or cells using a filter ? Inside my filter code, I want to do something like: myPoint->setLabel("50 metres"); the label must look like the selection inspector label and not the vtkVectorText one. Is there a way to do that ?

Re: [Paraview] Paraview state loading

2008-11-27 Thread Nehme Bilal
what you do with keep_proxies. keep_proxies is only a means to access the newly created using the same old ids from the state loader. Utkarsh Nehme Bilal wrote: paraview load state use : void vtkSMProxyManager::LoadState(vtkPVXMLElement* rootElement, vtkIdType id, vtkSMStateLoader* loader/*=NULL*/

Re: [Paraview] Paraview state loading

2008-11-24 Thread Nehme Bilal
oader. Utkarsh Nehme Bilal wrote: paraview load state use : void vtkSMProxyManager::LoadState(vtkPVXMLElement* rootElement, vtkIdType id, vtkSMStateLoader* loader/*=NULL*/) so to test if keep_proxies works, I just added 1 to: spLoader->LoadState(rootElement, 1); after loading the sta

Re: [Paraview] Paraview state loading

2008-11-24 Thread Nehme Bilal
You can make the state loader not clear the proxies it created while loading the state (call vtkSMStateLoader::LoadState() with keep_proxies=1) then you can use NewProxy(int) to obtain the proxies created associated with the SelfIDs in the state file. Utkarsh On Sun, Nov 23, 2008 at 11:

Re: [Paraview] Paraview state loading

2008-11-24 Thread Nehme Bilal
ated associated with the SelfIDs in the state file. Utkarsh On Sun, Nov 23, 2008 at 11:51 AM, Nehme Bilal <[EMAIL PROTECTED]> wrote: Hello, After loading Paraview state, paraview regenerate proxies selfID, how can I restore the same selfID's ? Thanks

[Paraview] Paraview state loading

2008-11-23 Thread Nehme Bilal
Hello, After loading Paraview state, paraview regenerate proxies selfID, how can I restore the same selfID's ? Thanks ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview

[Paraview] loading Proxy from xml state

2008-11-21 Thread Nehme Bilal
Hello, I am trying to copy proxy properties from xml state. the folowing code work well for "sources" proxies. It works also for "representations" proxies, but Instead of copying properties to the existing representation, it create another representation and I got this error: "vtkSMStateLoade

Re: [Paraview] vtkSMProxy saving/restoring

2008-11-20 Thread Nehme Bilal
->IsAtEnd(); iter->Next()) { vtkSMProperty* destProp = iter->GetProperty(); vtkSMProperty* srcProp = src->GetProperty(iter->GetKey()); if (destProp && srcProp) { destProp->Copy(srcProp); } } iter->Delete(); } Use the above Copy instead of vtkSMProx

Re: [Paraview] vtkSMProxy saving/restoring

2008-11-19 Thread Nehme Bilal
sAtEnd(); iter->Next()) { vtkSMProperty* destProp = iter->GetProperty(); vtkSMProperty* srcProp = src->GetProperty(iter->GetKey()); if (destProp && srcProp) { destProp->Copy(srcProp); } } iter->Delete(); } Use the above Copy instead of vtkSMProxy::Copy(). Utkarsh

Re: [Paraview] vtkSMProxy saving/restoring

2008-11-19 Thread Nehme Bilal
bject inspector properties you'll have to save/restore the state for the source proxy (and not merely it's representation proxy). Utkarsh Nehme Bilal wrote: Thank you Utkarsh ! it works but I have some problems like: - after restoring the proxy, changing some display properties in

Re: [Paraview] vtkSMProxy saving/restoring

2008-11-19 Thread Nehme Bilal
vtkSMProxyManager* pxm = vtkSMObject::GetProxyManager(); vtkSMProxy *tempProxy = pxm->NewProxy( src->GetXMLGroup(), src->GetXMLName()); tempProxy->Copy(src); src->Copy(tempProxy); Utkarsh Nehme Bilal wrote: tempProxy is just a proxy I created using: vtkSMProxy tempProxy = vtkSMProxy:

Re: [Paraview] vtkSMProxy saving/restoring

2008-11-19 Thread Nehme Bilal
re you changing/trying to restore? Is "tempProxy" of the same type as "src"? Utkarsh Nehme Bilal wrote: Hello, Sorry I missed a few commas in the last message. this is the correct one: I am looking for a way to save a proxy properties and restore it later. The only wa

Re: [Paraview] vtkSMProxy saving/restoring

2008-11-19 Thread Nehme Bilal
Hello, Sorry I missed a few commas in the last message. this is the correct one: I am looking for a way to save a proxy properties and restore it later. The only way I found is by saving and restoring the state using: virtual vtkPVXMLElement* SaveState(vtkPVXMLElement* root); virtual int Lo

[Paraview] vtkSMProxy saving/restoring

2008-11-19 Thread Nehme Bilal
Hello, I am looking for a way to save a proxy properties and restore it later. The only way I found is by saving and restoring the state using: virtual vtkPVXMLElement* SaveState(vtkPVXMLElement* root); virtual int LoadState(vtkPVXMLElement* element, vtkSMStateLoaderBase* loader); I don't w

[Paraview] servermanager manipulation

2008-10-22 Thread Nehme Bilal
Hello, With the servermanager.py python module we can easily manipulate the servermanager as described in the document servermanager2.pdf I am looking for some documentation on how to use Pq and vtk servermanager classes to do what we can do with the servermanager.py module using C++. Is th